mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-05 11:53:41 +00:00

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>
40 lines
890 B
Makefile
40 lines
890 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
obj-$(CONFIG_ATH11K) += ath11k.o
|
|
ath11k-y += core.o \
|
|
hal.o \
|
|
hal_tx.o \
|
|
hal_rx.o \
|
|
wmi.o \
|
|
mac.o \
|
|
reg.o \
|
|
htc.o \
|
|
qmi.o \
|
|
dp.o \
|
|
dp_tx.o \
|
|
dp_rx.o \
|
|
debug.o \
|
|
ce.o \
|
|
peer.o \
|
|
dbring.o \
|
|
hw.o \
|
|
pcic.o \
|
|
fw.o \
|
|
p2p.o
|
|
|
|
ath11k-$(CONFIG_ATH11K_DEBUGFS) += debugfs.o debugfs_htt_stats.o debugfs_sta.o
|
|
ath11k-$(CONFIG_NL80211_TESTMODE) += testmode.o
|
|
ath11k-$(CONFIG_ATH11K_TRACING) += trace.o
|
|
ath11k-$(CONFIG_THERMAL) += thermal.o
|
|
ath11k-$(CONFIG_ATH11K_SPECTRAL) += spectral.o
|
|
ath11k-$(CONFIG_PM) += wow.o
|
|
ath11k-$(CONFIG_DEV_COREDUMP) += coredump.o
|
|
|
|
obj-$(CONFIG_ATH11K_AHB) += ath11k_ahb.o
|
|
ath11k_ahb-y += ahb.o
|
|
|
|
obj-$(CONFIG_ATH11K_PCI) += ath11k_pci.o
|
|
ath11k_pci-y += mhi.o pci.o
|
|
|
|
# for tracing framework to find trace.h
|
|
CFLAGS_trace.o := -I$(src)
|