msm: ipa: Update wdi moderation threshold for WDI opt datapath scenario

Changes to update WDI moderation threshold for cases where WDI opt
datapath is enabled.

Change-Id: I917da8772febbd9e60dfcd66d5953401ce5fe78a
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
This commit is contained in:
Arjun Haris
2023-03-21 12:35:35 +05:30
committed by Gerrit - the friendly Code Review server
parent 9093aae4e5
commit 90d0c7c462

View File

@@ -10,6 +10,8 @@
#define UPDATE_RP_MODERATION_CONFIG 1 #define UPDATE_RP_MODERATION_CONFIG 1
#define UPDATE_RP_MODERATION_THRESHOLD 8 #define UPDATE_RP_MODERATION_THRESHOLD 8
#define UPDATE_RP_MODERATION_THRESHOLD_OPT_DP 1
#define IPA_WLAN_AGGR_PKT_LIMIT 1 #define IPA_WLAN_AGGR_PKT_LIMIT 1
#define IPA_WLAN_AGGR_BYTE_LIMIT 2 /*2 Kbytes Agger hard byte limit*/ #define IPA_WLAN_AGGR_BYTE_LIMIT 2 /*2 Kbytes Agger hard byte limit*/
@@ -405,6 +407,8 @@ static int ipa3_setup_wdi3_gsi_channel(u8 is_smmu_enabled,
/* write channel scratch */ /* write channel scratch */
memset(&ch_scratch, 0, sizeof(ch_scratch)); memset(&ch_scratch, 0, sizeof(ch_scratch));
ch_scratch.wdi3.update_rp_moderation_threshold = ch_scratch.wdi3.update_rp_moderation_threshold =
(ipa3_ctx->ipa_wdi_opt_dpath) ?
UPDATE_RP_MODERATION_THRESHOLD_OPT_DP :
UPDATE_RP_MODERATION_THRESHOLD; UPDATE_RP_MODERATION_THRESHOLD;
if ((dir == IPA_WDI3_RX_DIR) || (dir == IPA_WDI3_RX2_DIR)) { if ((dir == IPA_WDI3_RX_DIR) || (dir == IPA_WDI3_RX2_DIR)) {
if (!is_smmu_enabled) if (!is_smmu_enabled)