powerpc: DMA coherent allocations broken for CONFIG_NOT_COHERENT_CACHE

Sean MacLennan smaclennan at pikatech.com
Thu May 28 14:11:52 EST 2009


On Thu, 28 May 2009 13:52:29 +1000
Benjamin Herrenschmidt <benh at kernel.crashing.org> wrote:

> Can't you set ISA_DMA_THRESHOLD = ~0L from your warp.c platform file ?

I actually set it in the driver proper since it is faster to test, but
it works. I am just wondering how kosher that is.

The advantage of the platform_device is I can go back to using the top
level function. And I suspect down the road the __dma* functions may
require a real device.

However, the ISA_DMA_THRESHOLD = ~0L is a less intrusive patch.

Cheers,
   Sean



More information about the Linuxppc-dev mailing list