summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath11k/qmi.h
diff options
context:
space:
mode:
authorAnilkumar Kolli <quic_akolli@quicinc.com>2022-05-09 14:57:32 +0300
committerKalle Valo <quic_kvalo@quicinc.com>2022-05-10 19:33:33 +0300
commit5962f370ce416371b432325a8f98680f73a1bfdc (patch)
treeafbe4ac8f10b8197588b1de79f6d63a4bdf3df00 /drivers/net/wireless/ath/ath11k/qmi.h
parent4255a07a98cb0054947fbe5cb3d6f0b5eb87522b (diff)
downloadlinux-5962f370ce416371b432325a8f98680f73a1bfdc.tar.xz
ath11k: Reuse the available memory after firmware reload
Ath11k allocates memory when firmware requests memory in QMI. Coldboot calibration and firmware recovery uses firmware reload. On firmware reload, firmware sends memory request again. If Ath11k allocates memory on first firmware boot, reuse the available memory. Also check if the segment type and size is same on the next firmware boot. Reuse if segment type/size is same as previous firmware boot else free the segment and allocate the segment with size/type. Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.6.0.1-00752-QCAHKSWPL_SILICONZ-1 Signed-off-by: Anilkumar Kolli <quic_akolli@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20220506141448.10340-1-quic_akolli@quicinc.com
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/qmi.h')
-rw-r--r--drivers/net/wireless/ath/ath11k/qmi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/qmi.h b/drivers/net/wireless/ath/ath11k/qmi.h
index c24e6995cca3..c83cf822be81 100644
--- a/drivers/net/wireless/ath/ath11k/qmi.h
+++ b/drivers/net/wireless/ath/ath11k/qmi.h
@@ -97,6 +97,8 @@ struct ath11k_qmi_event_msg {
struct target_mem_chunk {
u32 size;
u32 type;
+ u32 prev_size;
+ u32 prev_type;
dma_addr_t paddr;
u32 *vaddr;
void __iomem *iaddr;