author | Hui Zhang <hui.zhang@amlogic.com> | 2020-05-25 16:51:48 (GMT) |
---|---|---|
committer | Hui Zhang <hui.zhang@amlogic.com> | 2020-05-25 17:14:03 (GMT) |
commit | a3339bfb9d2487506e72bb7810f82952a38a6303 (patch) | |
tree | 669e33e96f1c6e2e21ee73943cb93aa5d792d546 | |
parent | 7b8ccb1dbaea816f46704bdb0221da54b0504edf (diff) | |
download | media_modules-a3339bfb9d2487506e72bb7810f82952a38a6303.zip media_modules-a3339bfb9d2487506e72bb7810f82952a38a6303.tar.gz media_modules-a3339bfb9d2487506e72bb7810f82952a38a6303.tar.bz2 |
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 <hui.zhang@amlogic.com>
Change-Id: I12e276be5d3fee1fd9043215507981a3412e6d42
-rw-r--r-- | drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |