Browse Source

qcacmn: Add Genoa IPA disable info to WMI_INIT_CMDID

For Genoa, the WLAN FW enables IPA by default, if the
IPA is disabled by kernel config, the IPA status is
not same between wlanhost driver and WLAN FW. So add
such info in the first WMI command to let WLAN FW knows
the IPA state from host, and do the according copy engine
initialization, otherwise, the mismatch IPA copy engine
configuration will casue the Genoa FW assert.

Change-Id: Iec2f86ffb40b296c51bee41adc0d895beb200e5c
Chaoli Zhou 5 năm trước cách đây
mục cha
commit
1f6c0cdad8
2 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 3 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -5165,6 +5165,7 @@ struct wmi_host_fw_abi_ver {
  * @three_way_coex_config_legacy_en: enable three way coex legacy feature
  * @max_num_group_keys: max number of group keys supported for VLAN
  * @re_ul_resp: enable 11ax UL response feature (UL-OFDMA) for repeater
+ * @ipa_disable: disable IPA feature
  */
 typedef struct {
 	uint32_t num_vdevs;
@@ -5251,6 +5252,7 @@ typedef struct {
 	bool three_way_coex_config_legacy_en;
 	uint32_t max_num_group_keys;
 	uint32_t re_ul_resp;
+	bool ipa_disable;
 } target_resource_config;
 
 /**

+ 3 - 0
wmi/src/wmi_unified_tlv.c

@@ -6799,6 +6799,9 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 		WMI_RSRC_CFG_FLAG_IPHR_PAD_CONFIG_ENABLE_SET(
 			resource_cfg->flag1, 1);
 
+	WMI_RSRC_CFG_FLAG_IPA_DISABLE_SET(resource_cfg->flag1,
+					  tgt_res_cfg->ipa_disable);
+
 	wmi_copy_twt_resource_config(resource_cfg, tgt_res_cfg);
 	resource_cfg->peer_map_unmap_v2_support =
 		tgt_res_cfg->peer_map_unmap_v2;