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>
Mon, 5 May 2014 07:08:38 +0000 (09:08 +0200)
commit6099032045d4d83bf643b5fe33caaa8e56e7f5de
tree6b5853a35e76e63127b8cbfed73c2e0e53dfb1c8
parente3efda49e736b8b0de3a5adb45e412cf90fdaf8d
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