Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/4] usb: xhci: prepare MSI path for secondary interrupters
@ 2026-04-30  6:38 Xu Rao
  2026-04-30  6:41 ` [PATCH 1/4] usb: xhci: store xhci pointer in xhci_interrupter raoxu
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Xu Rao @ 2026-04-30  6:38 UTC (permalink / raw)
  To: mathias.nyman; +Cc: gregkh, linux-usb, michal.pecio, niklas.neronin, raoxu

Hi,

This series prepares the xHCI MSI path for secondary interrupters.

Instead of using struct usb_hcd as the MSI IRQ dev_id and deriving
interrupter 0 in the handler, pass struct xhci_interrupter as the IRQ
dev_id.  This makes the MSI entry path operate on the same object that
owns the event ring and interrupter registers.

The primary path remains unchanged.  Interrupter 0 is still the only
interrupter used by the normal xHCI path, and this series does not
enable extra vectors, change IRQ affinity, or add any new routing
policy.

USBSTS.EINT handling is also kept on interrupter 0.  The bit is
controller-scoped, while IMAN.IP is per interrupter, so secondary
interrupters should not clear the controller-wide EINT status.

This is only a preparation step for future secondary interrupter users
and does not change the current primary xHCI interrupt behaviour.

raoxu (4):
  usb: xhci: store xhci_hcd pointer in xhci_interrupter
  usb: xhci: route MSI through interrupter context
  usb: xhci-pci: use the interrupter entry as MSI dev_id
  usb: xhci: clear USBSTS EINT only for interrupter 0

 drivers/usb/host/xhci-mem.c  |  1 +
 drivers/usb/host/xhci-pci.c  |  8 ++++----
 drivers/usb/host/xhci-ring.c | 26 ++++++++++++++++++--------
 drivers/usb/host/xhci.h      |  1 +
 4 files changed, 24 insertions(+), 12 deletions(-)

--
2.50.1


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

end of thread, other threads:[~2026-05-06  5:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30  6:38 [PATCH 0/4] usb: xhci: prepare MSI path for secondary interrupters Xu Rao
2026-04-30  6:41 ` [PATCH 1/4] usb: xhci: store xhci pointer in xhci_interrupter raoxu
2026-04-30  6:41 ` [PATCH 2/4] usb: xhci: route MSI through interrupter context raoxu
2026-04-30  6:42 ` [PATCH 3/4] usb: xhci-pci: use the interrupter entry as MSI dev_id raoxu
2026-05-05  9:53   ` Neronin, Niklas
2026-05-06  5:11     ` Xu Rao
2026-04-30  6:42 ` [PATCH 4/4] usb: xhci: clear USBSTS EINT only for interrupter 0 raoxu

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