Skip to content

Commit 80f6b63

Browse files
committed
drm/etnaviv: free events the usual way in recover worker
Clearing the whole bitmap at once is only a minor optimization in a path that should be extremely cold. Free the events by calling event_free() instead of directly manipulating the completion count and event bitmap. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
1 parent 5cefcf9 commit 80f6b63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/etnaviv/etnaviv_gpu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,8 +1450,7 @@ void etnaviv_gpu_recover_hang(struct etnaviv_gem_submit *submit)
14501450
/* complete all events, the GPU won't do it after the reset */
14511451
spin_lock(&gpu->event_spinlock);
14521452
for_each_set_bit(i, gpu->event_bitmap, ETNA_NR_EVENTS)
1453-
complete(&gpu->event_free);
1454-
bitmap_zero(gpu->event_bitmap, ETNA_NR_EVENTS);
1453+
event_free(gpu, i);
14551454
spin_unlock(&gpu->event_spinlock);
14561455

14571456
etnaviv_gpu_hw_init(gpu);

0 commit comments

Comments
 (0)