Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eeda4c6b authored by George Shen's avatar George Shen
Browse files

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: default avatarGeorge Shen <sqiao@codeaurora.org>
parent b3396c08
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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");
+4 −0
Original line number Diff line number Diff line
@@ -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,
+3 −0
Original line number Diff line number Diff line
@@ -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");

+1 −0
Original line number Diff line number Diff line
@@ -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;