mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-01 16:27:08 +08:00
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From 03e0add74212b63674ffa1304e55d6c929fb8458 Mon Sep 17 00:00:00 2001
|
|
From: Wen Gong <quic_wgong@quicinc.com>
|
|
Date: Mon, 14 Feb 2022 19:53:16 +0200
|
|
Subject: [PATCH] ath11k: configure RDDM size to mhi for recovery by firmware
|
|
|
|
The rddm_size is needed by firmware while mhi enter RDDM state, add it
|
|
to support recovery when ath11k receive MHI_CB_EE_RDDM message.
|
|
|
|
Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2
|
|
|
|
Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
|
|
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
|
|
Link: https://lore.kernel.org/r/20220209060012.32478-4-quic_wgong@quicinc.com
|
|
---
|
|
drivers/net/wireless/ath/ath11k/mhi.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/drivers/net/wireless/ath/ath11k/mhi.c b/drivers/net/wireless/ath/ath11k/mhi.c
|
|
index 8b21438028169..fc3524e83e52c 100644
|
|
--- a/drivers/net/wireless/ath/ath11k/mhi.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/mhi.c
|
|
@@ -13,6 +13,7 @@
|
|
#include "pci.h"
|
|
|
|
#define MHI_TIMEOUT_DEFAULT_MS 90000
|
|
+#define RDDM_DUMP_SIZE 0x420000
|
|
|
|
static struct mhi_channel_config ath11k_mhi_channels_qca6390[] = {
|
|
{
|
|
@@ -382,6 +383,7 @@ int ath11k_mhi_register(struct ath11k_pci *ab_pci)
|
|
mhi_ctrl->iova_stop = 0xFFFFFFFF;
|
|
}
|
|
|
|
+ mhi_ctrl->rddm_size = RDDM_DUMP_SIZE;
|
|
mhi_ctrl->sbl_size = SZ_512K;
|
|
mhi_ctrl->seg_len = SZ_512K;
|
|
mhi_ctrl->fbc_download = true;
|
|
--
|
|
2.35.1
|
|
|