drm/i915/cmdparser: Make initialisation failure non-fatal
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:17:10 +0000 (17:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:58 +0000 (22:36 +0100)
commit7756e454077197df57c51cc2f7ae844ec6ce9fba
tree9935d79d923f2a43da8f454c375852abc0aa034c
parentcd3127d684f027f7c85aec57e284dcecd033dccf
drm/i915/cmdparser: Make initialisation failure non-fatal

If the developer adds a register in the wrong order, we BUG during boot.
That makes development and testing very difficult. Let's be a bit more
friendly and disable the command parser with a big warning if the tables
are invalid.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-31-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_engine_cs.c