Re: [PATCH 1/2] USB: Allow HCDs to specifiy their DMA alignment requirements

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

 



Am Mittwoch, 1. September 2010, 18:33:43 schrieb David Brownell:
> 
> --- On Wed, 9/1/10, Oliver Neukum <oneukum@xxxxxxx> wrote:
> 
> > 
> > Am Dienstag, 31. August 2010,
> > 21:23:05 schrieb David Brownell:
> > > I thought the resolution was that any HCD which
> > > requires alignment other than 1-byte was buggy;
> > > trying to use it would break too many drivers,
> > > and try to spread rude constaints to too many
> > > subsystems that don't want such stuff any more
> > > than the USB stack (doesn't want it).
> > 
> > True. It is a requirenment that a HCD work with
> > any  kmalloced  buffer.
> 
> Not what I said at all ... there's a whole bunch
> of generic "is this DMA-safe" constraints which
> apply to USB just like the rest of Linux, and
> none of them include alignment.

I stand corrcted.
>
> Passing a pointer to a few bytes inside of a
> kmalloc'd block has always been legit, even if
> that pointer isn't aligned to N!=1 bytes.

Is that also true with respect to usb_alloc_coherent() ?

	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