projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0622548
)
drm/etnaviv: mark whole context as lost in recover worker
author
Lucas Stach
<l.stach@pengutronix.de>
Thu, 15 Sep 2016 10:57:32 +0000
(12:57 +0200)
committer
Lucas 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index
40ceb22
..
b1254f8
100644
(file)
--- 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)
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);