Skip to content

Possible xHCI driver fix for ZHAOXIN hosts

Niklas Neronin linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: xhci: set page size to the xHCI-supported sizedrivers/usb/host/xhci-mem.c drivers/usb/host/xhci.h+16 -200 replies
2/2Revert "xhci: Fix TRB prefetch issue of ZHAOXIN hosts"drivers/usb/host/xhci-mem.c drivers/usb/host/xhci-pci.c drivers/usb/host/xhci.h+4 -131 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] Possible xHCI driver fix for ZHAOXIN hosts

Hi Weitao Wang,

You fixed an issue in the Linux xHCI driver which concerned TRB prefetch on ZHAOXIN hosts [1]. The fix was to allocate two pages for a segment instead of one, on some ZHAOXIN hosts.

I recently noticed that the xHCI driver always sets the page size to 4096 bytes, regardless of whether a 4096-page size is supported. This may be the root issue that your patch fixed.

I do not have access to a ZHAOXIN system, so could you please test the two patches? The first patch sets the xHCI page size to the size supported by the xHCI controller, and the second patch reverts your fix [1].

The patches are built on top of Linux 6.12.

[1], commit 2a865a652299 ("xhci: Fix TRB prefetch issue of ZHAOXIN hosts")

Niklas Neronin (2):
usb: xhci: set page size to the xHCI-supported size Revert "xhci: Fix TRB prefetch issue of ZHAOXIN hosts"

 drivers/usb/host/xhci-mem.c | 36 ++++++++++++++----------------------
 drivers/usb/host/xhci-pci.c |  7 +------
 drivers/usb/host/xhci.h     | 10 +++++-----
 3 files changed, 20 insertions(+), 33 deletions(-)
Signature · 1 line
2.45.2