Re: PCI DMA to small buffers on cache-incoherent arch

From: Russell King (
Date: Mon Jun 10 2002 - 12:57:55 EST

On Mon, Jun 10, 2002 at 07:22:26PM +0200, Oliver Neukum wrote:
> Definitely we should call it something different so we can limit it to
> architectures that need it.


Hmm, thinking about this some more (and just rambling). On some ARMs
(maybe other CPUs as well) each cache line has two dirty bits - one
for each half. If only half the cache line is dirty, it will only
write out the dirty half when evicting it. In this case, we'd want:

#define L1_CACHE_BYTES 32
#define DMA_CACHE_BYTES 16

which will probably work as long as we handle stuff carefully in the
architecture specific layer.

Russell King (                The developer of ARM Linux

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

This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:18 EST