public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michał Pecio" <michal.pecio@gmail.com>
To: Bob Ham <rah@settrans.net>
Cc: linux-usb@vger.kernel.org
Subject: Re: Audio interface causing "xhci_hcd ... WARN: buffer overrun event" messages
Date: Thu, 31 Jul 2025 10:17:20 +0200	[thread overview]
Message-ID: <20250731101720.5d10a8f1@foxbook> (raw)
In-Reply-To: <ba0ebd17-dade-4a97-b696-5ad19ebfca1d@settrans.net>

Hi,

The 6.12 kernel series is half year old, so this may be unique to your
hardware. Can you try other (ideally similar) UAC devices in the same
USB port, or this device with different xHCI (or EHCI) controllers?

On Wed, 30 Jul 2025 21:02:24 +0100, Bob Ham wrote:
> I'm trying to get an Arturia AudioFuse 16Rig audio interface working
> under Linux.  During loading of snd-usb-audio and when trying to play
> through the interface, the kernel spews a whole bunch of messages
> like so:
> 
> [ 1667.208402] xhci_hcd 0000:00:14.0: WARN: buffer overrun event for
> slot 3 ep 2 on endpoint
> [ 1667.216585] xhci_hcd 0000:00:14.0: WARN: buffer overrun event for
> slot 3 ep 2 on endpoint
> [ 1667.224778] xhci_hcd 0000:00:14.0: WARN: buffer overrun event for
> slot 3 ep 2 on endpoint

"ep 2" means "ep index 2", which is USB endpoint 0x81 aka EP 1 IN.
So this is caused by recording, or maybe by playback while recording,
but not by playback alone.

At face value, "buffer overrun" means that the device sends a packet
which doesn't exceed the endpoint's limit (that would be babble), but
exceeds the data buffer submitted by the UAC driver. In the snippet
above, it seems to be happening regularly every 65 USB microframes.

It could be a UAC issue, or it could still be an xHCI issue if buffer
size is miscommunicated to the hardware or misunderstood by it.

Can you mount debugfs and see if you can find the directory below? It
would tell if there is anything unusual about those 1 in 65 buffers.

/sys/kernel/debug/usb/xhci/0000:00:14.0/


Regards,
Michal


  reply	other threads:[~2025-07-31  8:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-30 20:02 Audio interface causing "xhci_hcd ... WARN: buffer overrun event" messages Bob Ham
2025-07-31  8:17 ` Michał Pecio [this message]
2025-07-31  8:27   ` Michał Pecio
2025-07-31 10:11     ` Robert Ham
2025-07-31 14:26       ` Mathias Nyman
2025-08-02  8:43         ` Robert Ham
2025-07-31  9:56   ` Robert Ham
2025-07-31 10:04   ` Robert Ham
2025-07-31 20:21     ` Michał Pecio

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=20250731101720.5d10a8f1@foxbook \
    --to=michal.pecio@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=rah@settrans.net \
    /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