aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2024-10-16 15:58:07 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-17 08:42:22 +0200
commitdc97c956a4703de61cfa8ebe6285d5c7274ef8fd (patch)
tree41d2d37649bb1924bc1e61c1c6009663468ecf26 /tools/perf/scripts/python
parentusb: gadget: uvc: wake pump everytime we update the free list (diff)
downloadlinux-dc97c956a4703de61cfa8ebe6285d5c7274ef8fd.tar.gz
linux-dc97c956a4703de61cfa8ebe6285d5c7274ef8fd.zip
usb: gadget: uvc: only enqueue zero length requests in potential underrun
The complete handler will at least be called after 16 requests have completed, but will still handle all finisher requests. Since we have to maintain a costant filling in the isoc queue we ensure this by adding zero length requests. By counting the amount enqueued requests we can ensure that the queue is never underrun and only need to get active if the queue is running critical. This patch is setting 32 as the critical level, which is twice the request amount that is needed to create interrupts. To properly solve the amount of zero length requests that needs to be held in the hardware after one interrupt needs to be measured and depends on the runtime of the first enqueue run after the interrupt triggered. For now we just use twice the amount of requests between an interrupt. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Link: https://lore.kernel.org/r/20240403-uvc_request_length_by_interval-v7-2-e224bb1035f0@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions