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

Commit aa84a003 authored by Maheshwar Ajja's avatar Maheshwar Ajja Committed by Shivendra Kakrania
Browse files

msm: vidc: handle hw error before core release



Call the function msm_vidc_handle_hw_error() before
video core release to get the full debug information
in case of diver or video hardware raised errors.

CRs-Fixed: 2132919
Change-Id: Iad5593d5ede34baca5b1f304fc2203a77345e879
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
Signed-off-by: default avatarShivendra Kakrania <shiven@codeaurora.org>
parent 33ba9737
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -2181,12 +2181,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) {
@@ -2197,10 +2199,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)