x86/acpi: Use initialized VBIOS in VFCT table
commit6f978cfd1ab6a57e5729e19bed3df7702c4f09cb
authorMarshall Dawson <marshalldawson3rd@gmail.com>
Thu, 20 Apr 2017 00:31:07 +0000 (19 18:31 -0600)
committerMarc Jones <marc@marcjonesconsulting.com>
Thu, 27 Apr 2017 16:17:57 +0000 (27 18:17 +0200)
treeb3247db4f40891eab2e41401b34df9f32e998eea
parent790aab6c778c35e0fff662ee03be04cc79c81685
x86/acpi: Use initialized VBIOS in VFCT table

AMD VBIOS option ROMs often modify themselves during initialization.
Check for the presence of a VBIOS at 0xc0000 before populating the
VFCT table.  If a matching ROM is found, use it for the source of
the copy.

Tested on Gardenia (Stoney) variant by observing amdgpu driver's
dmesg output.

Change-Id: I5be7e1562bde51800c5b0e704c79812d85bcf362
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/19383
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
src/device/pci_rom.c