MGS-1923 [#imx-19] use device mutex to sync command operations
authorXianzhong <xianzhong.li@nxp.com>
Mon, 28 Nov 2016 02:33:26 +0000 (10:33 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:57:56 +0000 (14:57 -0500)
commita87964b0e537ecbc74bc36c160a3dd187ec82936
treedf8cd9efd1dadfb6ff44866dc90f612b8ad3db57
parent644cdd8cb8aea863703861608f49a3b25de087f2
MGS-1923 [#imx-19] use device mutex to sync command operations

kernel mutex cannot be shared with gpu0,gpu1 and bridge mode together.
use device mutex to prevent the sync problem for gpu command operations.

this change is reasonable and fixed one hole in existing implementation.
but this patch cannot fix the GPU hang for MGS-2429.

Date: Nov 28, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.h