Workaround for USB DMA bugs

David Gibson david at
Thu Apr 4 13:48:09 EST 2002

On Wed, Apr 03, 2002 at 09:54:29PM -0500, Dan Malek wrote:
> David Gibson wrote:
> >It's becoming easier though, with the __cacheline_aligned macro.  Plus
> >I think if the buffer is individually kmalloc()ed it will be properly
> >aligned.
> Alignment is only half the problem.  You have to ensure the object is
> modulo cache line size as well.  You can't be sharing cache lines subject
> to DMA with other DMA or processor core data.

Oh, right, yes.  That was actually what I was meaning when I said
"aligned" (sort of aligned at both ends), forgetting that the normal
meaning only applies to the start address.

David Gibson			| For every complex problem there is a
david at	| solution which is simple, neat and
				| wrong.  -- H.L. Mencken

** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list