]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/gvt: Emulate PCI expansion ROM base address register
authorChangbin Du <changbin.du@intel.com>
Thu, 2 Nov 2017 05:33:42 +0000 (13:33 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 6 Dec 2017 03:24:37 +0000 (11:24 +0800)
commitadd7e4fc2420e35f200e4aa13764708e62690e2e
tree2f477ea4ea398160f4ccb38d5bde113bd176bffc
parentb721b65af4eb46df6a1d9e34b14003225e403565
drm/i915/gvt: Emulate PCI expansion ROM base address register

Our vGPU doesn't have a device ROM, we need follow the PCI spec to
report this info to drivers. Otherwise, we would see below errors.

Inspecting possible rom at 0xfe049000 (vd=8086:1912 bdf=00:10.0)
qemu-system-x86_64: vfio-pci: Cannot read device rom at 00000000-0000-0000-0000-000000000001
Device option ROM contents are probably invalid (check dmesg).
Skip option ROM probe with rombar=0, or load from file with romfile=No option rom signature (got 4860)

I will also send a improvement patch to PCI subsystem related to PCI ROM.
But no idea to omit below error, since no pattern to detect vbios shadow
without touch its content.
0000:00:10.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0x0000

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
(cherry picked from commit c4270d122ccff963a021d1beb893d6192336af96)
drivers/gpu/drm/i915/gvt/cfg_space.c