Merge "qcacmn: Add ini param to control the crash inject"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
5b6fb9d48f
@@ -66,6 +66,7 @@
|
|||||||
|
|
||||||
static int get_version;
|
static int get_version;
|
||||||
static int gprint_limiter;
|
static int gprint_limiter;
|
||||||
|
static bool tgt_assert_enable;
|
||||||
|
|
||||||
static ATH_DEBUG_MASK_DESCRIPTION g_fwlog_debug_description[] = {
|
static ATH_DEBUG_MASK_DESCRIPTION g_fwlog_debug_description[] = {
|
||||||
{FWLOG_DEBUG, "fwlog"},
|
{FWLOG_DEBUG, "fwlog"},
|
||||||
@@ -4141,6 +4142,12 @@ static void cnss_diag_handle_crash_inject(struct dbglog_slot *slot)
|
|||||||
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
|
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
|
||||||
("%s : DIAG_TYPE_CRASH_INJECT: %d %d\n", __func__,
|
("%s : DIAG_TYPE_CRASH_INJECT: %d %d\n", __func__,
|
||||||
slot->payload[0], slot->payload[1]));
|
slot->payload[0], slot->payload[1]));
|
||||||
|
if (!tgt_assert_enable) {
|
||||||
|
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
|
||||||
|
("%s: tgt Assert Disabled\n",
|
||||||
|
__func__));
|
||||||
|
return;
|
||||||
|
}
|
||||||
wma_cli_set2_command(0, (int)GEN_PARAM_CRASH_INJECT,
|
wma_cli_set2_command(0, (int)GEN_PARAM_CRASH_INJECT,
|
||||||
slot->payload[0],
|
slot->payload[0],
|
||||||
slot->payload[1], GEN_CMD);
|
slot->payload[1], GEN_CMD);
|
||||||
@@ -4442,6 +4449,7 @@ int dbglog_init(wmi_unified_t wmi_handle)
|
|||||||
dbglog_reg_modprint(WLAN_MODULE_PCIELP, dbglog_pcielp_print_handler);
|
dbglog_reg_modprint(WLAN_MODULE_PCIELP, dbglog_pcielp_print_handler);
|
||||||
dbglog_reg_modprint(WLAN_MODULE_IBSS_PWRSAVE,
|
dbglog_reg_modprint(WLAN_MODULE_IBSS_PWRSAVE,
|
||||||
dbglog_ibss_powersave_print_handler);
|
dbglog_ibss_powersave_print_handler);
|
||||||
|
tgt_assert_enable = wmi_handle->tgt_force_assert_enable;
|
||||||
|
|
||||||
/* Register handler for F3 or debug messages */
|
/* Register handler for F3 or debug messages */
|
||||||
res =
|
res =
|
||||||
@@ -4491,7 +4499,7 @@ int dbglog_deinit(wmi_unified_t wmi_handle)
|
|||||||
/* Deinitialize the debugfs */
|
/* Deinitialize the debugfs */
|
||||||
dbglog_debugfs_remove(wmi_handle);
|
dbglog_debugfs_remove(wmi_handle);
|
||||||
#endif /* WLAN_OPEN_SOURCE */
|
#endif /* WLAN_OPEN_SOURCE */
|
||||||
|
tgt_assert_enable = 0;
|
||||||
res =
|
res =
|
||||||
wmi_unified_unregister_event_handler(wmi_handle,
|
wmi_unified_unregister_event_handler(wmi_handle,
|
||||||
WMI_DEBUG_MESG_EVENTID);
|
WMI_DEBUG_MESG_EVENTID);
|
||||||
|
Reference in New Issue
Block a user