• Jon Derrick's avatar
    PCI: vmd: Assign membar addresses from shadow registers · 6788958e
    Jon Derrick authored
    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: default avatarJon Derrick <jonathan.derrick@intel.com>
    [lorenzo.pieralisi@arm.com: updated commit subject]
    Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    6788958e
vmd.c 21.8 KB