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:

committed by
Rahul Choudhary

parent
0d36189af1
commit
7f898dfcc2
@@ -1936,6 +1936,23 @@
|
||||
WLAN_CFG_SPECIAL_MSK, \
|
||||
CFG_VALUE_OR_DEFAULT, "special frame to deliver to stack")
|
||||
|
||||
#ifdef DP_UMAC_HW_RESET_SUPPORT
|
||||
#define CFG_DP_UMAC_RESET_BUFFER_WINDOW_MIN 100
|
||||
#define CFG_DP_UMAC_RESET_BUFFER_WINDOW_MAX 10000
|
||||
#define CFG_DP_UMAC_RESET_BUFFER_WINDOW_DEFAULT 1000
|
||||
|
||||
#define CFG_DP_UMAC_RESET_BUFFER_WINDOW \
|
||||
CFG_INI_UINT("umac_reset_buffer_window", \
|
||||
CFG_DP_UMAC_RESET_BUFFER_WINDOW_MIN, \
|
||||
CFG_DP_UMAC_RESET_BUFFER_WINDOW_MAX, \
|
||||
CFG_DP_UMAC_RESET_BUFFER_WINDOW_DEFAULT, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Buffer time to check if umac reset was in progress during this window, configured time is in milliseconds")
|
||||
#define CFG_DP_UMAC_RESET_BUFFER_WINDOW_CFG CFG(CFG_DP_UMAC_RESET_BUFFER_WINDOW)
|
||||
#else
|
||||
#define CFG_DP_UMAC_RESET_BUFFER_WINDOW_CFG
|
||||
#endif /* DP_UMAC_HW_RESET_SUPPORT */
|
||||
|
||||
#define CFG_DP \
|
||||
CFG(CFG_DP_HTT_PACKET_TYPE) \
|
||||
CFG(CFG_DP_INT_BATCH_THRESHOLD_OTHER) \
|
||||
@@ -2066,5 +2083,6 @@
|
||||
CFG(CFG_DP_POINTER_NUM_THRESHOLD_RX) \
|
||||
CFG_DP_LOCAL_PKT_CAPTURE_CONFIG \
|
||||
CFG(CFG_SPECIAL_FRAME_MSK) \
|
||||
CFG(CFG_DP_SW2RXDMA_LINK_RING)
|
||||
CFG(CFG_DP_SW2RXDMA_LINK_RING) \
|
||||
CFG_DP_UMAC_RESET_BUFFER_WINDOW_CFG
|
||||
#endif /* _CFG_DP_H_ */
|
||||
|
Reference in New Issue
Block a user