All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: set initialised only when init_context callback is NULL
@ 2017-05-11 10:07 Chuanxiao Dong
  2017-05-11 11:00 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Chuanxiao Dong @ 2017-05-11 10:07 UTC (permalink / raw)
  To: intel-gfx; +Cc: intel-gvt-dev

initialised is fixup by the GVT shadow context as true to avoid the init
from the host because it cannot take the settings from the host. Add a
check to let host driver only overwrite it when the init callback is NULL

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
---
 drivers/gpu/drm/i915/intel_lrc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 319d9a8..d0e9b61 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -1956,7 +1956,8 @@ static int execlists_context_deferred_alloc(struct i915_gem_context *ctx,
 
 	ce->ring = ring;
 	ce->state = vma;
-	ce->initialised = engine->init_context == NULL;
+	if (!engine->init_context)
+		ce->initialised = true;
 
 	return 0;
 
-- 
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] 11+ messages in thread

end of thread, other threads:[~2017-05-19  9:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 10:07 [PATCH] drm/i915: set initialised only when init_context callback is NULL Chuanxiao Dong
2017-05-11 11:00 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-05-12  9:49 ` [PATCH] " Chris Wilson
2017-05-12 10:11   ` Chris Wilson
2017-05-12 10:50     ` Dong, Chuanxiao
2017-05-12 10:11 ` [PATCH v2] " Chris Wilson
2017-05-12 11:15   ` Dong, Chuanxiao
2017-05-12 11:34 ` ✓ Fi.CI.BAT: success for drm/i915: set initialised only when init_context callback is NULL (rev2) Patchwork
2017-05-12 11:44   ` Chris Wilson
2017-05-19  2:11     ` Zhenyu Wang
2017-05-19  9:19       ` Jani Nikula

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.