net: qed: invoke err notify on critical areas
In a number of critical places not only debug trace should be printed, but the appropriate hw error condition should be raised and error handling/recovery should start. Introduce our new qed_hw_err_notify invocation in these places to record and indicate critical error conditions in hardware. Signed-off-by: Ariel Elior <ariel.elior@marvell.com> Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a8736ea83b
commit
2ec276d5b2
@@ -3085,7 +3085,9 @@ int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params)
|
||||
rc = qed_final_cleanup(p_hwfn, p_hwfn->p_main_ptt,
|
||||
p_hwfn->rel_pf_id, false);
|
||||
if (rc) {
|
||||
DP_NOTICE(p_hwfn, "Final cleanup failed\n");
|
||||
qed_hw_err_notify(p_hwfn, p_hwfn->p_main_ptt,
|
||||
QED_HW_ERR_RAMROD_FAIL,
|
||||
"Final cleanup failed\n");
|
||||
goto load_err;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user