drm/nouveau: check for dead channel before trying to idle
authorBen Skeggs <bskeggs@redhat.com>
Tue, 24 Jan 2017 06:56:52 +0000 (16:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 17 Feb 2017 07:38:09 +0000 (17:38 +1000)
commit84cd0a55659ad7ab5792d5319b315e1e5bba312a
treebff18de3c006bd69dc8c9e832ccf9b72503f47b1
parentd8cc37d878d695fc2a88b4777cdfea8bca9fdcb5
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>
drivers/gpu/drm/nouveau/nouveau_chan.c