Skip to content

Commit bf6d377

Browse files
committed
mxc: gpu_viv: On broadcast events try harder to get mutex.
Just trying once to get a mutex on global power events and then erroring doesn't make much sense. Especially when just looping a second time always seems to succeed. This may need to be bumped up a bit, but I will leave it here until then. I would like to use this as a tracker to help identify what the lowest possible value should be. Signed-off-by: Jon Nettleton <jon@solid-run.com>
1 parent 9e03b94 commit bf6d377

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7153,7 +7153,7 @@ gckHARDWARE_SetPowerManagementState(
71537153
if (broadcast)
71547154
{
71557155
/* Try to acquire the power mutex. */
7156-
status = gckOS_AcquireMutex(os, Hardware->powerMutex, 0);
7156+
status = gckOS_AcquireMutex(os, Hardware->powerMutex, 1);
71577157

71587158
if (status == gcvSTATUS_TIMEOUT)
71597159
{

drivers/mxc/gpu-viv/hal/kernel/archvg/gc_hal_kernel_hardware_vg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,7 @@ gckVGHARDWARE_SetPowerManagementState(
18581858
if (broadcast)
18591859
{
18601860
/* Try to acquire the power mutex. */
1861-
status = gckOS_AcquireMutex(os, Hardware->powerMutex, 0);
1861+
status = gckOS_AcquireMutex(os, Hardware->powerMutex, 1);
18621862

18631863
if (status == gcvSTATUS_TIMEOUT)
18641864
{

0 commit comments

Comments
 (0)