[Intel-gfx] [RFC 06/29] drm/i915: Do not initialize the engine state of GVT context
Zhi Wang
zhi.a.wang at intel.com
Thu Jan 28 02:21:28 PST 2016
As the guest context will be copied into GVT context, during the context
shadow. It's not necessary for host i915 to initialize the engine state of
GVT context.
Signed-off-by: Zhi Wang <zhi.a.wang at intel.com>
---
drivers/gpu/drm/i915/intel_lrc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 631ed96..830133d 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -2569,7 +2569,9 @@ int intel_lr_context_deferred_alloc(struct intel_context *ctx,
ctx->engine[ring->id].ringbuf = ringbuf;
ctx->engine[ring->id].state = ctx_obj;
- if (ctx != ctx->i915->kernel_context && ring->init_context) {
+ if (ctx != ctx->i915->kernel_context &&
+ !ctx->gvt_context && ring->init_context) {
+
struct drm_i915_gem_request *req;
req = i915_gem_request_alloc(ring, ctx);
--
1.9.1
More information about the Intel-gfx
mailing list