]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: shutdown axi bus to avoid exception CQ returned
authorXiang Chen <chenxiang66@hisilicon.com>
Fri, 25 Jan 2019 14:22:31 +0000 (22:22 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Jan 2019 06:41:20 +0000 (01:41 -0500)
commitd652122d94fee7c666b7c338a5f971b933f445db
tree6945702922ad17f67a1b2169bdbdcd98d0a8705c
parenta81d2655a2ae180e3f373f8b49dcec89cca580c0
scsi: hisi_sas: shutdown axi bus to avoid exception CQ returned

When injecting 2 bit ECC error, it will cause fatal AXI interrupts. Before
the recovery of SAS controller reset, the internal of SAS controller is in
error. If CQ interrupts return at the time, actually it is exception CQ
interrupt, and it may cause resource release in disorder.

To avoid the exception situation, shutdown AXI bus after fatal AXI
interrupt. In SAS controller reset, it will restart AXI bus. For later
version of v3 hw, hardware will shutdown AXI bus for this situation, so
just fix current ver of v3 hw.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c