Hi Arnd, Am 30.06.2022 um 04:44 schrieb Arnd Bergmann:
For simplicity, the normal bounce buffer could similarly use dma_alloc_coherent(), which will also result in an uncached buffer. If I read this correctly, this will also ensure that the buffer
No sure we can rule out calling dma_setup() in interrupt context.
is within the DMA mask, so if ZONE_DMA is larger than the mask, it just returns NULL and you have to fall back to the chipram page, rather than checking the address and freeing the buffer.
Still need to check what ZONE_DMA is set to on Amiga. Cheers, Michael
Arnd