]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0761d30688f2bbcbd618a089a0fca3aab5c424e6
tree9935d79d923f2a43da8f454c375852abc0aa034c
parent3b77d82e8d8981da976831f5a288ea7f163a7d09
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