🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.kernel
Article #856

Bug#1155331: linux: Intel xHCI forces 512-byte bulk IN packets on ASI120MM-compatible camera (03c3:120a)

#856
From: Dmitry
Date: Wed, 25 Nov 2026 18:10
65 lines
4424 bytes
--===============1701131722842170423==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Package: src:linux
Version: 6.12.117-1
Severity: normal
Tags: patch

Dear Debian Kernel Team,

A monochrome Datyson T7 enumerates as ASI120MM on Debian 13 amd64.
Camera controls work, but the stock kernel cannot receive an image.
The device advertises an out-of-spec 1024-byte high-speed bulk IN
endpoint. We tested a device-specific workaround on the same host.

Hardware and software
  Intel xHCI 8086:22b5 (rev 35), GIGABYTE GB-BACE-3160
  USB 03c3:120a at 480 Mbit/s, bulk IN endpoint 0x82
  linux-image-6.12.117+deb13-amd64, Debian version 6.12.117-1

To reproduce on this hardware, select the camera in indi_asi_ccd and
request an exposure. A direct libusb capture test also reproduced the
failure with the camera initialized to a 640x480 RAW8 stream.

Stock kernel
  Device endpoint wMaxPacketSize: 0x0400
  xHCI debugfs ep-context: Type Bulk IN, maxp 512
  libusb request for 307200 bytes: LIBUSB_ERROR_OVERFLOW, 0 received
  usbmon recorded completion status -75 and actual length 0.

With the attached change to xhci_endpoint_init(), using the same kernel
and camera firmware, debugfs showed maxp 1024. The same direct transfer
returned all 307200 bytes on the first request and produced a viewable
image. INDI also recorded successive 1280x960 images. This hardware
test covers one camera and one Intel host controller.

Could you track this compatibility issue for trixie and consider a
backport if an appropriate upstream fix becomes available? The attached
diff reproduces the local A/B test. A related, broader upstream proposal
specifically discusses astronomical cameras with 1 KiB packets:
https://lore.kernel.org/linux-usb/20261028104329.3d1c8029.michal.pecio@gmail.=
com/

Thank you.

--===============1701131722842170423==
Content-Type: text/x-patch
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="t7-xhci-debian.patch"
MIME-Version: 1.0

LS0tIGEvZHJpdmVycy91c2IvaG9zdC94aGNpLW1lbS5jCisrKyBiL2RyaXZlcnMvdXNiL2hvc3Qv
eGhjaS1tZW0uYwpAQCAtMTQ0MSw3ICsxNDQxLDEwIEBACiAJCWVycl9jb3VudCA9IDM7CiAJLyog
SFMgYnVsayBtYXggcGFja2V0IHNob3VsZCBiZSA1MTIsIEZTIGJ1bGsgc3VwcG9ydHMgOCwgMTYs
IDMyIG9yIDY0ICovCiAJaWYgKHVzYl9lbmRwb2ludF94ZmVyX2J1bGsoJmVwLT5kZXNjKSkgewot
CQlpZiAodWRldi0+c3BlZWQgPT0gVVNCX1NQRUVEX0hJR0gpCisJCWlmICh1ZGV2LT5zcGVlZCA9
PSBVU0JfU1BFRURfSElHSCAmJgorCQkgICAgIShsZTE2X3RvX2NwdSh1ZGV2LT5kZXNjcmlwdG9y
LmlkVmVuZG9yKSA9PSAweDAzYzMgJiYKKwkJICAgICAgbGUxNl90b19jcHUodWRldi0+ZGVzY3Jp
cHRvci5pZFByb2R1Y3QpID09IDB4MTIwYSAmJgorCQkgICAgICBlcC0+ZGVzYy5iRW5kcG9pbnRB
ZGRyZXNzID09IDB4ODIgJiYgbWF4X3BhY2tldCA9PSAxMDI0KSkKIAkJCW1heF9wYWNrZXQgPSA1
MTI7CiAJCWlmICh1ZGV2LT5zcGVlZCA9PSBVU0JfU1BFRURfRlVMTCkgewogCQkJbWF4X3BhY2tl
dCA9IHJvdW5kZG93bl9wb3dfb2ZfdHdvKG1heF9wYWNrZXQpOwo=

--===============1701131722842170423==--
Technical Details
Message-ID: <O3pBn-e79P-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Dmitry <yurkov1985@gmail.com>
Newsgroups: linux.debian.bugs.dist,linux.debian.kernel
Subject: Bug#1155331: linux: Intel xHCI forces 512-byte bulk IN packets on ASI120MM-compatible camera (03c3:120a)
Date: Wed, 25 Nov 2026 19:10:01 +0100
Message-ID: <O3pBn-e79P-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Nov 25 18:05:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: 1.651
Reply-To: Dmitry <yurkov1985@gmail.com>, 1155331@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-kernel@lists.debian.org
X-Debian-Pr-Message: report 1155331
X-Debian-Pr-Package: src:linux
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: linux
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1701131722842170423=="
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005003
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 65
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 25 Nov 2026 23:03:23 +0500
X-Original-Message-ID: <179562980398.2660.2955173865981898855@users.noreply.localhost>