Re: DMA Cache problem for control transfers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Samstag, 30. Mai 2009 23:57:58 schrieb Russell King - ARM Linux:
> > > Basically, the DMA API operates at cache line granularity and only
> > > expects a _single_ buffer to be mapped per unit of granularity at any
> > > one time. 
> >
> > Thank you, that's very clear.
> >
> > Unfortunately I'm not the one doing this - anything that goes through
> > usb_control_msg() could cause this since that function takes a pointer
> > for the data buffer and internally kmalloc's the setup buffer.
>
> Well, USB is plainly buggy then.

No, kmalloc must return memory aligned to a cache line. Somethings
wrong with memory allocations on that platform.

Do you define ARCH_KMALLOC_MINALIGN?

	Regards
		Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux