aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2017-12-22 08:39:58 -0500
committerKalle Valo <kvalo@qca.qualcomm.com>2017-12-27 05:20:49 -0500
commit1a8e5c618bfa66baea195df0e20b0e40cf9825a1 (patch)
tree2a73178e0c0ce86f727dd4ada4bd09ba5638b602
parent703f261dd77f3afb8058a927ca2f4651691f0495 (diff)
ath10k: add memory dump support QCA988X
Copy two regions of registers and bigger DRAM region to the dump file. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath10k/coredump.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/coredump.c b/drivers/net/wireless/ath/ath10k/coredump.c
index 2f4cb6c473f5..4dde126dab17 100644
--- a/drivers/net/wireless/ath/ath10k/coredump.c
+++ b/drivers/net/wireless/ath/ath10k/coredump.c
@@ -667,6 +667,39 @@ static const struct ath10k_mem_region qca6174_hw30_mem_regions[] = {
667 }, 667 },
668}; 668};
669 669
670static const struct ath10k_mem_region qca988x_hw20_mem_regions[] = {
671 {
672 .type = ATH10K_MEM_REGION_TYPE_DRAM,
673 .start = 0x400000,
674 .len = 0x50000,
675 .name = "DRAM",
676 .section_table = {
677 .sections = NULL,
678 .size = 0,
679 },
680 },
681 {
682 .type = ATH10K_MEM_REGION_TYPE_REG,
683 .start = 0x4000,
684 .len = 0x2000,
685 .name = "REG_PART1",
686 .section_table = {
687 .sections = NULL,
688 .size = 0,
689 },
690 },
691 {
692 .type = ATH10K_MEM_REGION_TYPE_REG,
693 .start = 0x8000,
694 .len = 0x58000,
695 .name = "REG_PART2",
696 .section_table = {
697 .sections = NULL,
698 .size = 0,
699 },
700 },
701};
702
670static const struct ath10k_hw_mem_layout hw_mem_layouts[] = { 703static const struct ath10k_hw_mem_layout hw_mem_layouts[] = {
671 { 704 {
672 .hw_id = QCA6174_HW_1_0_VERSION, 705 .hw_id = QCA6174_HW_1_0_VERSION,
@@ -717,6 +750,13 @@ static const struct ath10k_hw_mem_layout hw_mem_layouts[] = {
717 .size = ARRAY_SIZE(qca6174_hw30_mem_regions), 750 .size = ARRAY_SIZE(qca6174_hw30_mem_regions),
718 }, 751 },
719 }, 752 },
753 {
754 .hw_id = QCA988X_HW_2_0_VERSION,
755 .region_table = {
756 .regions = qca988x_hw20_mem_regions,
757 .size = ARRAY_SIZE(qca988x_hw20_mem_regions),
758 },
759 },
720}; 760};
721 761
722static u32 ath10k_coredump_get_ramdump_size(struct ath10k *ar) 762static u32 ath10k_coredump_get_ramdump_size(struct ath10k *ar)