All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Pecio <michal.pecio@gmail.com>
To: Alex Kononov via B4 Relay <devnull+alex.albefly.com@kernel.org>
Cc: alex@albefly.com, Mathias Nyman <mathias.nyman@intel.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: xhci: Demote isoch buffer overrun message to debug level
Date: Mon, 23 Nov 2026 20:56:04 +0100	[thread overview]
Message-ID: <20261123205604.5bf490f0.michal.pecio@gmail.com> (raw)
In-Reply-To: <20261123-xhci-overrun-dbg-v1-1-4e5a2f11740d@albefly.com>

On Mon, 23 Nov 2026 13:26:32 -0500, Alex Kononov via B4 Relay wrote:
> From: Alex Kononov <alex@albefly.com>
> 
> 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@gmail.com>
> Signed-off-by: Alex Kononov <alex@albefly.com>
> ---
> As suggested by Michal and agreed by Mathias in the discussion:
> https://lore.kernel.org/linux-usb/2ffafaa3-bdea-4d67-b224-2f18d76134be@linux.intel.com/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

      parent reply	other threads:[~2026-11-23 19:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 18:26 [PATCH] usb: xhci: Demote isoch buffer overrun message to debug level Alex Kononov
2026-11-23 18:26 ` Alex Kononov via B4 Relay
2026-11-23 18:31 ` sashiko-bot
2026-11-25 17:59   ` Mathias Nyman
2026-11-27 10:02     ` Michal Pecio
2026-11-23 19:56 ` Michal Pecio [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=20261123205604.5bf490f0.michal.pecio@gmail.com \
    --to=michal.pecio@gmail.com \
    --cc=alex@albefly.com \
    --cc=devnull+alex.albefly.com@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.