From a3339bfb9d2487506e72bb7810f82952a38a6303 Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Tue, 26 May 2020 00:51:48 +0800 Subject: [PATCH] mmpeg2: fix 0 address crash issue [1/1] PD#SWPL-25585 Problem: this issue is introduced by gerrit 110569 0 memory address been polluted by lmem hw. Solution: add the missed DMA address config in canvas init Verify: ac214 Signed-off-by: Hui Zhang Change-Id: I12e276be5d3fee1fd9043215507981a3412e6d42 --- drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c index d53788e..4e3ffcd 100644 --- a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c +++ b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c @@ -2438,7 +2438,8 @@ static void vmpeg12_canvas_init(struct vdec_mpeg12_hw_s *hw) pr_err("%s: failed to alloc cc buffer\n", __func__); return; } - + hw->buf_start = decbuf_start; + WRITE_VREG(MREG_CO_MV_START, hw->buf_start); WRITE_VREG(MREG_CC_ADDR, hw->ccbuf_phyAddress); } else { if (vdec->parallel_dec == 1) { -- 2.20.1