]> git.baikalelectronics.ru Git - kernel.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>
Mon, 5 May 2014 07:08:38 +0000 (09:08 +0200)
commitb1317593e59a8a0ac9272f1872d8ea37a84ad863
tree6b5853a35e76e63127b8cbfed73c2e0e53dfb1c8
parent02908509780222cd7238810dccf64a29de7c0051
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