Merge "msm: ipa3: enable HOLB & drop stats for WAN, WAN COAL in >= IPA_HW_5_5"
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_client.c b/drivers/platform/msm/ipa/ipa_v3/ipa_client.c
index 37c466b..013aa9c 100644
--- a/drivers/platform/msm/ipa/ipa_v3/ipa_client.c
+++ b/drivers/platform/msm/ipa/ipa_v3/ipa_client.c
@@ -89,6 +89,11 @@
(ep->client == IPA_CLIENT_USB_CONS)) {
holb_cfg.tmr_val = IPA_HOLB_TMR_VAL_4_5;
holb_cfg.en = IPA_HOLB_TMR_EN;
+ } else if ((ipa3_ctx->ipa_hw_type >= IPA_HW_v5_5) &&
+ (ep->client == IPA_CLIENT_APPS_WAN_CONS ||
+ ep->client == IPA_CLIENT_APPS_WAN_COAL_CONS)) {
+ holb_cfg.tmr_val = IPA_HOLB_TMR_VAL_4_5;
+ holb_cfg.en = IPA_HOLB_TMR_EN;
} else {
holb_cfg.en = IPA_HOLB_TMR_DIS;
holb_cfg.tmr_val = 0;
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c b/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c
index b255adb..2d8328c 100644
--- a/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c
+++ b/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c
@@ -1876,6 +1876,19 @@
®_idx);
pipe_bitmask[reg_idx] |= mask;
}
+
+ /* Add drop stats for WAN & WAN_COAL if IPA_HW >=5.5 */
+ if (ipa3_ctx->ipa_hw_type >= IPA_HW_v5_5) {
+ mask = ipa_hw_stats_get_ep_bit_n_idx(
+ IPA_CLIENT_APPS_WAN_CONS,
+ ®_idx);
+ pipe_bitmask[reg_idx] |= mask;
+
+ mask = ipa_hw_stats_get_ep_bit_n_idx(
+ IPA_CLIENT_APPS_WAN_COAL_CONS,
+ ®_idx);
+ pipe_bitmask[reg_idx] |= mask;
+ }
}
/* Currently we have option to enable drop stats using debugfs.