PCI: vmd: Assign membar addresses from shadow registers
authorJon Derrick <jonathan.derrick@intel.com>
Fri, 18 May 2018 19:27:59 +0000 (13:27 -0600)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 24 May 2018 16:42:55 +0000 (17:42 +0100)
commit6788958e4f3ca1b75df841d7e25951807e94e5e0
treef59a6809b4f5d8a62cbc10e116c6e055a7f679ec
parent8b22f3d2f6b8652b71301d68d8ca69f91b5311a7
PCI: vmd: Assign membar addresses from shadow registers

Certain VMD devices have registers within membar 2 which may shadow the
membar 1 and membar 2 addresses. These are intended to be used in
virtualization, where assigning a guest address wouldn't be translated
in the assignment to root port and child devices because the addresses
exist within the assignment message.

These values will only reflect the membars when enabled in the BIOS, as
determined by a register in the VMD device.

This patch declares this option as a bit in the pci id driver_data, so
that future conforming device ids can be enabled through sysfs new_id if
necessary.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
[lorenzo.pieralisi@arm.com: updated commit subject]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/host/vmd.c