public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Set XHCI_SG_TRB_CACHE_SIZE_QUIRK for DWC3 devices
@ 2023-12-12 11:25 Prashanth K
  2023-12-12 11:25 ` [PATCH v2 1/2] usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK Prashanth K
  2023-12-12 11:25 ` [PATCH v2 2/2] usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK Prashanth K
  0 siblings, 2 replies; 11+ messages in thread
From: Prashanth K @ 2023-12-12 11:25 UTC (permalink / raw)
  To: Thinh Nguyen, Mathias Nyman, Greg Kroah-Hartman
  Cc: linux-kernel, linux-usb, Prashanth K

XHCI_SG_TRB_CACHE_SIZE_QUIRK was introduced in XHCI to resolve
XHC timeout while using SG buffers, which was seen Synopsys XHCs.
The support for this isn't present in DWC3 layer, this series
enables XHCI_SG_TRB_CACHE_SIZE_QUIRK since this is needed for
DWC3 controller.

In Synopsys DWC3 databook,
Table 9-3: xHCI Debug Capability Limitations
Chained TRBs greater than TRB cache size: The debug capability
driver must not create a multi-TRB TD that describes smaller
than a 1K packet that spreads across 8 or more TRBs on either
the IN TR or the OUT TR.

More information about this XHCI quirk is mentioned on the
following thread.
https://lore.kernel.org/all/20201208092912.1773650-3-mathias.nyman@linux.intel.com/

Changes in v2:
Changed implementation using device property instead of priv_data
Split the single patch into 2 patch series, v1 is mentioned below
https://lore.kernel.org/all/20231121135936.1669167-1-quic_prashk@quicinc.com/

Prashanth K (2):
  usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK
  usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK

 drivers/usb/dwc3/host.c      | 2 ++
 drivers/usb/host/xhci-plat.c | 3 +++
 2 files changed, 5 insertions(+)

-- 
2.25.1


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

end of thread, other threads:[~2024-01-16  5:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12 11:25 [PATCH v2 0/2] Set XHCI_SG_TRB_CACHE_SIZE_QUIRK for DWC3 devices Prashanth K
2023-12-12 11:25 ` [PATCH v2 1/2] usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK Prashanth K
2023-12-15 12:42   ` Greg Kroah-Hartman
2023-12-22  5:59     ` Prashanth K
2023-12-22  6:10       ` Greg Kroah-Hartman
2023-12-26  5:24         ` Prashanth K
2024-01-02 12:32           ` Mathias Nyman
2024-01-09  5:20             ` Prashanth K
2024-01-11 10:16   ` Hans de Goede
2024-01-16  5:09     ` Prashanth K
2023-12-12 11:25 ` [PATCH v2 2/2] usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK Prashanth K

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