All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linux-usb@vger.kernel.org
Subject: [Bug 213081] usb-storage / uas Genesys Logic Card Reader no longer working on 5.12
Date: Thu, 20 May 2021 20:04:20 +0000	[thread overview]
Message-ID: <bug-213081-208809-rUnvMXJO9X@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-213081-208809@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=213081

--- Comment #25 from Mathias Nyman (mathias.nyman@linux.intel.com) ---
Thanks, the trace gives a pretty good picture of what is going on.

Before 5.12 the xhci driver handled halted endpoints (TRB completed with STALL)
by immediately queuing both a reset endpoint command to clear the host side of
the halted endpoint, and a "set TR dequeue" command to move past the Stalled
TRB.

In 5.12 the Reset endpoint command is queued first, and "set TR Dequeue"
command is queued when the reset endpoint command completes, if needed.
Traces show that hardware already moved past the stalled TRB when reset
endpoint completed, so driver won't issue a "Set TR Dequeu" command at all.
I think this command is anyway needed as it will also flush the TRB cache of
xHC controller.

From traces:

Stall on TRB at fffcb040:
56.024868: xhci_handle_event: EVENT: TRB 00000000fffcb040 status 'Stall Error'
len 13 slot 5 ep 3 type 'Transfer Event' flags e:C

Queue reset endpoint command:
56.024873: xhci_queue_trb: CMD: Reset Endpoint Command: ctx 0000000000000000
slot 5 ep 3 flags t:C

When the reset endpoint command completes we see hardware dequeue is at
fffcb050:
56.024970: xhci_handle_command: CMD: Reset Endpoint Command: ctx
0000000000000000 slot 5 ep 3 flags t:C
56.024971: xhci_handle_cmd_reset_ep: State stopped mult 1 max P. Streams 0
interval 125 us max ESIT payload 0 CErr 3 Type Bulk IN burst 4 maxp 1024 deq
00000000fffcb051 avg trb len 0

No set TR Deq to move to fffcb050 is queued.

I'll start working on a patch that forces a "Set TR dequeue" command after a
stall

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

  parent reply	other threads:[~2021-05-20 20:04 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-15 12:43 [Bug 213081] New: usb-storage / uas Genesys Logic Card Reader no longer working on 5.12 bugzilla-daemon
2021-05-15 15:36 ` [Bug 213081] " bugzilla-daemon
2021-05-15 17:44 ` bugzilla-daemon
2021-05-15 17:44 ` bugzilla-daemon
2021-05-15 17:45 ` bugzilla-daemon
2021-05-15 17:51 ` bugzilla-daemon
2021-05-16  1:20 ` bugzilla-daemon
2021-05-16  9:51 ` bugzilla-daemon
2021-05-16 15:01 ` bugzilla-daemon
2021-05-17 19:15 ` bugzilla-daemon
2021-05-18  1:47 ` bugzilla-daemon
2021-05-18 16:59 ` bugzilla-daemon
2021-05-18 17:57 ` bugzilla-daemon
2021-05-18 19:01 ` bugzilla-daemon
2021-05-18 19:48 ` bugzilla-daemon
2021-05-18 21:19 ` bugzilla-daemon
2021-05-19 12:13 ` bugzilla-daemon
2021-05-19 17:31 ` bugzilla-daemon
2021-05-19 17:38 ` bugzilla-daemon
2021-05-19 17:59 ` bugzilla-daemon
2021-05-19 20:12 ` bugzilla-daemon
2021-05-19 21:24 ` bugzilla-daemon
2021-05-19 21:26 ` bugzilla-daemon
2021-05-20 20:04 ` bugzilla-daemon [this message]
2021-05-20 21:04 ` bugzilla-daemon
2021-05-21 16:54 ` bugzilla-daemon
2021-05-21 17:01 ` bugzilla-daemon
2021-05-21 19:25 ` bugzilla-daemon
2021-05-21 20:39 ` bugzilla-daemon
2021-05-21 21:56 ` bugzilla-daemon
2021-06-05  7:29 ` bugzilla-daemon

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=bug-213081-208809-rUnvMXJO9X@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --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 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.