[PATCH 1/2] [ARM] dmabounce: add support for low bitmasks in dmabounce

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Jul 29 04:50:56 EDT 2010


On Wed, Jul 28, 2010 at 05:57:46PM -0700, gking at nvidia.com wrote:
> some systems have devices which require DMA bounce buffers due to
> alignment restrictions rather than address window restrictions.
> 
> detect when a device's DMA mask has low bits set to zero and treat
> this as an alignment for DMA pool allocations, but ignore the low
> bits for DMA valid window comparisons.

Why can't you arrange for the originally allocated buffer to have the
necessary alignment?  What kind of devices have this problem?  Are
there cases where the alignment is greater than the L1 cache line size?



More information about the linux-arm-kernel mailing list