vmh264: fix DCAC dma memory pollution issue [1/1]
authorHui Zhang <hui.zhang@amlogic.com>
Fri, 28 Aug 2020 07:59:11 +0000 (15:59 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Wed, 16 Sep 2020 03:05:39 +0000 (11:05 +0800)
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 <hui.zhang@amlogic.com>
drivers/frame_provider/decoder/h264_multi/vmh264.c
firmware/video_ucode.bin [changed mode: 0644->0755]

index ebe3915c3ab4ea1548332d3425a65956240bfc94..2edfd8781f51416e0636e2eb473d3f20f1b63c4b 100644 (file)
@@ -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)
old mode 100644 (file)
new mode 100755 (executable)
index 6e1289c..b5c53a6
Binary files a/firmware/video_ucode.bin and b/firmware/video_ucode.bin differ