Linux Documentation
 help / color / mirror / Atom feed
* USB: DMA: mapping existing buffer is not supported?
@ 2023-09-13 19:06 Randy Li
  2023-09-13 19:19 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Li @ 2023-09-13 19:06 UTC (permalink / raw)
  To: gregkh; +Cc: linux-usb, Linux Media Mailing List, linux-kernel, corbet,
	linux-doc

Hello

I was trying to understand why USB webcams (UVC) have to copy video data 
through the CPU (uvc_video_complete() schedules 
uvc_video_copy_data_work() for this purpose). During my investigation, I 
noticed that functions like|usb_sg_*() and |usb_buffer_*() are not 
available since kernel version 2.6.12.

I can comprehend that USB host controllers such as xHCI, commonly found 
in embedded implementations like dwc3, do not support IOMMU. However, 
this should not prevent them from operating on a contiguous buffer.

If the USB subsystem can no longer work with existing buffers, I propose 
that we consider removing the remaining documentation in the "Working 
with existing buffers" section of Documentation/driver-api/usb/dma.rst.

Sincerely

Randy


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-13 21:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-13 19:06 USB: DMA: mapping existing buffer is not supported? Randy Li
2023-09-13 19:19 ` Greg KH
2023-09-13 20:09   ` Randy Li
2023-09-13 20:32     ` Greg KH
2023-09-13 21:11       ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox