Browse Source

qcacmn: Add log while dropping FW diag events

FW diag events will be dropped when number FW diag events pending for
processing is reached to configured RX_DIAG_WQ_MAX_SIZE value. Add a
log when these diag events a getting dropped for debugging purpose.

Change-Id: Ifc303991bdf274fa7426794eaf71517722e9f386
CRs-Fixed: 2824458
Bapiraju Alla 4 years ago
parent
commit
197fc297c3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wmi/src/wmi_unified.c

+ 2 - 0
wmi/src/wmi_unified.c

@@ -2246,6 +2246,8 @@ wmi_process_rx_diag_event_worker_thread_ctx(struct wmi_unified *wmi_handle,
 		if (num_diag_events_pending == RX_DIAG_WQ_MAX_SIZE) {
 			qdf_spin_unlock_bh(&wmi_handle->diag_eventq_lock);
 			wmi_handle->wmi_rx_diag_events_dropped++;
+			wmi_debug_rl("Rx diag events dropped count: %d",
+				     wmi_handle->wmi_rx_diag_events_dropped);
 			qdf_nbuf_free(evt_buf);
 			return;
 		}