Loading
scsi: hisi_sas: Enable force phy when SATA disk directly connected
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBCOG7 CVE: NA ---------------------------------------------------------------------- the SAS controller determines the disk to which I/Os are delivered based on the port id in the DQ entry when SATA disk directly connected. When many phys were disconnected immediately and connected again during I/O sending and port id of phys were changed and used by other link, I/O may be sent to incorrect disk and data inconsistency on the SATA disk may occur during I/O retry with the old port id. So enable force phy, then force the command to be executed in a certain phy, and if the actual phy id of the port does not match the phy configured in the command, the chip will stop delivering the I/O to disk. Fixes: ce60689e ("scsi: hisi_sas: add v3 code to send ATA frame") Signed-off-by:Xingui Yang <yangxingui@huawei.com> Signed-off-by:
Bing Xia <xiabing14@h-partners.com>