drm/i915/gvt: add enable_execlists check before enable gvt
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Thu, 9 Mar 2017 15:07:12 +0000 (23:07 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 17 Mar 2017 08:46:45 +0000 (16:46 +0800)
commitcf2135ca3d50d6468e9216fef3d0d33c31af635b
tree7863a1c4d14c62dbde9f525920c308dc29c4db37
parent3dce2aca02929f180ab66171b333fa48fe485a03
drm/i915/gvt: add enable_execlists check before enable gvt

The GVT-g needs execlists to be enabled otherwise gvt should be
disabled. Add a check for enable_execlists before enabling gvt.

v2: use DRM_INFO in response to the user action

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/intel_gvt.c