diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-02-03 16:10:31 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-02-03 16:10:31 +0000 |
commit | 4e456d992889569e2dbb0426f2438797ab06ca1f (patch) | |
tree | 5cab0370a5e6327d1aec3162a114f544b4291839 /src/include/ipxe/pci.h | |
parent | d405a0bd84e34d5c549d71145657add506079fb4 (diff) | |
download | ipxe-4e456d992889569e2dbb0426f2438797ab06ca1f.zip ipxe-4e456d992889569e2dbb0426f2438797ab06ca1f.tar.gz ipxe-4e456d992889569e2dbb0426f2438797ab06ca1f.tar.bz2 |
[efi] Do not attempt to drive PCI bridge devicesefibridge
The "bridge" driver introduced in 3aa6b79 ("[pci] Add minimal PCI
bridge driver") is required only for BIOS builds using the ENA driver,
where experimentation shows that we cannot rely on the BIOS to fully
assign MMIO addresses.
Since the driver is a valid PCI driver, it will end up binding to all
PCI bridge devices even on a UEFI platform, where the firmware is
likely to have completed MMIO address assignment correctly. This has
no impact on most systems since there is generally no UEFI driver for
PCI bridges: the enumeration of the whole PCI bus is handled by the
PciBusDxe driver bound to the root bridge.
Experimentation shows that at least one laptop will freeze at the
point that iPXE attempts to bind to the bridge device. No deeper
investigation has been carried out to find the root cause.
Fix by causing efipci_supported() to return an error unless the
configuration space header type indicates a non-bridge device.
Reported-by: Marcel Petersen <mp@sbe.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/pci.h')
-rw-r--r-- | src/include/ipxe/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h index 637b20d..8c6d9e4 100644 --- a/src/include/ipxe/pci.h +++ b/src/include/ipxe/pci.h @@ -227,6 +227,8 @@ struct pci_device { uint32_t class; /** Interrupt number */ uint8_t irq; + /** Header type */ + uint8_t hdrtype; /** Segment, bus, device, and function (bus:dev.fn) number */ uint32_t busdevfn; /** Driver for this device */ |