Procházet zdrojové kódy

drm/nouveau: check for dead channel before trying to idle

This prevents *very* long waits while attempting to destroy channels
after a fault has occurred.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Ben Skeggs před 9 roky
rodič
revize
84cd0a5565
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      drivers/gpu/drm/nouveau/nouveau_chan.c

+ 1 - 1
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;