Re: [PATCH] usb: xhci: Support running urb giveback in tasklet context

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

 



Hi

On 19.2.2019 17.41, Suwan Kim wrote:
Patch "USB: HCD: support giveback of URB in tasklet context"
introduced giveback of urb in tasklet context. [1] This patch was
applied to ehci but not xhci. [2] It significantly reduces the hard
irq time of xhci. Especially for the uvc driver, the hard irq including
the uvc complete function runs quite long (about 300-350us in my
Thinkpad s440 laptop with webcam) but applying this patch reduces
the hard irq time of xhci to about 18-30us.

Sorry about the late reply.
Can you recall any reason why this wasn't applied to xhci back then?

xhci is doing a lot in hard interrupt context, and reducing that would
be a good idea. Another option to look at is using threaded interrupts
for xhci.

We might however be opening a can of worms with this, the impact is unknown.

How much testing was done with URB return in tasklet for SS devices?

Would be nice to test this out on a bit wider audience before applying it.

-Mathias



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

  Powered by Linux