qcacmn: Add INI to disable AST indication

Add INI to disable AST indication. AST disable flag will be
sent to the target in resource config.

Change-Id: If30cac010681faf06bbcaa2d492d6843e3e675d0
CRs-Fixed: 3544223
This commit is contained in:
Ripan Deuri
2023-06-26 13:02:41 +05:30
committed by Rahul Choudhary
parent ddd144bfd6
commit 8c9b52f61d
5 changed files with 43 additions and 0 deletions

View File

@@ -1470,6 +1470,7 @@ enum cdp_pdev_param_type {
* @fisa_params.rx_flow_max_search: max FST entries * @fisa_params.rx_flow_max_search: max FST entries
* @fisa_params.rx_toeplitz_hash_key: RX hash key * @fisa_params.rx_toeplitz_hash_key: RX hash key
* @rx_pkt_tlv_size: RX packet TLV size * @rx_pkt_tlv_size: RX packet TLV size
* @cdp_ast_indication_disable: AST indication disable
*/ */
typedef union cdp_config_param_t { typedef union cdp_config_param_t {
/* peer params */ /* peer params */
@@ -1581,6 +1582,7 @@ typedef union cdp_config_param_t {
uint8_t *rx_toeplitz_hash_key; uint8_t *rx_toeplitz_hash_key;
} fisa_params; } fisa_params;
uint16_t rx_pkt_tlv_size; uint16_t rx_pkt_tlv_size;
bool cdp_ast_indication_disable;
} cdp_config_param_type; } cdp_config_param_type;
/** /**
@@ -1750,6 +1752,7 @@ enum cdp_vdev_param_type {
* @CDP_CFG_RX_REFILL_POOL_NUM: RX refill pool size config param * @CDP_CFG_RX_REFILL_POOL_NUM: RX refill pool size config param
* @CDP_CFG_FISA_PARAMS: FISA params * @CDP_CFG_FISA_PARAMS: FISA params
* @CDP_RX_PKT_TLV_SIZE: RX pkt tlv size * @CDP_RX_PKT_TLV_SIZE: RX pkt tlv size
* @CDP_CFG_AST_INDICATION_DISABLE: AST indication disable
*/ */
enum cdp_psoc_param_type { enum cdp_psoc_param_type {
CDP_ENABLE_RATE_STATS, CDP_ENABLE_RATE_STATS,
@@ -1776,6 +1779,7 @@ enum cdp_psoc_param_type {
#endif #endif
CDP_CFG_FISA_PARAMS, CDP_CFG_FISA_PARAMS,
CDP_RX_PKT_TLV_SIZE, CDP_RX_PKT_TLV_SIZE,
CDP_CFG_AST_INDICATION_DISABLE,
}; };
#ifdef CONFIG_AP_PLATFORM #ifdef CONFIG_AP_PLATFORM

View File

@@ -8072,6 +8072,10 @@ dp_set_psoc_param(struct cdp_soc_t *cdp_soc,
val.cdp_rx_refill_buf_pool_size); val.cdp_rx_refill_buf_pool_size);
break; break;
#endif #endif
case CDP_CFG_AST_INDICATION_DISABLE:
wlan_cfg_set_ast_indication_disable
(wlan_cfg_ctx, val.cdp_ast_indication_disable);
break;
default: default:
break; break;
} }

View File

@@ -5864,3 +5864,14 @@ uint32_t wlan_cfg_get_special_frame_cfg(struct wlan_cfg_dp_soc_ctxt *cfg)
{ {
return cfg->special_frame_msk; return cfg->special_frame_msk;
} }
void wlan_cfg_set_ast_indication_disable(struct wlan_cfg_dp_soc_ctxt *cfg,
bool val)
{
cfg->fw_ast_indication_disable = val;
}
bool wlan_cfg_get_ast_indication_disable(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->fw_ast_indication_disable;
}

View File

@@ -348,6 +348,7 @@ struct wlan_srng_cfg {
* @umac_reset_buffer_window: Buffer time to check if umac reset was in progress * @umac_reset_buffer_window: Buffer time to check if umac reset was in progress
* during this window, configured time is in * during this window, configured time is in
* milliseconds. * milliseconds.
* @fw_ast_indication_disable: Disable AST
*/ */
struct wlan_cfg_dp_soc_ctxt { struct wlan_cfg_dp_soc_ctxt {
int num_int_ctxts; int num_int_ctxts;
@@ -558,6 +559,7 @@ struct wlan_cfg_dp_soc_ctxt {
#ifdef DP_UMAC_HW_RESET_SUPPORT #ifdef DP_UMAC_HW_RESET_SUPPORT
uint32_t umac_reset_buffer_window; uint32_t umac_reset_buffer_window;
#endif #endif
bool fw_ast_indication_disable;
}; };
/** /**
@@ -2671,4 +2673,24 @@ wlan_cfg_get_umac_reset_buffer_window_ms(struct wlan_cfg_dp_soc_ctxt *cfg)
return 0; return 0;
} }
#endif /* DP_UMAC_HW_RESET_SUPPORT */ #endif /* DP_UMAC_HW_RESET_SUPPORT */
/**
* wlan_cfg_set_ast_indication_disable - Set AST disable
*
* @cfg: soc configuration context
* @val: value to be set
*
* Return: void
*/
void wlan_cfg_set_ast_indication_disable(struct wlan_cfg_dp_soc_ctxt *cfg,
bool val);
/**
* wlan_cfg_get_ast_indication_disable - Get AST disable
*
* @cfg: soc configuration context
*
* Return: true or false
*/
bool wlan_cfg_get_ast_indication_disable(struct wlan_cfg_dp_soc_ctxt *cfg);
#endif /*__WLAN_CFG_H*/ #endif /*__WLAN_CFG_H*/

View File

@@ -6765,6 +6765,7 @@ struct target_feature_set {
* @dp_peer_meta_data_ver: datapath peer meta data version flag * @dp_peer_meta_data_ver: datapath peer meta data version flag
* @tx_ilp_enable: capability to support TX ILP from host * @tx_ilp_enable: capability to support TX ILP from host
* @rf_path: Indicates RF path 0 primary, 1 secondary * @rf_path: Indicates RF path 0 primary, 1 secondary
* @fw_ast_indication_disable: Disable AST indication
*/ */
typedef struct { typedef struct {
uint32_t num_vdevs; uint32_t num_vdevs;
@@ -6898,6 +6899,7 @@ typedef struct {
uint8_t tx_ilp_enable; uint8_t tx_ilp_enable;
#endif #endif
bool rf_path; bool rf_path;
bool fw_ast_indication_disable;
} target_resource_config; } target_resource_config;
/** /**