MA-7531 [#2161] optimize event synchronization
authorMeng Mingming <mingming.meng@nxp.com>
Wed, 13 Apr 2016 03:36:08 +0000 (11:36 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:51:48 +0000 (14:51 -0500)
GPU 3D clock will still enable/disable when video playback,
actually there is no 3D usage, to saving power we should
avoid 3D clock enable/disable. This patch optimize event
synchronization by not pass signal/sync_point to gpu when
current gcoHARDWARE is already sync'ed GPU and no command
buffer required.

Date: Apr 13, 2016
Signed-off-by: Richard Liu <r66033@freescale.com>
Signed-off-by: Meng Mingming <mingming.meng@nxp.com>
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c

index 6258f1f..7bd3b64 100644 (file)
@@ -2688,6 +2688,12 @@ gckKERNEL_Dispatch(
                                               syncPoint));
                 break;
 
+            case gcvSYNC_POINT_SIGNAL:
+                syncPoint = gcmUINT64_TO_PTR(Interface->u.SyncPoint.syncPoint);
+
+                gcmkONERROR(gckOS_SignalSyncPoint(Kernel->os, syncPoint));
+                break;
+
             default:
                 gcmkONERROR(gcvSTATUS_INVALID_ARGUMENT);
                 break;