Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84cd0a55 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

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: default avatarBen Skeggs <bskeggs@redhat.com>
parent d8cc37d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;