All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chuanxiao Dong <chuanxiao.dong@intel.com>
To: intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: [PATCH 2/3] drm/i915/gvt: Return -EIO if host enable_execlists not enabled when loading GVT-g
Date: Fri, 26 May 2017 11:04:18 +0800	[thread overview]
Message-ID: <1495767859-10064-3-git-send-email-chuanxiao.dong@intel.com> (raw)
In-Reply-To: <1495767859-10064-1-git-send-email-chuanxiao.dong@intel.com>

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.

Suggested-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
---
 drivers/gpu/drm/i915/intel_gvt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_gvt.c b/drivers/gpu/drm/i915/intel_gvt.c
index dde9c78..c90d476 100644
--- a/drivers/gpu/drm/i915/intel_gvt.c
+++ b/drivers/gpu/drm/i915/intel_gvt.c
@@ -97,7 +97,7 @@ 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;
+		return -EIO;
 	}
 
 	/*
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2017-05-26  3:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-26  3:04 [PATCH 0/3] drm/i915/gvt: GVT-g options sanitize series Chuanxiao Dong
2017-05-26  3:04 ` [PATCH 1/3] drm/i915/gvt: Add gvt options sanitize function Chuanxiao Dong
2017-05-26 11:08   ` Chris Wilson
2017-05-27  9:39     ` Dong, Chuanxiao
2017-05-26  3:04 ` Chuanxiao Dong [this message]
2017-05-26  9:35   ` [PATCH 2/3] drm/i915/gvt: Return -EIO if host enable_execlists not enabled when loading GVT-g Chris Wilson
2017-05-26  9:55     ` Dong, Chuanxiao
2017-05-26  3:04 ` [PATCH 3/3] drm/i915/gvt: Return -EIO if host GuC submission is " Chuanxiao Dong
2017-05-26  9:36   ` Chris Wilson
2017-05-26  3:24 ` ✗ Fi.CI.BAT: failure for drm/i915/gvt: GVT-g options sanitize series Patchwork
2017-05-27  9:44 ` [PATCH v2 0/3] " Chuanxiao Dong
2017-05-27 10:01   ` ✓ Fi.CI.BAT: success for series starting with [v2,1/3] drm/i915/gvt: Add gvt options sanitize function Patchwork
2017-05-30 12:45     ` Chris Wilson
2017-05-30 13:10       ` Joonas Lahtinen
2017-05-27  9:44 ` [PATCH v2 1/3] " Chuanxiao Dong
2017-05-27  9:44 ` [PATCH v2 2/3] drm/i915/gvt: Return -EIO if host enable_execlists not enabled when loading GVT-g Chuanxiao Dong
2017-05-27  9:44 ` [PATCH v2 3/3] drm/i915/gvt: Return -EIO if host GuC submission is " Chuanxiao Dong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1495767859-10064-3-git-send-email-chuanxiao.dong@intel.com \
    --to=chuanxiao.dong@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-gvt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.