qcacmn: Add buffer window for umac reset in progress

When the peer delete timer/vdev manager response timer expires, host checks
if the umac reset is in progress. If so, host will retrigger the timer.
It is possible that the umac reset is just completed and either of these
two timers got expired. In this case, host will assert saying that the peer
delete response/vdev manager response is not received from FW. FW may take
a few milliseconds to send the peer delete/vdev manager response to the
host after the umac recovery completes.

Hence, to avoid the crash, check if the umac reset was in progress during
the umac reset buffer window.

Add the below changes as well,
1) INI support to get the umac reset buffer window value.
2) Renamed the API dp_umac_reset_is_inprogress as
   dp_get_umac_reset_in_progress_state to return either
   CDP_UMAC_RESET_IN_PROGRESS or
   CDP_UMAC_RESET_IN_PROGRESS_DURING_BUFFER_WINDOW.

Change-Id: Ie15ef0731bad4b0ed955a479f00e297b7ba10729
CRs-Fixed: 3522665
This commit is contained in:
Shashikala Prabhu
2023-06-28 17:26:35 +05:30
committed by Rahul Choudhary
parent 0d36189af1
commit 7f898dfcc2
9 changed files with 165 additions and 23 deletions

View File

@@ -343,6 +343,9 @@ struct wlan_srng_cfg {
* @local_pkt_capture: flag indicating enable/disable of local packet capture
* @special_frame_msk: Special frame mask
* @rx_rr: rx round robin enable / disable
* @umac_reset_buffer_window: Buffer time to check if umac reset was in progress
* during this window, configured time is in
* milliseconds.
*/
struct wlan_cfg_dp_soc_ctxt {
int num_int_ctxts;
@@ -549,6 +552,9 @@ struct wlan_cfg_dp_soc_ctxt {
#ifdef WLAN_SUPPORT_RX_FLOW_TAG
bool rx_rr;
#endif
#ifdef DP_UMAC_HW_RESET_SUPPORT
uint32_t umac_reset_buffer_window;
#endif
};
/**
@@ -2633,4 +2639,21 @@ bool wlan_cfg_get_local_pkt_capture(struct wlan_cfg_dp_soc_ctxt *cfg)
*/
uint32_t
wlan_cfg_get_special_frame_cfg(struct wlan_cfg_dp_soc_ctxt *cfg);
#ifdef DP_UMAC_HW_RESET_SUPPORT
/**
* wlan_cfg_get_umac_reset_buffer_window_ms() - Get umac reset buffer window
* @cfg: soc configuration context
*
* Return: Umac reset buffer window in milliseconds
*/
uint32_t
wlan_cfg_get_umac_reset_buffer_window_ms(struct wlan_cfg_dp_soc_ctxt *cfg);
#else
static inline uint32_t
wlan_cfg_get_umac_reset_buffer_window_ms(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return 0;
}
#endif /* DP_UMAC_HW_RESET_SUPPORT */
#endif /*__WLAN_CFG_H*/