Linux USB
 help / color / mirror / Atom feed
From: Michal Pecio <michal.pecio@gmail.com>
To: Дмитрий <senior.joker2009@yandex.ru>
Cc: Mathias Nyman <mathias.nyman@linux.intel.com>,
	"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: Sat, 22 Aug 2026 09:25:41 +0200	[thread overview]
Message-ID: <20260822092541.1bcc6dae.michal.pecio@gmail.com> (raw)
In-Reply-To: <cd7e86de-f7e6-4cff-b171-24891ef30bd3@yandex.ru>

On Sat, 22 Aug 2026 02:37:28 +0300, Дмитрий wrote:
> At 640x480 YUYV and a requested 30 fps, with
> exposure_dynamic_framerate=1, a normal 120-frame run timed out after
> 45.034 seconds with rc=124.
> 
> With exposure_dynamic_framerate=0, the camera is no longer completely
> stuck, but the video is still not usable as a smooth stream:

Not sure what this is, possibly V4L2_CID_EXPOSURE_AUTO_PRIORITY, which
maps to UVC_CT_AE_PRIORITY_CONTROL. From UVC 1.1 spec:

The Auto-Exposure Priority Control is used to specify constraints on
the Exposure Time Control when the Auto-Exposure Mode Control is set to
Auto Mode or Shutter Priority Mode. A value of zero indicates that the
frame rate must remain constant. A value of 1 indicates that the frame
rate may be dynamically varied by the device. The default value is zero
(0).

I have no idea what this means and how the camera is expected to keep
constant framerate if exposure gets longer than frame period, or why
wouldn't it keep constant framerate when exposure time is shorter.

Not sure why this seems to affect isoc endpoint behavior. Maybe it was
just random run-to-run variation? See below:

> * One 120-frame run completed in 15.109 seconds, giving an effective
>    7.94 delivered fps and 304 skipped sequence numbers.
> * Five consecutive restart runs all completed with rc=0, but their
>    effective delivered rates ranged from 3.71 to 21.08 fps.
 
> With uvcvideo trace=0x400, both values of
> exposure_dynamic_framerate selected the same streaming configuration:
> 
> Device requested 3072 B/frame bandwidth
> Selecting alternate setting 7 (3072 B/frame bandwidth)
> Allocated 5 URB buffers of 32x3072 bytes each

640x480 YUYV at 30fps is 2.3KB per ESIT. For a smaller altsetting,
you need lower resolution or framerate, or compression like MJPEG.

Regards,
Michal

  reply	other threads:[~2026-08-22  7:25 UTC|newest]

Thread overview: 12+ 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
2026-08-21 23:37             ` Дмитрий
2026-08-22  7:25               ` Michal Pecio [this message]
2026-08-22  7:41                 ` Дмитрий
2026-08-22  8:46                   ` Michal Pecio
2026-08-23 20:10                     ` Дмитрий

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=20260822092541.1bcc6dae.michal.pecio@gmail.com \
    --to=michal.pecio@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@linux.intel.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