Loading
[Backport]scsi: hisi_sas: Add firmware information check
mainline inclusion from mainline-v6.12-rc1 commit 2c335fa7e69c06d8932ae8bc0ec7145de2973cf5 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBCN9K CVE: NA Reference: https://lore.kernel.org/r/20241008021822.2617339-4-liyihang9@huawei.com ------------------------------------------------------------------ For security purposes, after information is obtained through the FW, check information to ensure data correctness. - In v1 and v2 hw, the maximum number of PHYs is 9, while in v3 it is 8. - In v2 and v3 hw, the maximum number of hardware queues is 16, while in v1 it is 32. Also add some debug logs for failure. Signed-off-by:Yihang Li <liyihang9@huawei.com> Link: https://lore.kernel.org/r/20241008021822.2617339-4-liyihang9@huawei.com Reviewed-by:
Xiang Chen <chenxiang66@hisilicon.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by:
Slim6882 <yangjunshuo@huawei.com>