summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Wang <wangroger@google.com>2018-12-21 04:22:05 +0000
committerRoger Wang <wangroger@google.com>2019-04-23 02:06:23 +0000
commit396ac420499ad348f63da903e9342a2751ab9ca9 (patch)
tree4aba7891c3ca85deb9da97b4af63044ed19642c1
parent706ead5857886989f749eb47000ad984a5ee9459 (diff)
downloadqca-wfi-host-cmn-android-msm-crosshatch-4.9-q-preview-5.tar.gz
This reverts commit 39e73115943400fca3096aa6a620161568711336. Reason for revert: <INSERT REASONING HERE> Change-Id: Ib0cd4fe1d0599541f4bd54478603dec582b2d32f
-rw-r--r--hif/src/ce/ce_service.c5
-rw-r--r--wmi/inc/wmi_unified_priv.h8
-rw-r--r--wmi/src/wmi_unified.c12
3 files changed, 1 insertions, 24 deletions
diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c
index f1e1afc02..222cebf8f 100644
--- a/hif/src/ce/ce_service.c
+++ b/hif/src/ce/ce_service.c
@@ -89,10 +89,7 @@ void hif_ce_war_enable(void)
hif_ce_war1 = 1;
}
-/*
#ifdef CONFIG_SLUB_DEBUG_ON
-*/
-#if 1
/**
* struct hif_ce_event - structure for detailing a ce event
@@ -111,7 +108,7 @@ struct hif_ce_desc_event {
};
/* max history to record per copy engine */
-#define HIF_CE_HISTORY_MAX 2048
+#define HIF_CE_HISTORY_MAX 512
qdf_atomic_t hif_ce_desc_history_index[CE_COUNT_MAX];
struct hif_ce_desc_event hif_ce_desc_history[CE_COUNT_MAX][HIF_CE_HISTORY_MAX];
diff --git a/wmi/inc/wmi_unified_priv.h b/wmi/inc/wmi_unified_priv.h
index 65a9fc6db..c7116dc34 100644
--- a/wmi/inc/wmi_unified_priv.h
+++ b/wmi/inc/wmi_unified_priv.h
@@ -180,14 +180,6 @@ struct wmi_wq_dbg_info {
qdf_thread_t *task;
};
-struct wmi_rx_history_type {
- uint32_t id;
- wmi_buf_t evt_buf;
- uint64_t timestamp;
-};
-
-#define WMI_RX_HISTORY_MAX 1024
-
struct wmi_ops {
QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
uint8_t macaddr[IEEE80211_ADDR_LEN],
diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c
index a25512991..b423832b1 100644
--- a/wmi/src/wmi_unified.c
+++ b/wmi/src/wmi_unified.c
@@ -85,9 +85,6 @@ typedef PREPACK struct {
/* end of copy wmi.h */
#endif /* CONFIG_WIN */
-struct wmi_rx_history_type wmi_rx_history[WMI_RX_HISTORY_MAX];
-uint16_t wmi_rx_hist_last_idx = 0;
-
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0))
/* TODO Cleanup this backported function */
static int qcacld_bp_seq_printf(struct seq_file *m, const char *f, ...)
@@ -1714,7 +1711,6 @@ void __wmi_control_rx(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf)
int tlv_ok_status = 0;
#endif
uint32_t idx = 0;
- static uint16_t wmi_rx_hist_idx = 0;
id = WMI_GET_FIELD(qdf_nbuf_data(evt_buf), WMI_CMD_HDR, COMMANDID);
@@ -1724,14 +1720,6 @@ void __wmi_control_rx(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf)
data = qdf_nbuf_data(evt_buf);
len = qdf_nbuf_len(evt_buf);
- wmi_rx_history[wmi_rx_hist_idx].timestamp = qdf_get_log_timestamp();
- wmi_rx_history[wmi_rx_hist_idx].evt_buf = evt_buf;
- wmi_rx_history[wmi_rx_hist_idx].id = id;
- wmi_rx_hist_last_idx = wmi_rx_hist_idx;
-
- if (++wmi_rx_hist_idx == WMI_RX_HISTORY_MAX)
- wmi_rx_hist_idx = 0;
-
#ifndef WMI_NON_TLV_SUPPORT
if (wmi_handle->target_type == WMI_TLV_TARGET) {
/* Validate and pad(if necessary) the TLVs */