Re: [PATCH 00/10] m68k: mcf54415: fix ColdFire edma-related issues
From: Greg Ungerer
Date: Thu Dec 03 2026 - 19:33:27 EST
Hi Angelo,
On 2/12/26 22:12, Angelo Dureghello wrote:
> Hi Jean-Michel,
>
> regarding dma pool, i contacted you 2 times, personally (june 2026) and on
> the m68k list, with no answers, was not clear if you wanted to go on with
> this. I was anyway blocked so had someway to go on to fix edma and dspi,
> depending on global pool.
>
> Just to be clear, DMA pool and all that is in this patchset is
> written from scratch, not looking on your job at all.
> I did it from scratch to understand this global pool area and being able to
> fix edma, i can keep it locally.
>
> About edma, i missed there was something ongoiung on edma too from your
> side, sorry for that.
>
> I have no much time now a day except late evening for some development
> so cannot guarantee any collaboration. Also losing some enthusiasm to be
> honest.
>
> @Frank Li,
> edma driver is actually broken due mainly to the issue i pointed in patch
> 10/10. Please have a look, an endian swap was missing there.
> Please disregard all the rest since there are some overlappings with Jean
> patches that i missed.
> You can keep patch 10/10 if you want.
>
> To Greg: please disregard the patchset fully, don't want to overlap on any
> Jean-Micheal job. Just know that your readX/writeX is ok for me, fix you
> did on dspi and edma are working,
> but the fix in 10/10 is needed in edma, unless i missed any recent fix
> (not rebased from some days).
Thanks for your efforts on this. Follow up seems to be that if
you can you should move forward with this. Maybe a v2 to address
Frank's comments.
High level it looks like patches 1 through 6 are m68k specific,
so would go through the m68knommu git tree. Patches 7 through 10
should go via the dma maintainers.
Regards
Greg
> Regards,
> angelo
>
>
> On 12/2/26 10:26, Jean-Michel Hautbois wrote:
>> Hi Angelo,
>>
>> Thanks for picking this up, and sorry for leaving your September question on my global pool thread[1] unanswered.
>>
>> Part of this series overlaps with work I posted earlier, so here are the links for reviewers.
>>
>> Patches 1 to 4 follow what Christoph suggested on that thread: DMA_GLOBAL_POOL filled with dma_init_global_coherent(), rather than arch dma_map_ops. The ACR window that keeps the pool out of the cache is the part I never got right, and I am glad to see it.
>>
>> Patches 8 and 9 fix the same bugs as 3/5 and 4/5 of my dmaengine v3[2], which Frank reviewed in June. I never sent the v4, my fault again.
>>
>> On patch 9, one detail differs. The loop still clears the error with EDMA_CERR_CERR(ch), which masks with GENMASK(4, 0). EDMA_CERR takes a 6-bit channel number (MCF54418RM, Table 19-13), so for channels 32 to 63 the write clears the flag of channel (ch & 31) and leaves the real one set. My 4/5 used EDMA_MASK_CH(ch) for that reason.
>>
>> How would you like to proceed? I can rebase my 3/5 and 4/5 on top of Greg's readX()/writeX() patch and send them as v4, or you can carry them in your series with their tags, whichever is simpler for you and Vinod.
>>
>> [1] https://lore.kernel.org/all/20250121-coldfire-global-pool-v1-0-382a7235c2aa@xxxxxxxxxx
>> [2] https://lore.kernel.org/all/20260625-b4-edma-dmaengine-v3-0-44be00ace37d@xxxxxxxxxx
>>
>> Thanks,
>> JM
>
> -- Angelo
>