drm/i915/gvt: Return -EIO if host enable_execlists not enabled when loading GVT-g
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Sat, 27 May 2017 09:44:18 +0000 (17:44 +0800)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 30 May 2017 12:59:56 +0000 (15:59 +0300)
commit36ccc4f89fe595567d91e3246c5d81952ba3d8b2
tree859b253f7295b4773c28f4fc377d102a2789fe92
parent67b7f33eeeaa6368289c6d25b283432e02dcc1c1
drm/i915/gvt: Return -EIO if host enable_execlists not enabled when loading GVT-g

GVT-g relies on the enable_execlists parameter in i915. If this option
is not enabled for GVT-g, should return -EIO to make i915 driver loading
failed.

v2:
- Use DMR_ERROR as it is a fatal message. (Chris)

Suggested-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_gvt.c