gfx: pvr: Fix SGX failing to complete queued rendering
authorPauli Nieminen <pauli.nieminen@linux.intel.com>
Wed, 4 Jan 2012 12:57:35 +0000 (14:57 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:29:24 +0000 (12:29 +0300)
SGXCommandComplete wakeups SGX to render when blocking external
operation completes. If blocking operation completes in IRQ handler
driver only sets flag to wakeup hardware but doesn't schedule the work
to handle wakeup operation.

Issue: ANDROID-529
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/pvr/services4/srvkm/devices/sgx/sgxinit.c

index f5c5919..54f3fec 100644 (file)
@@ -90,6 +90,7 @@ static IMG_VOID SGXCommandComplete(PVRSRV_DEVICE_NODE *psDeviceNode)
        {
                
                psDeviceNode->bReProcessDeviceCommandComplete = IMG_TRUE;
+               OSScheduleMISR(psDeviceNode->psSysData);
        }
        else
        {