Commit 5705dba6 authored by chenxiang's avatar chenxiang Committed by Xie XiuQi
Browse files

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: default avatarXiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>

Signed-off-by: default avatarchenxiang (M) <chenxiang66@hisilicon.com>
Reviewed-by: default avatarhuangdaode <huangdaode@hisilicon.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 91c4d8ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment