mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-07-25 16:19:48 +02:00
crypto: hisilicon/qm - disable error report before flr
[ Upstream commite71dc5602b] Before function level reset, driver first disable device error report and then waits for the device reset to complete. However, when the error is recovered, the error bits will be enabled again, resulting in invalid disable. It is modified to detect that there is no error before disable error report, and then do FLR. Fixes:7ce396fa12("crypto: hisilicon - add FLR support") Signed-off-by: Weili Qian <qianweili@huawei.com> Signed-off-by: Zongyu Wu <wuzongyu1@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e79c0fc4f6
commit
a7900d69fb
@@ -4459,8 +4459,6 @@ void hisi_qm_reset_prepare(struct pci_dev *pdev)
|
||||
u32 delay = 0;
|
||||
int ret;
|
||||
|
||||
hisi_qm_dev_err_uninit(pf_qm);
|
||||
|
||||
/*
|
||||
* Check whether there is an ECC mbit error, If it occurs, need to
|
||||
* wait for soft reset to fix it.
|
||||
@@ -4477,6 +4475,8 @@ void hisi_qm_reset_prepare(struct pci_dev *pdev)
|
||||
return;
|
||||
}
|
||||
|
||||
hisi_qm_dev_err_uninit(pf_qm);
|
||||
|
||||
/* PF obtains the information of VF by querying the register. */
|
||||
if (qm->fun_type == QM_HW_PF)
|
||||
qm_cmd_uninit(qm);
|
||||
|
||||
Reference in New Issue
Block a user