mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 13:49:26 +01:00
drm/i915/selftests: Add some missing error propagation
Add some missing error propagation in live_parallel_switch. To avoid needlessly burdening the various backport processes, note I am not marking it as a fix against any patches and not copying stable since it is debug/selftests only code. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Cc: Andi Shyti <andi.shyti@linux.intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Fixes:50d16d44cc("drm/i915/selftests: Exercise context switching in parallel") Fixes:6407cf5332("drm/i915/selftests: Stop using kthread_stop()") Link: https://patchwork.freedesktop.org/patch/msgid/20230605131135.396854-1-tvrtko.ursulin@linux.intel.com (cherry picked from commit412fa1f097) Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
This commit is contained in:
parent
2d6f2f79e0
commit
79d0150d2d
|
|
@ -346,8 +346,10 @@ static int live_parallel_switch(void *arg)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ce = intel_context_create(data[m].ce[0]->engine);
|
ce = intel_context_create(data[m].ce[0]->engine);
|
||||||
if (IS_ERR(ce))
|
if (IS_ERR(ce)) {
|
||||||
|
err = PTR_ERR(ce);
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
err = intel_context_pin(ce);
|
err = intel_context_pin(ce);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
@ -367,8 +369,10 @@ static int live_parallel_switch(void *arg)
|
||||||
|
|
||||||
worker = kthread_create_worker(0, "igt/parallel:%s",
|
worker = kthread_create_worker(0, "igt/parallel:%s",
|
||||||
data[n].ce[0]->engine->name);
|
data[n].ce[0]->engine->name);
|
||||||
if (IS_ERR(worker))
|
if (IS_ERR(worker)) {
|
||||||
|
err = PTR_ERR(worker);
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
data[n].worker = worker;
|
data[n].worker = worker;
|
||||||
}
|
}
|
||||||
|
|
@ -397,8 +401,10 @@ static int live_parallel_switch(void *arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (igt_live_test_end(&t))
|
if (igt_live_test_end(&t)) {
|
||||||
err = -EIO;
|
err = err ?: -EIO;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user