MA-10665-3 [#imx-615] Fix monkey test reboot issue due to drm gem bug
authorRichard Liu <xuegang.liu@nxp.com>
Mon, 27 Nov 2017 10:30:47 +0000 (18:30 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:41 +0000 (14:51 -0500)
commit5b2793885d2890e47d4059c293d95b242d5436dc
treeabdc74d0b6261f265e77f564370575268b92ddd4
parentb258047040e3f2c5fcecad0304f9d61263e649ac
MA-10665-3 [#imx-615] Fix monkey test reboot issue due to drm gem bug

Fix monkey test reboot issue due to drm gem bug.
1. deref gem_obj in the end of funtion
2. replace async unlock with bottom half unlock.

Monkey commands:
while true;do monkey --pct-syskeys 0 -v 100000;done

Reboot log:
[ 884.062236] WARNING: CPU: 3 PID: 3987 at drivers/gpu/drm/drm_gem.c:776 drm_gem_object_release+0x40/0x48
[ 884.076072] Modules linked in: bcmdhd
[ 884.079760]
[ 884.081260] CPU: 3 PID: 3987 Comm: ReferenceQueueD Not tainted 4.9.56-00115-ge9a7131 #1
[ 884.089268] Hardware name: Freescale i.MX8QXP MEK (DT)
[ 884.094410] task: ffff80004cf6de80 task.stack: ffff800839838000
[ 884.100338] PC is at drm_gem_object_release+0x40/0x48
[ 884.105405] LR is at viv_gem_free_object+0x64/0x90

Date: Nov 27, 2017
Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c