Commit 83c3d340 authored by Kefeng Wang's avatar Kefeng Wang Committed by Martin K. Petersen

mpt3sas: Fix panic when aer correct error occurred

The _scsih_pci_mmio_enabled called if scsih_pci_error_detected returns
PCI_ERS_RESULT_CAN_RECOVER, at this point, read/write to the device
still works, no need to reset slot.

Or the mpt3sas_base_map_resources in scsih_pci_slot_reset will fail,
and iounamp ioc->chip, then we will meet issue when read ioc->chip
in mpt3sas_base_get_iocstate from _base_fault_reset_work.

Cc: Sathya Prakash <>
Cc: Chaitra P B <>
Cc: Suganath Prabu Subramani <>
Signed-off-by: default avatarKefeng Wang <>
Acked-by: default avatarChaitra P B <>
Signed-off-by: default avatarMartin K. Petersen <>
parent ef8d1d51
......@@ -9035,8 +9035,11 @@ scsih_pci_mmio_enabled(struct pci_dev *pdev)
/* TODO - dump whatever for debugging purposes */
/* Request a slot reset. */
/* This called only if scsih_pci_error_detected returns
* PCI_ERS_RESULT_CAN_RECOVER. Read/write to the device still
* works, no need to reset slot.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment