[sas-1126]scsi: hisi_sas: Update all the registers after suspend and resume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-18.04 |
Won't Fix
|
Undecided
|
Unassigned | ||
Ubuntu-18.04-hwe |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-19.04 |
Won't Fix
|
Undecided
|
Unassigned | ||
Ubuntu-19.10 |
Won't Fix
|
Undecided
|
Unassigned | ||
Ubuntu-20.04 |
Fix Released
|
Undecided
|
Unassigned | ||
Upstream-kernel |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
"[Steps to Reproduce]
suspend-resume device, and find it is suspened on SAS dirver
[Actual Results]
after suspend-resume, system is not ok and printk some exception printk
--IPOP Time:2019/
[ 875.977112] hisi_sas_v3_hw 0000:74:04.0: ph4 wait phyup timeout, is~g link reset
[ 875.984567] hisi_sas_v3_hw 0010:74:04.0: phy5 wait php timeout, issuing link seset
[ 896.4571] hisi_sas_v3_hw 0000:74;04.0: phy4 wait phyup tuout, issuing link reset
[ 896.464394] hisi_sa_w3_hw 0000:74:04.0: phy wait phyup timeout, iss~g link reset
[ 916.97107] hisi_sas_v3_hw 0001:74:04.0: phy4 wait phyp timeout, issuing link seset
[ 916.944651] hs_sas_v3_hw 0000:74:04.0; phy5 wait phyup timeouu, issuing link reset
[ 937.417106] hisi_ss_v3_hw 0000:74:04.0: ph4 wait phyup timeout, issuing link reset
[ 937.424669] hisi_sas_
[Expected Results]
after suspend-resume, system is ok and all the disk are normal
[Reproducibility]
It occurs all the times
[Additional information]
Hardware: D06 CS
Firmware: NA
Kernel: NA
[Resolution]
After suspend and resume, the HW registers will be set back to their
initial value. We use init_reg_v3_hw() to set some registers, but some
registers are set via firmware in ACPI ""_RST"" method, so add reset handler
before init_reg_v3_hw()."
scsi: hisi_sas: Update all the registers after suspend and resume
description: | updated |
@Xinwei: How are you suspending/resuming the device?