Linux USB
 help / color / mirror / Atom feed
From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: "Michal Pecio" <michal.pecio@gmail.com>,
	Дмитрий <senior.joker2009@yandex.ru>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: [BUG] xhci: repeated URB cancel on UVC status interrupt EP (0x83) loops for ~15s, stalls camera - Intel Cannon Point-LP [8086:9ded]
Date: Thu, 20 Aug 2026 11:21:24 +0300	[thread overview]
Message-ID: <f4eb5fa3-3c91-4c7c-b709-b493a0563e66@linux.intel.com> (raw)
In-Reply-To: <20260818232945.2c67b15b.michal.pecio@gmail.com>

On 8/19/26 00:29, Michal Pecio wrote:
> On Tue, 18 Aug 2026 20:31:17 +0300, Дмитрий wrote:
>> Hi Michal,
>>
>> I tested the suggested commit:
>>
>> 3d9eeb336131bc5a174367c384fa00c15c8744fd
>>
>> on top of Fedora kernel 7.1.8 with the earlier commit
>> 7c0c31c66a7f9daace156bac427aafb2f4bbb5fc also applied.
>>
>> The resulting kernel was:
>>
>> 7.1.8-200.xhci3d9eeb3.fc44.x86_64
>>
>> COPR build:
>>
>> https://copr.fedorainfracloud.org/coprs/vertigo-red/kernel-xhci-deq/build/10875339/
>>
>> IOMMU remained enabled in translated, strict mode:
>>
>> intel_iommu=on iommu.passthrough=0 iommu.strict=1
>>
>> There were no DMAR or IOMMU faults.
>>
>> A journal-cursor-bounded run with dynamic debug enabled for
>> drivers/usb/host/xhci-ring.c timed out after 45.026 seconds:
>>
>> rc=124
>>
>> The v4l2-ctl output contained 22 capture markers and reported 239
>> dropped buffers. During the exact test interval, the kernel logged:

Is the camera still unusable with this new kernel if you disable all
debugging?

With the "All TDs skipped" issue fixed the driver should now be in
sync with the isoch ring.

> 
> This number of Missed Service Errors is excessive and may be the main
> reason for data loss. Unfortunately, I don't konw what causes it. Some
> users reported seeing correlation with CPU load (it may go both ways -
> either high or low CPU load causes errors).
> 
> It notably shouldn't be affected by scheduling patches in usb-next,
> because uvcvideo uses URB_ISO_ASAP. And you say the bug is very old.
> 
> Maybe it's something to do with multi-TRB TDs? Would it get any better
> in video modes that don't produce "spurious events"?
> 

Could you take a short xhci trace of this issue?

It should show the content of those TRBs in mode detail.
TRB fields like TD size are more important in Multi-TRB TDs.
Controller uses those for scheduling.

mount -t debugfs none /sys/kernel/debug
echo 81920 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/xhci-hcd/enable
echo 1 > /sys/kernel/debug/tracing/tracing_on
< Reproduce issue >
Send content of /sys/kernel/debug/tracing/trace

Content of HCCPARAMS2 register and USBCMD register would also be useful
as those dictate how the TRB fields are interpreted.

cat /sys/kernel/debug/usb/xhci/0000:00:14.0/reg-cap
cat /sys/kernel/debug/usb/xhci/0000:00:14.0/reg-op

Thanks
Mathias


      reply	other threads:[~2026-08-20  8:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-05 19:09 [BUG] xhci: repeated URB cancel on UVC status interrupt EP (0x83) loops for ~15s, stalls camera - Intel Cannon Point-LP [8086:9ded] Дмитрий
2026-08-15 19:52 ` Michal Pecio
2026-08-17 21:05   ` Дмитрий
2026-08-17 22:09     ` Michal Pecio
2026-08-18 17:31       ` Дмитрий
2026-08-18 21:29         ` Michal Pecio
2026-08-20  8:21           ` Mathias Nyman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f4eb5fa3-3c91-4c7c-b709-b493a0563e66@linux.intel.com \
    --to=mathias.nyman@linux.intel.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=michal.pecio@gmail.com \
    --cc=senior.joker2009@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox