* Per USB device interrupt handler for xhci
@ 2019-07-06 2:50 yunhua li
2019-07-06 4:46 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: yunhua li @ 2019-07-06 2:50 UTC (permalink / raw)
To: linux-usb
Hi all
xhci_msi_irq is the interrupt handler for xhci, the controller it self
is a PCI device, on my system it is a Intel chip. I have multiple USB
device connect to this USB host controller, xhci_msi_irq is interrupt
handler for the PCI device(USB Host controller).
Is it possible to have multiple IRQ, and different IRQ for different
USB device? If so how? the chip(USB Host controller) should know which
USB device’s transaction,
When the chip decide to assert an interrupt, it should be a reason for
a specified USB device, then assert a correspondence MSI interrupt.
Thanks.
sudo lspci -s 00:14.0 -v
00:14.0 USB controller: Intel Corporation Device a2af (prog-if 30 [XHCI])
Subsystem: Dell Device 0738
Flags: bus master, medium devsel, latency 0, IRQ 29
Memory at 38003ff10000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [70] Power Management version 2
Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
Kernel driver in use: xhci_hcd
Regards
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Per USB device interrupt handler for xhci
2019-07-06 2:50 Per USB device interrupt handler for xhci yunhua li
@ 2019-07-06 4:46 ` Greg KH
2019-07-08 19:58 ` yunhua li
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2019-07-06 4:46 UTC (permalink / raw)
To: yunhua li; +Cc: linux-usb
On Fri, Jul 05, 2019 at 07:50:28PM -0700, yunhua li wrote:
> Hi all
>
> xhci_msi_irq is the interrupt handler for xhci, the controller it self
> is a PCI device, on my system it is a Intel chip. I have multiple USB
> device connect to this USB host controller, xhci_msi_irq is interrupt
> handler for the PCI device(USB Host controller).
> Is it possible to have multiple IRQ, and different IRQ for different
> USB device?
Nope. That is not how USB works. Please read the xhci spec if you are
curious as to why.
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Per USB device interrupt handler for xhci
2019-07-06 4:46 ` Greg KH
@ 2019-07-08 19:58 ` yunhua li
0 siblings, 0 replies; 3+ messages in thread
From: yunhua li @ 2019-07-08 19:58 UTC (permalink / raw)
To: Greg KH; +Cc: linux-usb
Thank you Greg, So it seems xhci's interrupt based on it's rx/tx
queue(ring), the ring is shared by all USB device, it is not aware of
"per USB device"?
Regards
Yunhua
On Fri, Jul 5, 2019 at 9:46 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Fri, Jul 05, 2019 at 07:50:28PM -0700, yunhua li wrote:
> > Hi all
> >
> > xhci_msi_irq is the interrupt handler for xhci, the controller it self
> > is a PCI device, on my system it is a Intel chip. I have multiple USB
> > device connect to this USB host controller, xhci_msi_irq is interrupt
> > handler for the PCI device(USB Host controller).
> > Is it possible to have multiple IRQ, and different IRQ for different
> > USB device?
>
> Nope. That is not how USB works. Please read the xhci spec if you are
> curious as to why.
>
> greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-08 19:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-06 2:50 Per USB device interrupt handler for xhci yunhua li
2019-07-06 4:46 ` Greg KH
2019-07-08 19:58 ` yunhua li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).