qcacmn: update the hang data for wmi
whenever there is a wmi timeout and recovery is triggered, the wmi history gives insight into reason for the recovery, hence save the last 5 commands/events to understand the reason for the hang recovery. Change-Id: Ie4e0431a8fa6971e6b25b20a6f267341d3f3f4fd CRs-Fixed: 2650340
This commit is contained in:

committed by
nshrivas

parent
6c39710274
commit
2982c3a17a
@@ -38,6 +38,7 @@
|
||||
#include <target_if.h>
|
||||
#include <qdf_debugfs.h>
|
||||
#include "wmi_filtered_logging.h"
|
||||
#include <wmi_hang_event.h>
|
||||
|
||||
/* This check for CONFIG_WIN temporary added due to redeclaration compilation
|
||||
error in MCL. Error is caused due to inclusion of wmi.h in wmi_unified_api.h
|
||||
@@ -2814,6 +2815,8 @@ void *wmi_unified_attach(void *scn_handle,
|
||||
|
||||
wmi_wbuff_register(wmi_handle);
|
||||
|
||||
wmi_hang_event_notifier_register(wmi_handle);
|
||||
|
||||
return wmi_handle;
|
||||
|
||||
error:
|
||||
@@ -2836,6 +2839,8 @@ void wmi_unified_detach(struct wmi_unified *wmi_handle)
|
||||
struct wmi_soc *soc;
|
||||
uint8_t i;
|
||||
|
||||
wmi_hang_event_notifier_unregister();
|
||||
|
||||
wmi_wbuff_deregister(wmi_handle);
|
||||
|
||||
wmi_ext_dbgfs_deinit(wmi_handle);
|
||||
|
Reference in New Issue
Block a user