linux/drivers/scsi/hisi_sas
Xiaofei Tan f70c1251de scsi: hisi_sas: workaround a v3 hw hilink bug
There is an SoC bug of v3 hw development version. When hot- unplugging a
directly attached disk, the PHY down interrupt may not happen. It is
very easy to appear on some boards.

When this issue occurs, the controller will receive many invalid dword
frames, and the "alos" fields of register HILINK_ERR_DFX can indicate
that disk was unplugged.

As an workaround solution, this patch detects this issue in the channel
interrupt, and workaround it by following steps:

 - Disable the PHY
 - Clear error code and interrupt
 - Enable the PHY

Then the HW will reissue PHY down interrupt.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-05-08 01:10:44 -04:00
..
hisi_sas_main.c scsi: hisi_sas: update PHY linkrate after a controller reset 2018-05-08 01:10:44 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: Code cleanup and minor bug fixes 2018-03-12 21:55:25 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: update PHY linkrate after a controller reset 2018-05-08 01:10:44 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: workaround a v3 hw hilink bug 2018-05-08 01:10:44 -04:00
hisi_sas.h scsi: hisi_sas: update PHY linkrate after a controller reset 2018-05-08 01:10:44 -04:00
Kconfig scsi: hisi_sas: Remove depends on HAS_DMA in case of platform dependency 2018-03-21 18:34:21 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00