]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Allow VPD access for QLogic ISP2722
authorArun Easi <aeasi@marvell.com>
Fri, 9 Apr 2021 21:51:53 +0000 (14:51 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Apr 2021 19:38:32 +0000 (14:38 -0500)
commita89680b27aa41585c3f3389bbb369de96ea3c810
tree825dc812aadce634fa77d6cb9a356456fb1bc3cb
parente9ef448083cf62bd563f9291a3f463e04afb173f
PCI: Allow VPD access for QLogic ISP2722

0790ae0564ab ("PCI: Prevent VPD access for QLogic ISP2722") disabled access
to VPD of the ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter because
reading past the end of the VPD caused NMIs.

d3afef2eae86 ("PCI: Determine actual VPD size on first access") limits
reads to the actual size of VPD, which should prevent these NMIs.

d3afef2eae86 was merged *before* 0790ae0564ab, but we think the testing
that prompted 0790ae0564ab ("PCI: Prevent VPD access for QLogic ISP2722")
was done with a kernel that lacked d3afef2eae86.  See [1, 2].

Remove the quirk added by 0790ae0564ab ("PCI: Prevent VPD access for QLogic
ISP2722") so customers can read the HBA VPD.

[1] https://lore.kernel.org/linux-pci/alpine.LRH.2.21.9999.2012161641230.28924@irv1user01.caveonetworks.com/
[2] https://lore.kernel.org/linux-pci/alpine.LRH.2.21.9999.2104071535110.13940@irv1user01.caveonetworks.com/
[bhelgaas: commit log]
Link: https://lore.kernel.org/r/20210409215153.16569-2-aeasi@marvell.com
Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org # v4.6+
drivers/pci/vpd.c