projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8cc37d
)
drm/nouveau: check for dead channel before trying to idle
author
Ben Skeggs
<bskeggs@redhat.com>
Tue, 24 Jan 2017 06:56:52 +0000
(16:56 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Fri, 17 Feb 2017 07:38:09 +0000
(17:38 +1000)
This prevents *very* long waits while attempting to destroy channels
after a fault has occurred.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_chan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_chan.c
b/drivers/gpu/drm/nouveau/nouveau_chan.c
index 3b3d071b151e096824a3662f3cc7ad88f5b02564..dbc41fa86ee8bf8f36666dfbb27ebc4daf2884d6 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_chan.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_chan.c
@@
-58,7
+58,7
@@
nouveau_channel_killed(struct nvif_notify *ntfy)
int
nouveau_channel_idle(struct nouveau_channel *chan)
{
- if (likely(chan && chan->fence)) {
+ if (likely(chan && chan->fence
&& !atomic_read(&chan->killed)
)) {
struct nouveau_cli *cli = (void *)chan->user.client;
struct nouveau_fence *fence = NULL;
int ret;