qcacld-3.0: Initialize maximum IPA clock when IPA clock scaling is disabled

When IPA clock scaling is not enabled, initialize IPA clock as maximum.

Change-Id: I856279a5b14222e3a7e6d82f78570080cbe0b839
CRs-Fixed: 2022249
This commit is contained in:
Yun Park 2017-03-20 10:39:47 -07:00 • committed by snandini
commit 66f24c4c50

View file

@ -5402,6 +5402,7 @@ static QDF_STATUS __hdd_ipa_init(struct hdd_context *hdd_ctx)
int ret, i;
struct hdd_ipa_iface_context *iface_context = NULL;
struct ol_txrx_pdev_t *pdev = NULL;
struct ipa_rm_perf_profile profile;
if (!hdd_ipa_is_enabled(hdd_ctx))
return QDF_STATUS_SUCCESS;
@ -5487,6 +5488,27 @@ static QDF_STATUS __hdd_ipa_init(struct hdd_context *hdd_ctx)
goto fail_create_sys_pipe;
}
/* When IPA clock scaling is disabled, initialze maximum clock */
if (!hdd_ipa_is_clk_scaling_enabled(hdd_ctx)) {
profile.max_supported_bandwidth_mbps = 800;
hdd_debug("IPA clock scaling is disabled.");
hdd_debug("Set initial CONS/PROD perf: %d",
profile.max_supported_bandwidth_mbps);
ret = ipa_rm_set_perf_profile(IPA_RM_RESOURCE_WLAN_CONS,
&profile);
if (ret) {
hdd_err("RM CONS set perf profile failed: %d", ret);
goto fail_create_sys_pipe;
}
ret = ipa_rm_set_perf_profile(IPA_RM_RESOURCE_WLAN_PROD,
&profile);
if (ret) {
hdd_err("RM PROD set perf profile failed: %d", ret);
goto fail_create_sys_pipe;
}
}
EXIT();
return QDF_STATUS_SUCCESS;