drm/i915/gvt: Return -EIO if host GuC submission is enabled when loading GVT-g
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Sat, 27 May 2017 09:44:19 +0000 (17:44 +0800)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 30 May 2017 13:00:07 +0000 (16:00 +0300)
commitecef814c994d7d00dfa7bef5aa87dd66e8574946
tree28155edcd9a783dcde7f05c759f11c8c60d34e0e
parent36ccc4f89fe595567d91e3246c5d81952ba3d8b2
drm/i915/gvt: Return -EIO if host GuC submission is enabled when loading GVT-g

Currently GVT-g cannot work properly when host GuC submission is
enabled, so make the driver loading failed in this case.

v2:
- use DRM_ERROR as it is a fatal message. (Chris)

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1495878259-7733-2-git-send-email-chuanxiao.dong@intel.com
drivers/gpu/drm/i915/intel_gvt.c