Pārlūkot izejas kodu

qcacmn: Disable batch intr for SW source rings

Source SRNG rings like RXDMA buffer rings only need low
threshold interrupts to ensure they are not empty. Disable
batch interrupts by setting batch count to 0.

Change-Id: I5de38caa1fccf162143d9598c0499dd8c5318391
Karunakar Dasineni 7 gadi atpakaļ
vecāks
revīzija
bef3b1b9b2
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      dp/wifi3.0/dp_main.c

+ 3 - 1
dp/wifi3.0/dp_main.c

@@ -663,7 +663,9 @@ static int dp_srng_setup(struct dp_soc *soc, struct dp_srng *srng,
 		 */
 		ring_params.low_threshold = num_entries >> 3;
 		ring_params.flags |= HAL_SRNG_LOW_THRES_INTR_ENABLE;
-		ring_params.intr_timer_thres_us = 0x1000;
+		ring_params.intr_timer_thres_us =
+			wlan_cfg_get_int_timer_threshold_rx(soc->wlan_cfg_ctx);
+		ring_params.intr_batch_cntr_thres_entries = 0;
 	}
 
 	srng->hal_srng = hal_srng_setup(hal_soc, ring_type, ring_num,