qcacmn: Trim the hang data size as per requirement

Trim the hang data as per the customer data size requirement.

Change-Id: I5a5d848f820ddeaa721dba176e67dba97fed7a71
CRs-Fixed: 2751370
This commit is contained in:
Arun Kumar Khandavalli
2020-08-12 17:22:42 +05:30
committed by snandini
parent dd33cca37f
commit d564955d05
3 changed files with 10 additions and 8 deletions

View File

@@ -41,6 +41,7 @@ static uint32_t g_htc_credit_history_length;
static
struct HTC_CREDIT_HISTORY htc_credit_history_buffer[HTC_CREDIT_HISTORY_MAX];
#define NUM_HANG_CREDIT_HISTORY 1
#ifdef QCA_WIFI_NAPIER_EMULATION
#define HTC_EMULATION_DELAY_IN_MS 20
@@ -149,7 +150,7 @@ void htc_log_hang_credit_history(struct notifier_block *block, void *data)
qdf_notif_block *notif_block = qdf_container_of(block, qdf_notif_block,
notif_block);
struct qdf_notifer_data *htc_hang_data = data;
uint32_t count = 3, idx, total_len;
uint32_t count = NUM_HANG_CREDIT_HISTORY, idx, total_len;
HTC_HANDLE htc;
struct htc_hang_data_fixed_param *cmd;
uint8_t *htc_buf_ptr;

View File

@@ -24,13 +24,13 @@
#include <qdf_notifier.h>
#define QDF_HANG_EVENT_VERSION "1.0"
#define QDF_HANG_EVENT_VERSION "1"
/* Max hang event buffer size */
#define QDF_HANG_EVENT_DATA_SIZE 784
#define QDF_HANG_EVENT_DATA_SIZE 390
/* Max offset which host can write */
#define QDF_WLAN_MAX_HOST_OFFSET 390
#define QDF_WLAN_MAX_HOST_OFFSET 194
/* Start of the Firmware Data offset */
#define QDF_WLAN_HANG_FW_OFFSET 392
#define QDF_WLAN_HANG_FW_OFFSET 195
/**
* hang_event_tag: Hang event tag for various modules
@@ -59,10 +59,10 @@ enum hang_event_tag {
#define QDF_HANG_EVENT_TLV_HDR_SIZE (sizeof(uint32_t))
#define QDF_HANG_EVT_SET_HDR(tlv_buf, tag, len) \
(((uint32_t *)(tlv_buf))[0]) = (((tag) << 16) | ((len) & 0x0000FFFF))
(((uint16_t *)(tlv_buf))[0]) = (((tag) << 8) | ((len) & 0x000000FF))
#define QDF_HANG_GET_STRUCT_TLVLEN(tlv_struct) \
((uint32_t)(sizeof(tlv_struct) - QDF_HANG_EVENT_TLV_HDR_SIZE))
((uint16_t)(sizeof(tlv_struct) - QDF_HANG_EVENT_TLV_HDR_SIZE))
/**
* qdf_notifier_data - Private data for notifier data

View File

@@ -28,6 +28,7 @@ struct wmi_hang_data_fixed_param {
#define WMI_EVT_HIST 0
#define WMI_CMD_HIST 1
#define NUM_HANG_WMI_HISTORY 1
static void wmi_log_history(struct notifier_block *block, void *data,
uint8_t wmi_history)
@@ -36,7 +37,7 @@ static void wmi_log_history(struct notifier_block *block, void *data,
notif_block);
struct qdf_notifer_data *wmi_hang_data = data;
int nread, pos, total_len;
unsigned int wmi_ring_size = 3;
unsigned int wmi_ring_size = NUM_HANG_WMI_HISTORY;
uint64_t secs, usecs;
struct wmi_event_debug *wmi_evt;
struct wmi_unified *wmi_handle;