drm/nouveau/nouveau: forward error generated while resuming objects tree
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Thu, 28 Mar 2019 13:17:31 +0000 (14:17 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 1 May 2019 01:08:39 +0000 (11:08 +1000)
commit30df16b93b25fe345e4c5d4e9c789d3f4f337b72
tree98c928cef9151847a39bf7783d6338d4026d8a3a
parenta2f07d4c1e88d4250b5d1d3b54efcdb3d80f11da
drm/nouveau/nouveau: forward error generated while resuming objects tree

On a failed resume we may experience unrecoverable errors. Plumb the error code
through to actually let the driver fail. On a reverse-prime setup this helps the
drm subsystem to at least recover the integrated gpu.

This can especially happen with secboot timing out, leaving the hardware in a
non-functioning state.

Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c