qcacmn: Add the api to set smmu fault state

There is a time involved between the smmu fault initiated
and the eventual system panic. In this time there is a
possibility of the nbuf history being overwritten losing
the information on the nbuf which might has actually caused
the SMMU fault.

Set the ssmu state and dont track the nbuf's when the smmu
fault is detected.

Change-Id: I579da332766618161567764656005ef13667270e
CRs-Fixed: 2960070
This commit is contained in:
Arun Kumar Khandavalli
2021-06-02 14:35:42 +05:30
committed by Madan Koyyalamudi
vanhempi aab3676557
commit 4d8b3bb683
2 muutettua tiedostoa jossa 34 lisäystä ja 0 poistoa

Näytä tiedosto

@@ -4098,6 +4098,20 @@ static inline qdf_ktime_t qdf_nbuf_net_timedelta(qdf_ktime_t t)
}
#endif /* ENHANCED_OS_ABSTRACTION */
#ifdef NBUF_MEMORY_DEBUG
/**
* qdf_set_smmu_fault_state() - Set smmu fault sate
* @smmu_fault_state: state of the wlan smmy
*
* Return: void
*/
void qdf_set_smmu_fault_state(bool smmu_fault_state);
#else
static inline void qdf_set_smmu_fault_state(bool smmu_fault_state)
{
}
#endif
#ifdef CONFIG_NBUF_AP_PLATFORM
#include <i_qdf_nbuf_api_w.h>
#else