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

Commit 1e378a4a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: handle hw error before core release"

parents d3e4f15c aa84a003
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -2195,12 +2195,14 @@ static void handle_sys_error(enum hal_command_response cmd, void *data)
		if (!core->trigger_ssr)
			msm_comm_print_inst_info(inst);
	}

	/* handle the hw error before core released to get full debug info */
	msm_vidc_handle_hw_error(core);
	if (response->status == VIDC_ERR_NOC_ERROR) {
		dprintk(VIDC_WARN, "Got NOC error");
		MSM_VIDC_ERROR(true);
	}

	dprintk(VIDC_DBG, "Calling core_release\n");
	rc = call_hfi_op(hdev, core_release, hdev->hfi_device_data);
	if (rc) {
@@ -2211,10 +2213,7 @@ static void handle_sys_error(enum hal_command_response cmd, void *data)
	core->state = VIDC_CORE_UNINIT;
	mutex_unlock(&core->lock);

	dprintk(VIDC_ERR,
		"SYS_ERROR can potentially crash the system\n");

	msm_vidc_handle_hw_error(core);
	dprintk(VIDC_WARN, "SYS_ERROR handled.\n");
}

void msm_comm_session_clean(struct msm_vidc_inst *inst)