diff options
author | Chuanxiao Dong <chuanxiao.dong@intel.com> | 2017-03-09 10:07:12 -0500 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-03-17 04:46:45 -0400 |
commit | cf2135ca3d50d6468e9216fef3d0d33c31af635b (patch) | |
tree | 7863a1c4d14c62dbde9f525920c308dc29c4db37 | |
parent | 3dce2aca02929f180ab66171b333fa48fe485a03 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/i915/intel_gvt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_gvt.c b/drivers/gpu/drm/i915/intel_gvt.c index d23c0fcff751..8c04eca84351 100644 --- a/drivers/gpu/drm/i915/intel_gvt.c +++ b/drivers/gpu/drm/i915/intel_gvt.c | |||
@@ -77,6 +77,11 @@ int intel_gvt_init(struct drm_i915_private *dev_priv) | |||
77 | goto bail; | 77 | goto bail; |
78 | } | 78 | } |
79 | 79 | ||
80 | if (!i915.enable_execlists) { | ||
81 | DRM_INFO("GPU guest virtualisation [GVT-g] disabled due to disabled execlist submission [i915.enable_execlists module parameter]\n"); | ||
82 | goto bail; | ||
83 | } | ||
84 | |||
80 | /* | 85 | /* |
81 | * We're not in host or fail to find a MPT module, disable GVT-g | 86 | * We're not in host or fail to find a MPT module, disable GVT-g |
82 | */ | 87 | */ |