wifi: ath11k: Add crash logging
PATCH v4 1/1 wifi: ath11k: Add crash logging
Currently, the ath11k driver does not print a crash signature when a crash happens. Checked by triggering a simulated crash using the command
[1] and checking dmesg for logs.
[1] echo assert > /sys/kernel/debug/ath11k/../simulate_fw_crash
Change the crash logging from debug to informational and add a warning when firmware crash MHI_CB_EE_RDDM happens.
Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23
---
v4:
Shift line 329 one space to the right to fix code alignment.
--- drivers/net/wireless/ath/ath11k/mhi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath11k/mhi.c +3 -2
@@ -325,14 +325,15 @@ static void ath11k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl, {struct ath11k_base *ab =dev_get_drvdata (mhi_cntrl->cntrl_dev); -ath11k_dbg (ab,ATH11K_DBG_BOOT ,"notify status reason %s\n" , -ath11k_mhi_op_callback_to_str (cb)); +ath11k_info (ab,"notify status reason %s\n" , +ath11k_mhi_op_callback_to_str (cb));switch (cb) {case MHI_CB_SYS_ERROR :ath11k_warn (ab,"firmware crashed: MHI_CB_SYS_ERROR\n" );break ;case MHI_CB_EE_RDDM : +ath11k_warn (ab,"firmware crashed: MHI_CB_EE_RDDM\n" );if (!(test_bit (ATH11K_FLAG_UNREGISTERING , &ab->dev_flags)))queue_work (ab->workqueue_aux, &ab->reset_work);break ;
Signature · 1 line
2.41.0.255.g8b1d071c50-goog
Quoted 4 lines · Arowa Suliman
Currently, the ath11k driver does not print a crash signature when a crash happens. Checked by triggering a simulated crash using the command
[1] and checking dmesg for logs.
Quoted 8 lines
[1] echo assert >
/sys/kernel/debug/ath11k/../simulate_fw_crashChange the crash logging from debug to informational and add a warning when firmware crash
MHI_CB_EE_RDDMhappens.Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23
Signed-off-by Arowa Suliman <[email protected]>
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 6 lines · Arowa Suliman
Currently, the ath11k driver does not print a crash signature when a crash happens. Checked by triggering a simulated crash using the command
[1] and checking dmesg for logs.[1] echo assert >
/sys/kernel/debug/ath11k/../simulate_fw_crash
Quoted 7 lines
Change the crash logging from debug to informational and add a warning when firmware crash
MHI_CB_EE_RDDMhappens.Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23
Signed-off-by Arowa Suliman <[email protected]>
I did some cosmetic cleanup to the commit log.
drivers/net/wireless/ath/ath11k/mhi.c static void ath11k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl, · line 329
Quoted 10 lines
drivers/net/wireless/ath/ath11k/mhi.c +2
-2@@ -325,14 +325,15 @@ static void ath11k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl, {struct ath11k_base *ab =dev_get_drvdata (mhi_cntrl->cntrl_dev); -ath11k_dbg (ab,ATH11K_DBG_BOOT ,"notify status reason %s\n" , -ath11k_mhi_op_callback_to_str (cb)); +ath11k_info (ab,"notify status reason %s\n" , +ath11k_mhi_op_callback_to_str (cb));
In my view info, warning and error messages need to be at least somewhat understandable to the user. I think this message is not understandable and it should remain as a debug message. So I removed this change.
Please check my changes in the pending branch:
Signature · 8 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 6 lines · Arowa Suliman
Currently, the ath11k driver does not print a crash signature when a
MHI_CB_EE_RDDMcrash happens. Checked by triggering a simulated crash using the command and checking dmesg for logs:echo assert >
/sys/kernel/debug/ath11k/../simulate_fw_crash
Quoted 7 lines
Add a warning when firmware crash
MHI_CB_EE_RDDMhappens.Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23
Signed-off-by Arowa Suliman <[email protected]>Reviewed-by Jeff Johnson <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
4a93b554cf9f wifi: ath11k: mhi: add a warning message for MHI_CB_EE_RDDM crash
Signature · 9 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k