]> asedeno.scripts.mit.edu Git - 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>
Thu, 16 Nov 2017 03:48:34 +0000 (11:48 +0800)
commitc4270d122ccff963a021d1beb893d6192336af96
treebea60e38ceaba2e8248dfb732e33ccd6b134e22c
parentc982c45db6a78e1c23a416785fe920542ae1f33e
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>
drivers/gpu/drm/i915/gvt/cfg_space.c