]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI/DPC: Fix print AER status in DPC event handling
authorDongdong Liu <liudongdong3@huawei.com>
Mon, 11 Feb 2019 07:02:59 +0000 (15:02 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 Feb 2019 23:07:20 +0000 (17:07 -0600)
commit9f08a5d896ce43380314c34ed3f264c8e6075b80
treeda89e2656a63620f16cee2e8d74585d89a025681
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
PCI/DPC: Fix print AER status in DPC event handling

Previously dpc_handler() called aer_get_device_error_info() without
initializing info->severity, so aer_get_device_error_info() relied on
uninitialized data.

Add dpc_get_aer_uncorrect_severity() to read the port's AER status, mask,
and severity registers and set info->severity.

Also, clear the port's AER fatal error status bits.

Fixes: 8aefa9b0d910 ("PCI/DPC: Print AER status in DPC event handling")
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Cc: stable@vger.kernel.org # v4.19+
drivers/pci/pcie/dpc.c