This patch does remaining enablement in hyperv vpci driver to work on arm64 Hyper-V.
For that it required to use PCI protocol 1.4 and corresponding different PCI message handling.
Also new MSI allocation, MSI-X mapping, release.
Details
Details
Tested on Hyper-V x86 gen1, gen2 and ARM64 gen2.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/dev/hyperv/pcib/vmbus_pcib.c | ||
---|---|---|
168 | Can we reorder this PCI_PROTOCOL_VERSION_1_1, PCI_PROTOCOL_VERSION_1_4 | |
1909 | Can we just put like this below and other places as applicable #if defined(__aarch64__) return (intr_alloc_msi(pcib, dev, ACPI_MSI_XREF, count, maxcount, irqs)); #else return (PCIB_ALLOC_MSI(device_get_parent(pcib), dev, count, maxcount, irqs)); #endif |
sys/dev/hyperv/pcib/vmbus_pcib.c | ||
---|---|---|
168 | This is intentional, to have PCI_PROTOCOL_VERSION_1_4 to be negotiated before PCI_PROTOCOL_VERSION_1_1. |