mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]>
This commit is contained in:
parent
d8cc37d878
commit
84cd0a5565
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue