diff options
| author | Terry Bowman <terry.bowman@amd.com> | 2026-08-03 17:17:58 -0500 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-08-05 13:46:43 -0700 |
| commit | 9d399526128bae184b153deab42b49f5f3eea2ed (patch) | |
| tree | 476b1406643ddbbb1fd06212344255372886ec42 /scripts/stackusage | |
| parent | 29458e62d0829cbc99435f3e44fd560f9bbf1da7 (diff) | |
| download | linux-9d399526128bae184b153deab42b49f5f3eea2ed.tar.gz linux-9d399526128bae184b153deab42b49f5f3eea2ed.zip | |
cxl/ras: Fix cxl_rch_get_aer_severity() wrong severity register
cxl_rch_get_aer_severity() classifies RCH Downstream Port uncorrectable
errors as fatal or non-fatal by ANDing uncorrectable status with
PCI_ERR_ROOT_FATAL_RCV. This is wrong because PCI_ERR_ROOT_FATAL_RCV is a
Root Error Status register bit (bit 6), not a severity bit. ANDing it
against uncorrectable status tests a reserved bit and produces incorrect
severity classification.
Fix by ANDing the unmasked uncor_status against uncor_severity. Per
PCIe Base Spec r6.0 Section 7.8.4.4, each bit in the Uncorrectable
Error Severity register indicates whether the corresponding error is
fatal (1) or non-fatal (0).
Fixes: 6ac07883dbb5 ("cxl/pci: Add RCH downstream port error logging")
Cc: stable@vger.kernel.org
Signed-off-by: Terry Bowman <terry.bowman@amd.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Richard Cheng <icheng@nvidia.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20260803221810.3685703-3-terry.bowman@amd.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
