Re: [PATCH] usb: xhci: Demote isoch buffer overrun message to debug level
From: Michal Pecio
Date: Mon Nov 23 2026 - 14:56:10 EST
On Mon, 23 Nov 2026 13:26:32 -0500, Alex Kononov via B4 Relay wrote:
> From: Alex Kononov <alex@xxxxxxxxxxx>
>
> An isochronous Buffer Overrun event means the device sent more
> data than the TD could hold.
> This is triggered by the device, not by a driver bug, and the
> error is already reported to the class driver as
> -EOVERFLOW in iso_frame_desc[].status.
>
> Logging it with xhci_warn() can flood the kernel log.
> A USB S/PDIF adapter (262a:9123) whose S/PDIF input loses its
> signal produces this event on nearly every microframe,
> about 7,200 messages per second, keeping systemd-journald
> busy at 100% of a CPU.
>
> Use xhci_dbg() like the other device-triggerable completion codes.
>
> Suggested-by: Michal Pecio <michal.pecio@xxxxxxxxx>
> Signed-off-by: Alex Kononov <alex@xxxxxxxxxxx>
> ---
> As suggested by Michal and agreed by Mathias in the discussion:
> https://lore.kernel.org/linux-usb/2ffafaa3-bdea-4d67-b224-2f18d76134be@xxxxxxxxxxxxxxx/T/
>
> COMP_BANDWIDTH_OVERRUN_ERROR is arguably device-triggerable as well and
> has been reported to flood logs (https://bugs.debian.org/1035939);
> I left it alone here. Happy to send a separate patch if you think
> it should get the same treatment.
That's not device triggerable, it means URB size exceeded bandwidth
allocation. Such URBs shouldn't pass validation by usb_submit_urb().
Only a buggy host controller can produce this warning without any
fault of the kernel.
My Etron does, when multi-TRB isochronous TDs are used. Apparently
it doesn't support those, maybe it needs some ludicrous out-of-spec
workaround. Sadly, patching qemu-xhci to pretend being Etron makes
Windows bluescreen at boot, so IDK how / if Windows deals with the
numerous bugs in those chips.
If somebody sees this warning on current kernel releases with spec-
compliant xHCI controllers, we would be curious to hear about it.
Regards,
Michal