public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Possible xHCI driver fix for ZHAOXIN hosts
@ 2024-12-17 11:29 Niklas Neronin
  2024-12-17 11:29 ` [PATCH 1/2] usb: xhci: set page size to the xHCI-supported size Niklas Neronin
  2024-12-17 11:29 ` [PATCH 2/2] Revert "xhci: Fix TRB prefetch issue of ZHAOXIN hosts" Niklas Neronin
  0 siblings, 2 replies; 4+ messages in thread
From: Niklas Neronin @ 2024-12-17 11:29 UTC (permalink / raw)
  To: WeitaoWang-oc, mathias.nyman; +Cc: linux-usb, Niklas Neronin

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(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-12-18  6:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17 11:29 [PATCH 0/2] Possible xHCI driver fix for ZHAOXIN hosts Niklas Neronin
2024-12-17 11:29 ` [PATCH 1/2] usb: xhci: set page size to the xHCI-supported size Niklas Neronin
2024-12-17 11:29 ` [PATCH 2/2] Revert "xhci: Fix TRB prefetch issue of ZHAOXIN hosts" Niklas Neronin
2024-12-18  6:55   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox