diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2016-09-15 06:57:32 -0400 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2016-09-15 09:29:46 -0400 |
commit | 1b94a9b7d2dc26ddfd66b0d9c4533040a78cc394 (patch) | |
tree | ffc9b52e9b4d01675bb625d7cee082d16123fe69 /drivers/gpu | |
parent | 06225487ae9e482079f1a7ab4da6dcf03dbe8c2c (diff) |
drm/etnaviv: mark whole context as lost in recover worker
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 40ceb22d0442..b1254f885fed 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c | |||
@@ -891,7 +891,7 @@ static void recover_worker(struct work_struct *work) | |||
891 | gpu->completed_fence = gpu->active_fence; | 891 | gpu->completed_fence = gpu->active_fence; |
892 | 892 | ||
893 | etnaviv_gpu_hw_init(gpu); | 893 | etnaviv_gpu_hw_init(gpu); |
894 | gpu->switch_context = true; | 894 | gpu->lastctx = NULL; |
895 | gpu->exec_state = -1; | 895 | gpu->exec_state = -1; |
896 | 896 | ||
897 | mutex_unlock(&gpu->lock); | 897 | mutex_unlock(&gpu->lock); |