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

Hi Mathias,

Il giorno ven 26 lug 2019 alle ore 10:50 Mathias Nyman
<mathias.nyman@linux.intel.com> ha scritto:
>
> 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
>

thanks for the explanation.

For 4.14.127 I already gathered traces related to that dmesg (you can
find them at https://drive.google.com/open?id=1c-vjusa44UgMzrIjAvpz6HKbxEk1Trw1),
but I'll try to get the same info for 5.

Thanks,
Daniele

> -Mathias

      reply	other threads:[~2019-07-26 14:22 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
2019-07-26 14:21   ` Daniele Palmas [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=CAGRyCJH12SgezRMgyTcLD1sKD2ctZJX37jhy07w7ZwtUMm-3kA@mail.gmail.com \
    --to=dnlplm@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@linux.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 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).