Skip to content

usb: xhci: correct Command Abort bit handling

Niklas Neronin linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: xhci: fix Command Abortingdrivers/usb/host/xhci-ring.c+18 -246 replies
2/2usb: xhci: use writeq() for CA write on 64-bit architecturesdrivers/usb/host/xhci-ring.c+5 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] usb: xhci: correct Command Abort bit handling

Address problems with xHCI Command Abort bit handling.

First patch reworks the Command Abort procedure so that the CA bit is asserted without modifying Command Ring Pointer under any circumstances. It documents and corrects all previously encountered corner cases.

The second patch refines this by using writeq() for the CA write on 64-bit architectures. Since writeq() performs a true atomic 64-bit MMIO write, it should avoid the split-write hazards that have historically caused Command Ring Pointer corruption.

Niklas Neronin (2):
usb: xhci: fix Command Aborting
usb: xhci: use writeq() for CA write on 64-bit architectures

 drivers/usb/host/xhci-ring.c | 47 ++++++++++++++++++------------------
 1 file changed, 23 insertions(+), 24 deletions(-)
Signature · 1 line
2.50.1