Re: consistent_sync_for_cpu() and friends on ppc32

From: Benjamin Herrenschmidt
Date: Mon Mar 15 2004 - 19:38:09 EST

> Ben, can you work this out? I can make it compile by just making the
> _for_cpu and _for_device routines behave identically to what the
> consisten_sync{,_page}() stuff does now. But I'd much rather a ppc32
> person implement it correctly and optimally.
> In short, the _for_device routines should make sure cacheable data in
> the cpu is fully visible to the DMA device, and _for_cpu should make
> sure all device DMA is visible to the processor.

BTW, I missed your explanation in the first place, but why wouldn't
the "direction" field be enough ? I'm not sure if I need a different
implementation here...


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at