diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/gpu/drm/i915/gt/selftest_execlists.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/gpu/drm/i915/gt/selftest_execlists.c')
| -rw-r--r-- | drivers/gpu/drm/i915/gt/selftest_execlists.c | 12 | 
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/gt/selftest_execlists.c b/drivers/gpu/drm/i915/gt/selftest_execlists.c index 736b89a8ecf5..4202df5b8c12 100644 --- a/drivers/gpu/drm/i915/gt/selftest_execlists.c +++ b/drivers/gpu/drm/i915/gt/selftest_execlists.c @@ -1530,8 +1530,8 @@ static int live_busywait_preempt(void *arg)  	struct drm_i915_gem_object *obj;  	struct i915_vma *vma;  	enum intel_engine_id id; -	int err = -ENOMEM;  	u32 *map; +	int err;  	/*  	 * Verify that even without HAS_LOGICAL_RING_PREEMPTION, we can @@ -1539,13 +1539,17 @@ static int live_busywait_preempt(void *arg)  	 */  	ctx_hi = kernel_context(gt->i915, NULL); -	if (!ctx_hi) -		return -ENOMEM; +	if (IS_ERR(ctx_hi)) +		return PTR_ERR(ctx_hi); +  	ctx_hi->sched.priority = I915_CONTEXT_MAX_USER_PRIORITY;  	ctx_lo = kernel_context(gt->i915, NULL); -	if (!ctx_lo) +	if (IS_ERR(ctx_lo)) { +		err = PTR_ERR(ctx_lo);  		goto err_ctx_hi; +	} +  	ctx_lo->sched.priority = I915_CONTEXT_MIN_USER_PRIORITY;  	obj = i915_gem_object_create_internal(gt->i915, PAGE_SIZE);  |