[PATCH] drm/i915/selftests: Increase timeout in i915_gem_contexts selftests
Gwan-gyeong Mun
gwan-gyeong.mun at intel.com
Wed Dec 1 15:17:53 UTC 2021
For testing maximum timeout of i915_gem_contexts selftest,
it increases a timeout in i915_gem_contexts selftest.
Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
---
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
index b32f7fed2d9c..b33ae262c695 100644
--- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
@@ -88,7 +88,7 @@ static int live_nop_switch(void *arg)
rq = i915_request_get(this);
i915_request_add(this);
}
- if (i915_request_wait(rq, 0, HZ) < 0) {
+ if (i915_request_wait(rq, 0, MAX_SCHEDULE_TIMEOUT) < 0) {
pr_err("Failed to populated %d contexts\n", nctx);
intel_gt_set_wedged(&i915->gt);
i915_request_put(rq);
@@ -143,7 +143,7 @@ static int live_nop_switch(void *arg)
i915_request_add(this);
}
GEM_BUG_ON(!rq);
- if (i915_request_wait(rq, 0, HZ / 5) < 0) {
+ if (i915_request_wait(rq, 0, MAX_SCHEDULE_TIMEOUT) < 0) {
pr_err("Switching between %ld contexts timed out\n",
prime);
intel_gt_set_wedged(&i915->gt);
--
2.31.1
More information about the Intel-gfx-trybot
mailing list