Re: xHCI: Command Ring does not work on my laptop
Posted: Sat Dec 26, 2020 9:26 am
I don't know if this is relevant or not, but I had an buffer error in my XHCI driver, and it resulted in the event ring stopping too. The USB status register indicated halted and controller error. That's the only scenario I've seen that results in commands on the command ring not resulting in activity on the primary event ring.
I also had problems with multiple MSI vectors. One of my XHCI controllers failed to send the IRQ when the second interrupter was used. I could pin-down this problem to the IRQ itself, because if I sent an IPI to the same vector then all the chains in the event ring happened as expected. I don't know if this is a bug in XHCI or how I setup MSI interrupts. Still, I do use multiple MSI interrupts with AHCI, and it seems to work there, so I don't know.
I also had problems with multiple MSI vectors. One of my XHCI controllers failed to send the IRQ when the second interrupter was used. I could pin-down this problem to the IRQ itself, because if I sent an IPI to the same vector then all the chains in the event ring happened as expected. I don't know if this is a bug in XHCI or how I setup MSI interrupts. Still, I do use multiple MSI interrupts with AHCI, and it seems to work there, so I don't know.