dma_pool broken on MIPS generic?
Hello,
I'm working on a (not yet upstreamed) dmaengine driver. While rebasing from v4.19 to v4.20-rc1, I saw that it is not working properly anymore because dma_pool is allocating descriptors in kseg0 which is cached while in v4.19, it was allocating them in kseg1.
Am I missing something to explicitely state that the cache is not dma coherent? How could I track this behaviour change?
Signature · 3 lines
Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 9 lines · Alexandre Belloni
Hello,
I'm working on a (not yet upstreamed) dmaengine driver. While rebasing from v4.19 to v4.20-rc1, I saw that it is not working properly anymore because
dma_poolis allocating descriptors in kseg0 which is cached while in v4.19, it was allocating them in kseg1.Am I missing something to explicitely state that the cache is not dma coherent? How could I track this behaviour change?
You probably want this commit:
Quoted 8 lines · Christoph Hellwig
Quoted 7 lines · Alexandre Belloni
Hello,
I'm working on a (not yet upstreamed) dmaengine driver. While rebasing from v4.19 to v4.20-rc1, I saw that it is not working properly anymore because
dma_poolis allocating descriptors in kseg0 which is cached while in v4.19, it was allocating them in kseg1.
Quoted 6 lines
Quoted 2 lines
Am I missing something to explicitely state that the cache is not dma coherent? How could I track this behaviour change?
You probably want this commit:
Yep, this helped, thanks a lot!
Signature · 3 lines
Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com