]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00301095 gpu:gpu hang when dma memory is used up
authorLoren Huang <b02279@freescale.com>
Thu, 27 Feb 2014 07:44:49 +0000 (15:44 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:56 +0000 (10:06 +0200)
commit321327b5066bce1b8a7ea97971c3db86bec11d75
tree439ab210db173a5d0f15f926790fa1063a9568b7
parentf038347edb010863c8f03c6e0547c405ab623693
ENGR00301095 gpu:gpu hang when dma memory is used up

When dma zone memory used up, gckOS_AllocateNonPagedMemory() will try to
free non paged memory cache and allocate again. Such operation will cause
 twice memory mutex request and cause gpu driver hang.

The solution is free the memory mutex at first before trying to free non
paged memory cache.

Date: Feb 27, 2014
Signed-off-by: Loren Huang <b02279@freescale.com>
Acked-by: Shawn Guo
(cherry picked from commit 79ed8edd23f990f6c1429154c2ee773c83bfd72e)
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c