MGS-3627 [#imx-911] "Could not open egl display" when run monkey test case for long...
authorYuchou Gan <yuchou.gan@nxp.com>
Wed, 31 Jan 2018 10:05:04 +0000 (18:05 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:54:06 +0000 (14:54 -0500)
commit6507961c0ba510c6715750ae475396df0559630b
treedbee262d30a15570686edaed07eab71d8ab4d0ad
parent6708b7d2c8d15835be98c4d289bc6cc2b540bdaa
MGS-3627 [#imx-911] "Could not open egl display" when run monkey test case for long time.

The root cause is that each time an application runs, the gpu driver will map reserved memory 128M to
the application virtual memory space, which means it need the system have at least 128M physical memory available,
otherwise the shmem_zero_setup will fail. Add MAP_NORESERVE flag to fix this problem.

Date: Jan 30, 2017
Signed-off-by: Yuchou Gan yuchou.gan@nxp.com
drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dmabuf.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_gfp.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_reserved_mem.c