IB/mthca: Disable parity reporting
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 30 Mar 2021 17:43:17 +0000 (12:43 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 31 Mar 2021 17:29:33 +0000 (12:29 -0500)
commitd06a113fec57b2c012b94241af4a1bc5656458a2
treec0b3a6a72d139acc212a9a41cb9f97589ec7c52f
parent1fd3dde5e270ad08f1406f921c9a2cda154fcea9
IB/mthca: Disable parity reporting

For Mellanox Tavor devices, we previously set dev->broken_parity_status,
which does not change the device's behavior; it merely prevents the EDAC
PCI error reporting from warning about Master Data Parity Error, Signaled
System Error, or Detected Parity Error for this device.

Instead, disable Parity Error Response so the device doesn't report
parity errors in the first place.

[bhelgaas: split out pci_disable_parity(), commit log, keep quirk static]
Link: https://lore.kernel.org/r/20210330174318.1289680-3-helgaas@kernel.org
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/quirks.c