aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests/intel_lrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/intel_lrc.c')
-rw-r--r--drivers/gpu/drm/i915/selftests/intel_lrc.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/selftests/intel_lrc.c b/drivers/gpu/drm/i915/selftests/intel_lrc.c
index fbee030db940..e8b0b5dbcb2c 100644
--- a/drivers/gpu/drm/i915/selftests/intel_lrc.c
+++ b/drivers/gpu/drm/i915/selftests/intel_lrc.c
@@ -99,12 +99,14 @@ static int live_busywait_preempt(void *arg)
99 ctx_hi = kernel_context(i915); 99 ctx_hi = kernel_context(i915);
100 if (!ctx_hi) 100 if (!ctx_hi)
101 goto err_unlock; 101 goto err_unlock;
102 ctx_hi->sched.priority = INT_MAX; 102 ctx_hi->sched.priority =
103 I915_USER_PRIORITY(I915_CONTEXT_MAX_USER_PRIORITY);
103 104
104 ctx_lo = kernel_context(i915); 105 ctx_lo = kernel_context(i915);
105 if (!ctx_lo) 106 if (!ctx_lo)
106 goto err_ctx_hi; 107 goto err_ctx_hi;
107 ctx_lo->sched.priority = INT_MIN; 108 ctx_lo->sched.priority =
109 I915_USER_PRIORITY(I915_CONTEXT_MIN_USER_PRIORITY);
108 110
109 obj = i915_gem_object_create_internal(i915, PAGE_SIZE); 111 obj = i915_gem_object_create_internal(i915, PAGE_SIZE);
110 if (IS_ERR(obj)) { 112 if (IS_ERR(obj)) {
@@ -954,12 +956,14 @@ static int live_preempt_hang(void *arg)
954 ctx_hi = kernel_context(i915); 956 ctx_hi = kernel_context(i915);
955 if (!ctx_hi) 957 if (!ctx_hi)
956 goto err_spin_lo; 958 goto err_spin_lo;
957 ctx_hi->sched.priority = I915_CONTEXT_MAX_USER_PRIORITY; 959 ctx_hi->sched.priority =
960 I915_USER_PRIORITY(I915_CONTEXT_MAX_USER_PRIORITY);
958 961
959 ctx_lo = kernel_context(i915); 962 ctx_lo = kernel_context(i915);
960 if (!ctx_lo) 963 if (!ctx_lo)
961 goto err_ctx_hi; 964 goto err_ctx_hi;
962 ctx_lo->sched.priority = I915_CONTEXT_MIN_USER_PRIORITY; 965 ctx_lo->sched.priority =
966 I915_USER_PRIORITY(I915_CONTEXT_MIN_USER_PRIORITY);
963 967
964 for_each_engine(engine, i915, id) { 968 for_each_engine(engine, i915, id) {
965 struct i915_request *rq; 969 struct i915_request *rq;