PCI/VPD: Prevent VPD access for Amazon's Annapurna Labs Root Port
authorJonathan Chocron <jonnyc@amazon.com>
Thu, 12 Sep 2019 13:00:41 +0000 (16:00 +0300)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 16 Sep 2019 13:10:09 +0000 (14:10 +0100)
commita638b5de205af40bdadd867b1cb77320bbb2628e
treece8e850f38727425a314e607d9ed4510e74f7108
parent76e67e9e0f0f2debf9df192502a759bdd0cb4dab
PCI/VPD: Prevent VPD access for Amazon's Annapurna Labs Root Port

The Amazon Annapurna Labs PCIe Root Port exposes the VPD capability,
but there is no actual support for it.

Trying to access the VPD (for example, as part of lspci -vv or when
reading the vpd sysfs file), results in the following warning print:

  pcieport 0001:00:00.0: VPD access failed.  This is likely a firmware bug on this device.  Contact the card vendor for a firmware update

Signed-off-by: Jonathan Chocron <jonnyc@amazon.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vpd.c