drm/i915/selftests: Follow up on increase timeout in i915_gem_contexts selftests
authorBruce Chang <yu.bruce.chang@intel.com>
Tue, 7 Dec 2021 00:38:45 +0000 (16:38 -0800)
committerRamalingam C <ramalingam.c@intel.com>
Tue, 7 Dec 2021 14:49:49 +0000 (20:19 +0530)
Follow up on below commit, to increase the timeout further on new
platforms, to accomodate the additional time required for the completion
of guc submissions for numerous requests created in loop.

commit 5e076529e2652244ec20a86d8f99ba634a16c4f4
Author: Matthew Brost <matthew.brost@intel.com>
Date:   Mon Jul 26 20:17:03 2021 -0700

    drm/i915/selftests: Increase timeout in i915_gem_contexts selftests

Signed-off-by: Bruce Chang <yu.bruce.chang@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211207003845.12419-1-yu.bruce.chang@intel.com
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c

index b32f7fe..21b7156 100644 (file)
@@ -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, 10 * HZ) < 0) {
                        pr_err("Failed to populated %d contexts\n", nctx);
                        intel_gt_set_wedged(&i915->gt);
                        i915_request_put(rq);