qcacmn: Record data if pci write during suspended state

When FW was enabling WOW, a ring HP update interrupt is seen
which led to fw crash.
This change records any PCI writes that went through during
runtime suspend from host.

Change-Id: I3c44760ebaf49a131b483813522fe3e451957215
CRs-Fixed: 3280166
This commit is contained in:
Ananya Gupta
2022-09-06 11:42:11 +05:30
committed by Madan Koyyalamudi
parent c0e0b4f1e1
commit 61b836202a
2 changed files with 51 additions and 0 deletions

View File

@@ -1285,6 +1285,23 @@ union hal_shadow_reg_cfg {
#endif
};
#ifdef HAL_RECORD_SUSPEND_WRITE
#define HAL_SUSPEND_WRITE_HISTORY_MAX 256
struct hal_suspend_write_record {
uint64_t ts;
uint8_t ring_id;
uit32_t value;
uint32_t direct_wcount;
};
struct hal_suspend_write_history {
qdf_atomic_t index;
struct hal_suspend_write_record record[HAL_SUSPEND_WRITE_HISTORY_MAX];
};
#endif
/**
* struct hal_soc - HAL context to be used to access SRNG APIs
* (currently used by data path and