* [PATCH v2] drm/i915/gvt: add enable_execlists check before enable gvt
@ 2017-03-09 15:07 Chuanxiao Dong
2017-03-13 9:49 ` Zhenyu Wang
0 siblings, 1 reply; 2+ messages in thread
From: Chuanxiao Dong @ 2017-03-09 15:07 UTC (permalink / raw)
To: intel-gfx, intel-gvt-dev
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>
---
drivers/gpu/drm/i915/intel_gvt.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_gvt.c b/drivers/gpu/drm/i915/intel_gvt.c
index d23c0fc..8c04eca 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)
goto bail;
}
+ 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;
+ }
+
/*
* We're not in host or fail to find a MPT module, disable GVT-g
*/
--
2.7.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v2] drm/i915/gvt: add enable_execlists check before enable gvt
2017-03-09 15:07 [PATCH v2] drm/i915/gvt: add enable_execlists check before enable gvt Chuanxiao Dong
@ 2017-03-13 9:49 ` Zhenyu Wang
0 siblings, 0 replies; 2+ messages in thread
From: Zhenyu Wang @ 2017-03-13 9:49 UTC (permalink / raw)
To: Chuanxiao Dong; +Cc: intel-gfx, intel-gvt-dev
[-- Attachment #1.1: Type: text/plain, Size: 1162 bytes --]
On 2017.03.09 23:07:12 +0800, Chuanxiao Dong wrote:
> 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>
> ---
> drivers/gpu/drm/i915/intel_gvt.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_gvt.c b/drivers/gpu/drm/i915/intel_gvt.c
> index d23c0fc..8c04eca 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)
> goto bail;
> }
>
> + 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;
> + }
> +
> /*
> * We're not in host or fail to find a MPT module, disable GVT-g
> */
> --
I just pick this up for gvt-fixes tree. Thanks.
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 163 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-13 9:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-09 15:07 [PATCH v2] drm/i915/gvt: add enable_execlists check before enable gvt Chuanxiao Dong
2017-03-13 9:49 ` Zhenyu Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox