2021-12-20 20:48:38 +00:00
|
|
|
--- a/drivers/net/wireless/ath/ath10k/htt.h
|
|
|
|
+++ b/drivers/net/wireless/ath/ath10k/htt.h
|
2024-06-19 11:51:47 +00:00
|
|
|
@@ -236,7 +236,11 @@ enum htt_rx_ring_flags {
|
2021-12-20 20:48:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define HTT_RX_RING_SIZE_MIN 128
|
|
|
|
+#ifndef CONFIG_ATH10K_SMALLBUFFERS
|
|
|
|
#define HTT_RX_RING_SIZE_MAX 2048
|
|
|
|
+#else
|
|
|
|
+#define HTT_RX_RING_SIZE_MAX 512
|
|
|
|
+#endif
|
|
|
|
#define HTT_RX_RING_SIZE HTT_RX_RING_SIZE_MAX
|
|
|
|
#define HTT_RX_RING_FILL_LEVEL (((HTT_RX_RING_SIZE) / 2) - 1)
|
|
|
|
#define HTT_RX_RING_FILL_LEVEL_DUAL_MAC (HTT_RX_RING_SIZE - 1)
|
|
|
|
--- a/drivers/net/wireless/ath/ath10k/pci.c
|
|
|
|
+++ b/drivers/net/wireless/ath/ath10k/pci.c
|
2024-06-19 11:51:47 +00:00
|
|
|
@@ -132,7 +132,11 @@ static const struct ce_attr pci_host_ce_
|
2021-12-20 20:48:38 +00:00
|
|
|
.flags = CE_ATTR_FLAGS,
|
|
|
|
.src_nentries = 0,
|
|
|
|
.src_sz_max = 2048,
|
|
|
|
+#ifndef CONFIG_ATH10K_SMALLBUFFERS
|
|
|
|
.dest_nentries = 512,
|
|
|
|
+#else
|
|
|
|
+ .dest_nentries = 128,
|
|
|
|
+#endif
|
|
|
|
.recv_cb = ath10k_pci_htt_htc_rx_cb,
|
|
|
|
},
|
|
|
|
|
2024-06-19 11:51:47 +00:00
|
|
|
@@ -141,7 +145,11 @@ static const struct ce_attr pci_host_ce_
|
2021-12-20 20:48:38 +00:00
|
|
|
.flags = CE_ATTR_FLAGS,
|
|
|
|
.src_nentries = 0,
|
|
|
|
.src_sz_max = 2048,
|
|
|
|
+#ifndef CONFIG_ATH10K_SMALLBUFFERS
|
|
|
|
.dest_nentries = 128,
|
|
|
|
+#else
|
|
|
|
+ .dest_nentries = 64,
|
|
|
|
+#endif
|
|
|
|
.recv_cb = ath10k_pci_htc_rx_cb,
|
|
|
|
},
|
|
|
|
|
2024-06-19 11:51:47 +00:00
|
|
|
@@ -168,7 +176,11 @@ static const struct ce_attr pci_host_ce_
|
2021-12-20 20:48:38 +00:00
|
|
|
.flags = CE_ATTR_FLAGS,
|
|
|
|
.src_nentries = 0,
|
|
|
|
.src_sz_max = 512,
|
|
|
|
+#ifndef CONFIG_ATH10K_SMALLBUFFERS
|
|
|
|
.dest_nentries = 512,
|
|
|
|
+#else
|
|
|
|
+ .dest_nentries = 128,
|
|
|
|
+#endif
|
|
|
|
.recv_cb = ath10k_pci_htt_rx_cb,
|
|
|
|
},
|
|
|
|
|
2024-06-19 11:51:47 +00:00
|
|
|
@@ -193,7 +205,11 @@ static const struct ce_attr pci_host_ce_
|
2021-12-20 20:48:38 +00:00
|
|
|
.flags = CE_ATTR_FLAGS,
|
|
|
|
.src_nentries = 0,
|
|
|
|
.src_sz_max = 2048,
|
|
|
|
+#ifndef CONFIG_ATH10K_SMALLBUFFERS
|
|
|
|
.dest_nentries = 128,
|
|
|
|
+#else
|
|
|
|
+ .dest_nentries = 96,
|
|
|
|
+#endif
|
|
|
|
.recv_cb = ath10k_pci_pktlog_rx_cb,
|
|
|
|
},
|
|
|
|
|