]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xhci: Handle the case when MSI-X BAR is the same as IO BAR.
authorkib <kib@FreeBSD.org>
Fri, 23 Oct 2020 18:18:45 +0000 (18:18 +0000)
committerkib <kib@FreeBSD.org>
Fri, 23 Oct 2020 18:18:45 +0000 (18:18 +0000)
commit853df70e1c625e29731eb59f7db0a67195201164
treeede7ccfe58bff761cfd266970a6cfd49d484e901
parent8dafc9b00623807a860888d3ce63c4ca165c8f0d
xhci: Handle the case when MSI-X BAR is the same as IO BAR.

PCIe allows for MSI-X BAR to be either dedicated, or MSI-X Table may
be co-located in some functional BAR.  In the later case xhci(4) is
unable to allocate active resource for the table because BAR is
already activated.

Handle it by checking for this special case, and not try to alloc
resource if MSI-X BAR is IO.

Reported and tested by: emaste
Reviewed by: emaste, hselasky
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D26913
sys/dev/usb/controller/xhci_pci.c