Skip to content

Commit

Permalink
drm/i915/gvt: Return -EIO if host enable_execlists not enabled when l…
Browse files Browse the repository at this point in the history
…oading 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>
  • Loading branch information
Chuanxiao Dong authored and Joonas Lahtinen committed May 30, 2017
1 parent 67b7f33 commit 36ccc4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/intel_gvt.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ int intel_gvt_init(struct drm_i915_private *dev_priv)
}

if (!i915.enable_execlists) {
DRM_INFO("GPU guest virtualisation [GVT-g] disabled due to disabled execlist submission [i915.enable_execlists module parameter]\n");
goto bail;
DRM_ERROR("i915 GVT-g loading failed due to disabled execlists mode\n");
return -EIO;
}

/*
Expand Down

0 comments on commit 36ccc4f

Please sign in to comment.