This megaraid_sas adapter does have a valid pci vpd information.
Earlier commit
5bf1badcd02f ("pci: Limit VPD length for megaraid_sas
adapter") changed the vpd length to 0x80. This change fixed the panic.
However, we found some options of the lspci does not work very well if
it cannot find the valid vpd tag(Example command "lspci -s 10:00.0 -vv").
It displays the error message and exits right away. Setting the length
to 0 fixes the problem.
Signed-off-by: Babu Moger <babu.moger@oracle.com>
Tested-by: Dmitry Klochkov <dmitry.klochkov@oracle.com>
Orabug:
22104511
(cherry picked from commit
df139559cf34e64c478cb6255371a3fec964bdb3)
static void quirk_megaraid_sas_limit_vpd(struct pci_dev *dev)
{
if (dev->vpd)
- dev->vpd->len = 0x80;
+ dev->vpd->len = 0;
}
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LSI_LOGIC, 0x0060,