diff options
author | Daniel Verkamp <dverkamp@chromium.org> | 2019-06-14 12:54:45 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-25 04:36:42 +0000 |
commit | 0b4232fcd932d8a217970f1d9091cd3d61887242 (patch) | |
tree | b91fa9ff96472b68fcbf457e7d17c6df441606b2 | |
parent | 4a93a21ab34135907ff2e4619b5b829b1ac3b4c2 (diff) | |
download | crosvm-0b4232fcd932d8a217970f1d9091cd3d61887242.tar crosvm-0b4232fcd932d8a217970f1d9091cd3d61887242.tar.gz crosvm-0b4232fcd932d8a217970f1d9091cd3d61887242.tar.bz2 crosvm-0b4232fcd932d8a217970f1d9091cd3d61887242.tar.lz crosvm-0b4232fcd932d8a217970f1d9091cd3d61887242.tar.xz crosvm-0b4232fcd932d8a217970f1d9091cd3d61887242.tar.zst crosvm-0b4232fcd932d8a217970f1d9091cd3d61887242.zip |
devices: pci: use header type 0 for host bridge
Previously, we were using header type 1 (which is meant to be used only for PCI-to-PCI bridges), which upsets the Linux PCI probing code: pci 0000:00:00.0: ignoring class 0x060000 (doesn't match header type 01) Switch to the standard type 0 header instead, which makes the kernel happy and matches what real hardware uses. BUG=None TEST=Boot vm_kernel (Linux 4.19) in crosvm Change-Id: I33d10bda39edf6d949827963cebbfe66c9147ea2 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1660892 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Dylan Reid <dgreid@chromium.org>
-rw-r--r-- | devices/src/pci/pci_root.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/src/pci/pci_root.rs b/devices/src/pci/pci_root.rs index 187b564..1ddd3d7 100644 --- a/devices/src/pci/pci_root.rs +++ b/devices/src/pci/pci_root.rs @@ -58,7 +58,7 @@ impl PciRoot { PciClassCode::BridgeDevice, &PciBridgeSubclass::HostBridge, None, - PciHeaderType::Bridge, + PciHeaderType::Device, 0, 0, ), |