ath10k: Enable MSA region dump support for WCN3990
PATCH v4 1/1 ath10k: Enable MSA region dump support for WCN3990
MSA memory region caries the hw descriptors information. Dump MSA region in core dump as this is very helpful in debugging hw issues.
Testing: Tested on WCN3990 HW
Tested FW: WLAN.HL.3.1-00959-QCAHLSWMTPLZ-1
---
Changes from v3:
- Fixed error reported in v2.
Changes from v2:
- Rebased on top of 38faed150438 ath10k: perform crash dump collection in workqueue.
- Removed redundant msa permission call.
--- drivers/net/wireless/ath/ath10k/coredump.c | 21 +++++++ drivers/net/wireless/ath/ath10k/coredump.h | 1 + drivers/net/wireless/ath/ath10k/qmi.c | 4 ++ drivers/net/wireless/ath/ath10k/snoc.c | 66 ++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/snoc.h | 1 + 5 files changed, 93 insertions(+)
drivers/net/wireless/ath/ath10k/coredump.c +21 -0
@@ -962,6 +962,19 @@ static const struct ath10k_mem_region qca4019_hw10_mem_regions[] = { }, }; +static const struct ath10k_mem_region wcn399x_hw10_mem_regions[] = { + { +/* MSA region start is not fixed, hence it is assigned at runtime */ + .type =ATH10K_MEM_REGION_TYPE_MSA , + .len =0x100000 , + .name ="DRAM" , + .section_table = { + .sections =NULL , + .size =0 , + }, + }, +}; +static const struct ath10k_hw_mem_layout hw_mem_layouts[] = { { .hw_id =QCA6174_HW_1_0_VERSION ,
@@ -1059,6 +1072,14 @@ static const struct ath10k_hw_mem_layout hw_mem_layouts[] = { .size = ARRAY_SIZE(qca4019_hw10_mem_regions), }, }, + { + .hw_id = WCN3990_HW_1_0_DEV_VERSION, + .hw_rev = ATH10K_HW_WCN3990, + .region_table = { + .regions = wcn399x_hw10_mem_regions, + .size = ARRAY_SIZE(wcn399x_hw10_mem_regions), + }, + }, };static u32 ath10k_coredump_get_ramdump_size (struct ath10k *ar)
drivers/net/wireless/ath/ath10k/coredump.h +1 -0
@@ -126,6 +126,7 @@ enum ath10k_mem_region_type {ATH10K_MEM_REGION_TYPE_IRAM2 =5 ,ATH10K_MEM_REGION_TYPE_IOSRAM =6 ,ATH10K_MEM_REGION_TYPE_IOREG =7 , + ATH10K_MEM_REGION_TYPE_MSA = 8, };/* Define a section of the region which should be copied. As not all parts
drivers/net/wireless/ath/ath10k/qmi.c +4 -0
@@ -817,9 +817,13 @@ ath10k_qmi_driver_event_post(struct ath10k_qmi *qmi,static void ath10k_qmi_event_server_exit (struct ath10k_qmi *qmi) {struct ath10k *ar = qmi->ar; +struct ath10k_snoc *ar_snoc =ath10k_snoc_priv (ar);ath10k_qmi_remove_msa_permission (qmi);ath10k_core_free_board_files (ar); +if (!test_bit (ATH10K_SNOC_FLAG_UNREGISTERING , &ar_snoc->flags)) +ath10k_snoc_fw_crashed_dump (ar); +ath10k_snoc_fw_indication (ar,ATH10K_QMI_EVENT_FW_DOWN_IND );ath10k_dbg (ar,ATH10K_DBG_QMI ,"wifi fw qmi service disconnected\n" ); }
drivers/net/wireless/ath/ath10k/snoc.c +66 -0
78 lines not on this page · raw message
drivers/net/wireless/ath/ath10k/snoc.h +1 -0
@@ -101,5 +101,6 @@ static inline struct ath10k_snoc *ath10k_snoc_priv(struct ath10k *ar) }int ath10k_snoc_fw_indication (struct ath10k *ar,u64 type); +void ath10k_snoc_fw_crashed_dump (struct ath10k *ar);#endif /* _SNOC_H_ */
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 9 lines · Govind Singh
MSA memory region caries the hw descriptors information. Dump MSA region in core dump as this is very helpful in debugging hw issues.
Testing: Tested on WCN3990 HW
Tested FW: WLAN.HL.3.1-00959-QCAHLSWMTPLZ-1Signed-off-by Govind Singh <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
3f14b73c3843 ath10k: Enable MSA region dump support for WCN3990
Signature · 9 lines
https://patchwork.kernel.org/patch/11036163/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 9 lines · Govind Singh
MSA memory region caries the hw descriptors information. Dump MSA region in core dump as this is very helpful in debugging hw issues.
Testing: Tested on WCN3990 HW
Tested FW: WLAN.HL.3.1-00959-QCAHLSWMTPLZ-1Signed-off-by Govind Singh <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
3f14b73c3843 ath10k: Enable MSA region dump support for WCN3990
Signature · 3 lines
https://patchwork.kernel.org/patch/11036163/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches