]> git.baikalelectronics.ru Git - kernel.git/commit
USB: usb/dma doc updates
authorDavid Brownell <david-b@pacbell.net>
Mon, 2 Jul 2007 06:33:12 +0000 (23:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:42 +0000 (16:34 -0700)
commitd2437f2177bc9883cccf9ba0f8023dc377501f9b
treeab454ffb4563cdfdccab1f0c221577622a57864f
parent84c73dae2d54def263168e95b5420e8e9ecc4343
USB: usb/dma doc updates

This patch updates some of the documentation about DMA buffer management
for USB, and ways to avoid extra copying.  Our understanding of the issues
has improved over time.

 - Most drivers should *avoid* the dma-coherent allocators.  There are
   a few exceptions (like the HID driver).

 - Some methods are currently commented out; it seems folk writing
   USB drivers aren't doing performance tuning at that level yet.

 - Just avoid highmem; there's no good way to pass an "I can do highmem
   DMA" capability through a driver stack.  This is easy, everything
   already avoids highmem.  But it'd be nice if x86_32 systems with much
   physical memory could use it directly with network adapters and mass
   storage devices.  (Patch, anyone?)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/usb/dma.txt
drivers/usb/core/usb.c