msm: cvp: Avoid CVP loading at boot

CVP firmware has not been released to Lahaina. Loading CVP
firmware caused stability problem during kernel boot. Disable
CVP firmware loading till it's ready.

Change-Id: Iefef7a42c2a8f2cc1c20a259491b0d96248f1aa1
Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
George Shen 2019-11-27 11:35:18 -08:00
commit eeda4c6bcb
4 changed files with 13 additions and 0 deletions

View file

@ -267,6 +267,11 @@ void *msm_cvp_open(int core_id, int session_type)
goto err_invalid_core;
}
if (!core->resources.auto_pil && session_type == MSM_CVP_BOOT) {
dprintk(CVP_DBG, "Auto PIL disabled, bypass CVP init at boot");
goto err_invalid_core;
}
core->resources.max_inst_count = MAX_SUPPORTED_INSTANCES;
if (msm_cvp_check_for_inst_overload(core)) {
dprintk(CVP_ERR, "Instance num reached Max, rejecting session");

View file

@ -98,6 +98,10 @@ static struct msm_cvp_common_data sm8250_common_data[] = {
};
static struct msm_cvp_common_data sm8350_common_data[] = {
{
.key = "qcom,auto-pil",
.value = 0,
},
{
.key = "qcom,never-unload-fw",
.value = 1,

View file

@ -677,6 +677,9 @@ int cvp_read_platform_resources_from_drv_data(
dprintk(CVP_DBG, "Firmware filename: %s\n", res->fw_name);
res->auto_pil = find_key_value(platform_data,
"qcom,aut-pil");
res->max_load = find_key_value(platform_data,
"qcom,max-hw-load");

View file

@ -147,6 +147,7 @@ struct msm_cvp_platform_resources {
struct reset_set reset_set;
bool use_non_secure_pil;
bool sw_power_collapsible;
bool auto_pil;
struct list_head context_banks;
bool thermal_mitigable;
const char *fw_name;