Ver Fonte

qcacmn: Make intr thres zero for unnecessary interrupts

Make interrupt threshold zero for interrupts that are not
needed by host.

Change-Id: Id80c0be77b29b3b47cf3af568ae82f03f33d6f33
Nandha Kishore Easwaran há 3 anos atrás
pai
commit
8ec7a3a162
1 ficheiros alterados com 16 adições e 0 exclusões
  1. 16 0
      dp/wifi3.0/dp_main.c

+ 16 - 0
dp/wifi3.0/dp_main.c

@@ -1795,6 +1795,22 @@ dp_srng_configure_interrupt_thresholds(struct dp_soc *soc,
 			wlan_cfg_get_int_batch_threshold_other(soc->wlan_cfg_ctx);
 	}
 
+	/* These rings donot require interrupt to host. Make them zero */
+	switch (ring_type) {
+	case REO_REINJECT:
+	case REO_CMD:
+	case TCL_DATA:
+	case TCL_CMD_CREDIT:
+	case TCL_STATUS:
+	case WBM_IDLE_LINK:
+	case SW2WBM_RELEASE:
+	case PPE2TCL:
+	case SW2RXDMA_NEW:
+		ring_params->intr_timer_thres_us = 0;
+		ring_params->intr_batch_cntr_thres_entries = 0;
+		break;
+	}
+
 	/* Enable low threshold interrupts for rx buffer rings (regular and
 	 * monitor buffer rings.
 	 * TODO: See if this is required for any other ring