From: Peng yixin Date: Thu, 3 Sep 2020 02:19:54 +0000 (+0800) Subject: media_module: fixed avs bus lock issue [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d5f9939f6643bd1289932441a0f5929014246fbb;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git media_module: fixed avs bus lock issue [1/1] PD#SWPL-32609 Problem: Sometimes the avs decoder driver remove, the hardware did not stop completely, causing bus lock issue. Solution: Resolve this problem by reset the decoder hardware to stop it when avs driver remove. Verify: AB311 Change-Id: I79a83068e6cd83134e2430aee4c0a8f32a440436 Signed-off-by: Peng yixin --- diff --git a/drivers/frame_provider/decoder/avs/avs.c b/drivers/frame_provider/decoder/avs/avs.c index 3dfc799..ab9fa70 100644 --- a/drivers/frame_provider/decoder/avs/avs.c +++ b/drivers/frame_provider/decoder/avs/avs.c @@ -1813,6 +1813,8 @@ static int amvdec_avs_remove(struct platform_device *pdev) amvdec_disable(); + if (get_cpu_major_id() >= AM_MESON_CPU_MAJOR_ID_TM2) + vdec_reset_core(NULL); pic_type = 0; if (mm_blk_handle) { decoder_bmmu_box_free(mm_blk_handle);