mac80211: remove ath10k_pci memory hacks
These two hacks are no longer necessary as they've been moved to a special variant of kmod-ath10k-ct. So, if you have a device suffering from low-memory situation and getting applications crashes due to the OOM reaper or kernel panics with ath10k, please use the "kmod-ath10k-ct-smallbuffers" package from now on. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
		@@ -1,11 +0,0 @@
 | 
				
			|||||||
--- a/drivers/net/wireless/ath/ath10k/htt.h
 | 
					 | 
				
			||||||
+++ b/drivers/net/wireless/ath/ath10k/htt.h
 | 
					 | 
				
			||||||
@@ -226,7 +226,7 @@ enum htt_rx_ring_flags {
 | 
					 | 
				
			||||||
 };
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 #define HTT_RX_RING_SIZE_MIN 128
 | 
					 | 
				
			||||||
-#define HTT_RX_RING_SIZE_MAX 2048
 | 
					 | 
				
			||||||
+#define HTT_RX_RING_SIZE_MAX 512
 | 
					 | 
				
			||||||
 #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)
 | 
					 | 
				
			||||||
@@ -1,38 +0,0 @@
 | 
				
			|||||||
--- a/drivers/net/wireless/ath/ath10k/pci.c
 | 
					 | 
				
			||||||
+++ b/drivers/net/wireless/ath/ath10k/pci.c
 | 
					 | 
				
			||||||
@@ -131,7 +131,7 @@ static struct ce_attr host_ce_config_wla
 | 
					 | 
				
			||||||
 		.flags = CE_ATTR_FLAGS,
 | 
					 | 
				
			||||||
 		.src_nentries = 0,
 | 
					 | 
				
			||||||
 		.src_sz_max = 2048,
 | 
					 | 
				
			||||||
-		.dest_nentries = 512,
 | 
					 | 
				
			||||||
+		.dest_nentries = 128,
 | 
					 | 
				
			||||||
 		.recv_cb = ath10k_pci_htt_htc_rx_cb,
 | 
					 | 
				
			||||||
 	},
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
@@ -140,7 +140,7 @@ static struct ce_attr host_ce_config_wla
 | 
					 | 
				
			||||||
 		.flags = CE_ATTR_FLAGS,
 | 
					 | 
				
			||||||
 		.src_nentries = 0,
 | 
					 | 
				
			||||||
 		.src_sz_max = 2048,
 | 
					 | 
				
			||||||
-		.dest_nentries = 128,
 | 
					 | 
				
			||||||
+		.dest_nentries = 64,
 | 
					 | 
				
			||||||
 		.recv_cb = ath10k_pci_htc_rx_cb,
 | 
					 | 
				
			||||||
 	},
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
@@ -167,7 +167,7 @@ static struct ce_attr host_ce_config_wla
 | 
					 | 
				
			||||||
 		.flags = CE_ATTR_FLAGS,
 | 
					 | 
				
			||||||
 		.src_nentries = 0,
 | 
					 | 
				
			||||||
 		.src_sz_max = 512,
 | 
					 | 
				
			||||||
-		.dest_nentries = 512,
 | 
					 | 
				
			||||||
+		.dest_nentries = 128,
 | 
					 | 
				
			||||||
 		.recv_cb = ath10k_pci_htt_rx_cb,
 | 
					 | 
				
			||||||
 	},
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
@@ -192,7 +192,7 @@ static struct ce_attr host_ce_config_wla
 | 
					 | 
				
			||||||
 		.flags = CE_ATTR_FLAGS,
 | 
					 | 
				
			||||||
 		.src_nentries = 0,
 | 
					 | 
				
			||||||
 		.src_sz_max = 2048,
 | 
					 | 
				
			||||||
-		.dest_nentries = 128,
 | 
					 | 
				
			||||||
+		.dest_nentries = 96,
 | 
					 | 
				
			||||||
 		.recv_cb = ath10k_pci_pktlog_rx_cb,
 | 
					 | 
				
			||||||
 	},
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user