]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Mark device as wedged if we fail to resume
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 Apr 2014 08:19:43 +0000 (09:19 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Apr 2014 19:22:10 +0000 (21:22 +0200)
commit39f4e90d89a789f7fd5006776d7b328730f1a173
treeeb12cf7c5b88cdece3494db134295ff027c017c1
parent9c63e694080ad3116fc780758e1b158060dc28af
drm/i915: Mark device as wedged if we fail to resume

During module load, if we fail to initialise the rings, we abort the
load reporting EIO. However during resume, even though we report EIO as
we fail to reinitialize the ringbuffers, the resume continues and the
device is restored - albeit in a non-functional state. As we cannot
execute any commands on the GPU, it is effectively wedged, mark it so.

As we now preserve the ringbuffers across resume, this should prevent
UXA from falling into the trap of repeatedly sending invalid
batchbuffers and dropping all further rendering into /dev/null.

Reported-and-tested-by: Jiri Kosina <jkosina@suse.cz>
References: https://bugs.freedesktop.org/show_bug.cgi?id=76554
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Oscar Mateo <oscar.mateo@intel.com>
[danvet: Drop unused error, spotted by Oscar.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c