]> 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)
committerLoren Huang <b02279@freescale.com>
Thu, 27 Feb 2014 08:08:33 +0000 (16:08 +0800)
commit25ab542527c60caf6416c52abaa376757dbc0b09
tree6bcecf1c498c9d6d01b106d396378db241e707f6
parent180e5249943950ef2b917414ba677a52f3d68e19
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