MMCFG Problem
Hi Allen, Hi All,
I'm looking into SR-IOV on Xen and in particular getting the VFs of the Intel 82756 initialised in dom0.
One problem that I am coming up against is that the SRIOV extended PCIe capability does not show up for the PF (physical PCI function). Actually, the extended PCIe capability space doesn't show up at all for any device.
This seems to be related to a failure to initialise mmconfig.
I'm running the latest xen-unstable.hg tree with 2.6.18.8 (although I have tried various other kernels too). The machine is an HP dc7800 running in x86_64 mode. In the logs I am seeing:
ACPI: RSDP (v000 COMPAQ ) @ 0x00000000000e5c10
ACPI: RSDT (v001 HPQOEM SLIC-BPC 0x20090226 0x00000000) @ 0x00000000defc1e40
ACPI: FADT (v001 COMPAQ BEARLAKE 0x00000001 0x00000000) @ 0x00000000defc1ee8
ACPI: MADT (v001 COMPAQ BEARLAKE 0x00000001 0x00000000) @ 0x00000000defc1f5c
ACPI: ASF! (v032 COMPAQ BEARLAKE 0x00000001 0x00000000) @ 0x00000000defc1fe0
ACPI: MCFG (v001 COMPAQ BEARLAKE 0x00000001 0x00000000) @ 0x00000000defc2043
ACPI: TCPA (v001 COMPAQ BEARLAKE 0x00000001 0x00000000) @ 0x00000000defc207f
ACPI: SLIC (v001 HPQOEM SLIC-BPC 0x00000001 0x00000000) @ 0x00000000defc20b1
ACPI: HPET (v001 COMPAQ BEARLAKE 0x00000001 0x00000000) @ 0x00000000defc2227 [snip]
(XEN) PCI: MCFG configuration 0: base f4000000 segment 0 buses 0 - 63 (XEN) PCI: MCFG area at f4000000 reserved in E820
[snip]
ACPI: bus type pci registered
(XEN) mm.c:762:d0 Non-privileged (0) attempt to map I/O space 000fec00
PCI: Cannot map mmconfig aperture for segment 0
PCI: Using configuration type 1
Any pointers on what to poke would be greatly appreciated.
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Simon Horman <[email protected]> 07.08.09 08:51 >>>
(XEN) PCI: MCFG configuration 0: base
f4000000segment 0 buses 0 - 63 (XEN) PCI: MCFG area atf4000000reserved in E820
[snip]
ACPI: bus type pci registered
(XEN) mm.c:762:d0 Non-privileged (0) attempt to map I/O space000fec00
PCI: Cannot map mmconfig aperture for segment 0
PCI: Using configuration type 1
2.6.18 always maps the maximum possible (256Mb) range, which in this case extends into the IO-APIC space (which Xen doesn't allow access to even for Dom0), despite the BIOS reporting only a 64Mb range to be used. Newer kernels obey to the BIOS specified size, and hence shouldn't have such a problem.
Jan