]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath11k: Add firmware coredump collection support
authorMiaoqing Pan <quic_miaoqing@quicinc.com>
Tue, 13 Aug 2024 01:30:28 +0000 (09:30 +0800)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Tue, 18 Feb 2025 17:53:34 +0000 (09:53 -0800)
commit5edbb148bc57295a6abbb31b832878c0725ed10a
tree7b1d431779d617bee115aca333838295e2eadd4a
parent9ee2578c343a2c8b6cf6c43f2f385cdb56a25250
wifi: ath11k: Add firmware coredump collection support

In case of firmware assert snapshot of firmware memory is essential for
debugging. Add firmware coredump collection support for PCI bus.
Collect RDDM and firmware paging dumps from MHI and pack them in TLV
format and also pack various memory shared during QMI phase in separate
TLVs.  Add necessary header and share the dumps to user space using dev
coredump framework. Coredump collection is controlled by
CONFIG_DEV_COREDUMP. Dump collected for a radio is 55 MB approximately.

The changeset is mostly copied from:
https://lore.kernel.org/all/20240325183414.4016663-1-quic_ssreeela@quicinc.com/.

Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-04358-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Signed-off-by: Miaoqing Pan <quic_miaoqing@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://patch.msgid.link/20240813013028.2708111-2-quic_miaoqing@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath11k/Makefile
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/coredump.c [new file with mode: 0644]
drivers/net/wireless/ath/ath11k/coredump.h [new file with mode: 0644]
drivers/net/wireless/ath/ath11k/hif.h
drivers/net/wireless/ath/ath11k/mhi.c
drivers/net/wireless/ath/ath11k/mhi.h
drivers/net/wireless/ath/ath11k/pci.c
drivers/net/wireless/ath/ath11k/qmi.h