MGS-5283 [#imx-1784] fix GPU AXI bus error
authorXianzhong <xianzhong.li@nxp.com>
Mon, 28 Oct 2019 14:12:10 +0000 (22:12 +0800)
committerXianzhong <xianzhong.li@nxp.com>
Tue, 29 Oct 2019 15:31:47 +0000 (23:31 +0800)
Fix GPU safe memory with gcvALLOC_FLAG_4GB_ADDR

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit 34b0f803e1ae45db7456fb732612fcdd87ef747a)

drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_mmu.c

index 1b87767..96aa8ed 100644 (file)
@@ -1874,7 +1874,7 @@ _Construct(
         Kernel,
         256,
         gcvVIDMEM_TYPE_COMMAND,
-        gcvALLOC_FLAG_CONTIGUOUS | gcvALLOC_FLAG_4K_PAGES,
+        gcvALLOC_FLAG_CONTIGUOUS | gcvALLOC_FLAG_4K_PAGES | gcvALLOC_FLAG_4GB_ADDR,
         &mmu->safePageSize,
         &pool,
         &mmu->safePageVideoMem