]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Allow the module to load even if we fail to setup rings
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 Apr 2014 08:19:42 +0000 (09:19 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Apr 2014 19:21:01 +0000 (21:21 +0200)
commit9c63e694080ad3116fc780758e1b158060dc28af
tree5d06895d5c1047f1200e697224153578b0bd4ad5
parent5582e8c3c49150c0e7398688b5ed167d6c3d44fd
drm/i915: Allow the module to load even if we fail to setup rings

Even without enabling the ringbuffers to allow command execution, we can
still control the display engines to enable modesetting. So make the
ringbuffer initialization failure soft, and mark the GPU as wedged
instead.

v2: Only treat an EIO from ring initialisation as a soft failure, and
abort module load for any other failure, such as allocation failures.

v3: Add an *ERROR* prior to declaring the GPU wedged so that it stands
out like a sore thumb in the logs

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c