Skip to content

Commit 60700de

Browse files
committed
gpu: galcore: Clear errors before checking for events
Make sure we clear away any error status interrupts before checking if there are actual events to process. Before we would miss this optimization if we had an error status but no event interrupts. Signed-off-by: Jon Nettleton <[email protected]>
1 parent 3db737a commit 60700de

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.c

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,16 +2334,6 @@ gckEVENT_Notify(
23342334

23352335
gckOS_AtomGet(Event->os, Event->pending, (gctINT32_PTR)&pending);
23362336

2337-
if (pending == 0)
2338-
{
2339-
/* Release the mutex queue. */
2340-
gcmkONERROR(gckOS_ReleaseMutex(Event->os, Event->eventQueueMutex));
2341-
acquired = gcvFALSE;
2342-
2343-
/* No more pending interrupts - done. */
2344-
break;
2345-
}
2346-
23472337
if (pending & 0x80000000)
23482338
{
23492339
gcmkPRINT("AXI BUS ERROR");
@@ -2370,6 +2360,12 @@ gckEVENT_Notify(
23702360
pending &= 0xBFFFFFFF;
23712361
}
23722362

2363+
if (pending == 0)
2364+
{
2365+
/* No more pending interrupts - done. */
2366+
break;
2367+
}
2368+
23732369
gcmkTRACE_ZONE_N(
23742370
gcvLEVEL_INFO, gcvZONE_EVENT,
23752371
gcmSIZEOF(pending),

0 commit comments

Comments
 (0)