[PATCH 24/35] SQUASH: - Rework initialization of UCONTEXT_PERSISTENCE
Jason Ekstrand
jason at jlekstrand.net
Tue Jun 8 22:24:02 UTC 2021
---
drivers/gpu/drm/i915/gem/i915_gem_context.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_context.c b/drivers/gpu/drm/i915/gem/i915_gem_context.c
index 16f22afe41ccb..f6f877f946c43 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_context.c
@@ -259,7 +259,8 @@ proto_context_create(struct drm_i915_private *i915, unsigned int flags)
pc->user_engines = NULL;
pc->user_flags = BIT(UCONTEXT_BANNABLE) |
BIT(UCONTEXT_RECOVERABLE);
- proto_context_set_persistence(i915, pc, true);
+ if (i915->params.enable_hangcheck)
+ pc->user_flags |= BIT(UCONTEXT_PERSISTENCE);
pc->sched.priority = I915_PRIORITY_NORMAL;
if (flags & I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE) {
--
2.31.1
More information about the Intel-gfx-trybot
mailing list