]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/i915/selftests: Increase timeout in i915_gem_contexts selftests
authorMatthew Brost <matthew.brost@intel.com>
Tue, 27 Jul 2021 03:17:03 +0000 (20:17 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Wed, 25 Aug 2021 02:56:01 +0000 (19:56 -0700)
Like in the case of several other selftests, generating lots of requests
in a loop takes a bit longer with GuC submission. Increase a timeout in
i915_gem_contexts selftest to take this into account.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210727031703.40395-2-matthew.brost@intel.com
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c

index 8eb5050f8cb3e7100f148ab9d926479c078b1fd2..4d2758718d2144c716f5d231da94a2856fefcf7c 100644 (file)
@@ -94,7 +94,7 @@ static int live_nop_switch(void *arg)
                        rq = i915_request_get(this);
                        i915_request_add(this);
                }
-               if (i915_request_wait(rq, 0, HZ / 5) < 0) {
+               if (i915_request_wait(rq, 0, HZ) < 0) {
                        pr_err("Failed to populated %d contexts\n", nctx);
                        intel_gt_set_wedged(&i915->gt);
                        i915_request_put(rq);