summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2025-03-11 18:45:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-11 19:58:43 +0300
commit0c74d232578b1a7071e0312312811cb75b26b202 (patch)
tree5218524c1480c42e70007957f4bb16999d35bdbd /tools/perf/scripts/python/stackcollapse.py
parent525b139fb4033a9ba5abd6ca3f6a6baa3b2fe3d4 (diff)
downloadlinux-0c74d232578b1a7071e0312312811cb75b26b202.tar.xz
xhci: Avoid queuing redundant Stop Endpoint command for stalled endpoint
If EP_STALLED flag is set in xhci_urb_dequeue(), without EP_HALTED or SET_DEQ_PENDING flags, then the endpoint is in stopped state and the cancelled URB can be given back immediately withouth queueing a 'stop endpoint' command. Without this change the cancelled URB would eventually be given back in the 'context state error' completion path of the 'stop endpoint' command. This is not optimal. For this improvement to work the EP_STALLED flag must be cleared with xhci lock held. Suggested-by: Michal Pecio <michal.pecio@gmail.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20250311154551.4035726-2-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions