scsi: hisi_sas: phy down when PHY state(0) of hardware is inconsistent with software's
driver inclusion category: bugfix bugzilla: NA CVE: NA Currently there are two scenarioes which may cause PHY state of hardware(which is 0) is inconsistent with software's: - Unplug SAS wire before get_phys_state when SAS controller reset, then the interrupts of phy down are ignored, phy state is 0 before reset, and it also gets 0 after reset, so phy down doesn't occur even if unpluged SAS wire; - For v3 hw later version, it will close bus when 2 bit ECC error occur. So if unplug SAS wire at that time, interrupts of phy down also not occur. So at last it will cause host reset. It also get phy state 0 before and after reset, the same issue occurs. To solve it, phy down when PHY state of hardware is inconsistent with software's. Signed-off-by:Xiang Chen <chenxiang66@hisilicon.com> Signed-off-by:
John Garry <john.garry@huawei.com> Signed-off-by:
chenxiang (M) <chenxiang66@hisilicon.com> Reviewed-by:
huangdaode <huangdaode@hisilicon.com> Reviewed-by:
Xie XiuQi <xiexiuqi@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment