Skip to content

Commit a8ae833

Browse files
Harshitha Premkvalo
authored andcommitted
wifi: ath11k: Prevent REO cmd failures
Prevent REO cmd failures causing double free by increasing REO cmd ring size and moving REO status ring mask to IRQ group 3 from group 0 to separate from tx completion ring on IRQ group 0 which may delay reo status processing. Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 Signed-off-by: Sathishkumar Muruganandam <quic_murugana@quicinc.com> Signed-off-by: Harshitha Prem <quic_hprem@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20230403182420.23375-3-quic_hprem@quicinc.com
1 parent 93a91f4 commit a8ae833

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/net/wireless/ath/ath11k/dp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ struct ath11k_pdev_dp {
214214
#define DP_REO_REINJECT_RING_SIZE 32
215215
#define DP_RX_RELEASE_RING_SIZE 1024
216216
#define DP_REO_EXCEPTION_RING_SIZE 128
217-
#define DP_REO_CMD_RING_SIZE 128
217+
#define DP_REO_CMD_RING_SIZE 256
218218
#define DP_REO_STATUS_RING_SIZE 2048
219219
#define DP_RXDMA_BUF_RING_SIZE 4096
220220
#define DP_RXDMA_REFILL_RING_SIZE 2048

drivers/net/wireless/ath/ath11k/hw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,7 @@ const struct ath11k_hw_ring_mask ath11k_hw_ring_mask_ipq8074 = {
12331233
ATH11K_RX_WBM_REL_RING_MASK_0,
12341234
},
12351235
.reo_status = {
1236+
0, 0, 0,
12361237
ATH11K_REO_STATUS_RING_MASK_0,
12371238
},
12381239
.rxdma2host = {

0 commit comments

Comments
 (0)