]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: add coredump_mask module parameter
authorKalle Valo <kvalo@qca.qualcomm.com>
Fri, 22 Dec 2017 13:39:15 +0000 (15:39 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 27 Dec 2017 10:20:32 +0000 (12:20 +0200)
commit10227ddd5c7f4ff10d44d7fd82f689b1cb6c1a7a
treeb92bdf302a3ad678d78452d4065a05eb3eb1831e
parent3e838b573a05c951fa49b6ad896f1088133490a5
ath10k: add coredump_mask module parameter

For memory dump support (it consumes quite a lot of memory) we need to control
what is exactly stored to the crash dump. Add a module parameter call
coredump_mask to do that. It's a bit mask of these values:

enum ath10k_fw_crash_dump_type {
ATH10K_FW_CRASH_DUMP_REGISTERS = 0,
ATH10K_FW_CRASH_DUMP_CE_DATA = 1,

ATH10K_FW_CRASH_DUMP_MAX,
};

For example, if we only want to store CE_DATA we would enable bit 2:

modprobe ath10k_core coredump_mask=0x2

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/coredump.c