From bef3b1b9b2f128ed74addfaa8b1fd73bce0110c3 Mon Sep 17 00:00:00 2001 From: Karunakar Dasineni Date: Wed, 28 Mar 2018 22:23:57 -0700 Subject: [PATCH] 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 --- dp/wifi3.0/dp_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 00ea18de93ac..b233e265095f 100644 --- a/dp/wifi3.0/dp_main.c +++ b/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,