From db2e9401234588b670a1c12d30e7726ad9f2c92b Mon Sep 17 00:00:00 2001 From: Jia Ding Date: Mon, 9 Dec 2019 15:48:02 +0800 Subject: [PATCH] qcacld-3.0: Initialize IPA metering feature and perf level In IPA uC ready handler, metering feature and perf level are not initialized. Therefore properly initialize them after IPA pipes are connected. Change-Id: I99621bb2c2831d66e11b0ca903ecb324ef898836 CRs-Fixed: 2582409 --- components/ipa/core/src/wlan_ipa_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/ipa/core/src/wlan_ipa_core.c b/components/ipa/core/src/wlan_ipa_core.c index 7ee94811b2b0..4300e403dae1 100644 --- a/components/ipa/core/src/wlan_ipa_core.c +++ b/components/ipa/core/src/wlan_ipa_core.c @@ -3239,6 +3239,10 @@ static void wlan_ipa_uc_loaded_handler(struct wlan_ipa_priv *ipa_ctx) } cdp_ipa_set_doorbell_paddr(ipa_ctx->dp_soc, ipa_ctx->dp_pdev_id); + wlan_ipa_init_metering(ipa_ctx); + + if (QDF_IS_STATUS_ERROR(wlan_ipa_init_perf_level(ipa_ctx))) + ipa_err("Failed to init perf level"); /* * Enable IPA/FW PIPEs if