]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/etnaviv: mark whole context as lost in recover worker
authorLucas Stach <l.stach@pengutronix.de>
Thu, 15 Sep 2016 10:57:32 +0000 (12:57 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 15 Sep 2016 13:29:46 +0000 (15:29 +0200)
If we reset the GPU to get it back into a usable state we lose
all context, not just the MMU one. Mark the whole context as
lost to trigger a restore of the exec and MMU state.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c

index 40ceb22d0442431fd9a518fb1935d94652f47d49..b1254f885fed4b6a40c5b08f9352621259b05f4c 100644 (file)
@@ -891,7 +891,7 @@ static void recover_worker(struct work_struct *work)
        gpu->completed_fence = gpu->active_fence;
 
        etnaviv_gpu_hw_init(gpu);
-       gpu->switch_context = true;
+       gpu->lastctx = NULL;
        gpu->exec_state = -1;
 
        mutex_unlock(&gpu->lock);