From: Hui Zhang Date: Fri, 28 Aug 2020 07:59:11 +0000 (+0800) Subject: vmh264: fix DCAC dma memory pollution issue [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a030be0418038c960cc0e3fb3a1ba3adf751f74;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git vmh264: fix DCAC dma memory pollution issue [1/1] PD#SWPL-32462 Problem: memory pullotion by DCAC dma Solution: add DCAC dma address range check to void oversize ucode gerrit id: 122592 ucode commit id: b99eca ucode change id: I038ee Verify: u212 Change-Id: I038ee5769324539ae55876b9572f6ed795f164f7 Signed-off-by: Hui Zhang --- diff --git a/drivers/frame_provider/decoder/h264_multi/vmh264.c b/drivers/frame_provider/decoder/h264_multi/vmh264.c index ebe3915..2edfd87 100644 --- a/drivers/frame_provider/decoder/h264_multi/vmh264.c +++ b/drivers/frame_provider/decoder/h264_multi/vmh264.c @@ -387,9 +387,9 @@ static inline bool close_to(int a, int b, int m) #define DEFAULT_MEM_SIZE (32*1024*1024) #define AVIL_DPB_BUFF_SIZE 0x01ec2000 -#define DEF_BUF_START_ADDR 0x01000000 -#define mem_sps_base 0x011c3c00 -#define mem_pps_base 0x011cbc00 +#define DEF_BUF_START_ADDR 0x00000000 +#define mem_sps_base 0x01c3c00 +#define mem_pps_base 0x01cbc00 /*#define V_BUF_ADDR_OFFSET (0x13e000)*/ u32 V_BUF_ADDR_OFFSET = 0x200000; #define DCAC_READ_MARGIN (64 * 1024) diff --git a/firmware/video_ucode.bin b/firmware/video_ucode.bin old mode 100644 new mode 100755 index 6e1289c..b5c53a6 Binary files a/firmware/video_ucode.bin and b/firmware/video_ucode.bin differ