linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: Daniele Palmas <dnlplm@gmail.com>, linux-usb <linux-usb@vger.kernel.org>
Subject: Re: xhci-hcd errors with Qualcomm based modem and Asmedia ASM1042A
Date: Fri, 26 Jul 2019 11:51:56 +0300	[thread overview]
Message-ID: <325d7934-092c-2e01-1e34-cd4ad06b7088@linux.intel.com> (raw)
In-Reply-To: <CAGRyCJGg8Z6PO1tuWJr9NgXgVEVgxC5jsbN_qSdEDT-t+pHehA@mail.gmail.com>

On 24.7.2019 22.09, Daniele Palmas wrote:
> Hello all,
> 
> I've a system with kernel 4.14.127 that is showing unexpected xhci-hcd
> (ASM1042A) errors with a Qualcomm based modem, when running the
> following test:
> 
> - signal strength qmi requests looping every few seconds on
> /dev/cdc-wdm (driver qmi_wwan)
> - iperf tcp data connection test on the modem network interface
> 
> The issue is showing also with kernel 5.0
> 
> The issues is showing in three different ways:
> 
> First one:
> 
> 2019-07-24 15:17:45.495293 kern.err kernel:xhci_hcd 0000:03:00.0:
> ERROR Transfer event TRB DMA ptr not part of current TD ep_index 28
> comp_code 13


> 2019-07-24 15:17:45.495392 kern.warning kernel:xhci_hcd 0000:03:00.0:
> Looking for event-dma 000000007725b420 trb-start 000000007725b400
> trb-end 000000007725b400 seg-start 000000007725b000 seg-end
> 000000007725bff0

The xhci driver expects events for transfers in the same order they were
queued. For some reason we get an event for the transfer block queued at
address b420 before we get events for transfers at b400 and b410.

xhci traces of a 5.0 kernel would show in more detail what's going on.
can be taken with:

mount -t debugfs none /sys/kernel/debug
echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control
echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control
echo 81920 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/xhci-hcd/enable
< reproduce the issue >
Send output of dmesg
Send content of /sys/kernel/debug/tracing/trace

Note that the trace file can be huge

-Mathias

  reply	other threads:[~2019-07-26  8:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-24 19:09 xhci-hcd errors with Qualcomm based modem and Asmedia ASM1042A Daniele Palmas
2019-07-26  8:51 ` Mathias Nyman [this message]
2019-07-26 14:21   ` Daniele Palmas

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=325d7934-092c-2e01-1e34-cd4ad06b7088@linux.intel.com \
    --to=mathias.nyman@linux.intel.com \
    --cc=dnlplm@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).