OSDN Git Service

drm/i915/selftest: Increase some timeouts in live_requests
authorMatthew Brost <matthew.brost@intel.com>
Tue, 27 Jul 2021 00:23:44 +0000 (17:23 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Wed, 28 Jul 2021 00:32:22 +0000 (17:32 -0700)
Requests may take slightly longer with GuC submission, let's increase
the timeouts in live_requests.

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/20210727002348.97202-30-matthew.brost@intel.com
drivers/gpu/drm/i915/selftests/i915_request.c

index bd5c96a..d67710d 100644 (file)
@@ -1313,7 +1313,7 @@ static int __live_parallel_engine1(void *arg)
                i915_request_add(rq);
 
                err = 0;
-               if (i915_request_wait(rq, 0, HZ / 5) < 0)
+               if (i915_request_wait(rq, 0, HZ) < 0)
                        err = -ETIME;
                i915_request_put(rq);
                if (err)
@@ -1419,7 +1419,7 @@ static int __live_parallel_spin(void *arg)
        }
        igt_spinner_end(&spin);
 
-       if (err == 0 && i915_request_wait(rq, 0, HZ / 5) < 0)
+       if (err == 0 && i915_request_wait(rq, 0, HZ) < 0)
                err = -EIO;
        i915_request_put(rq);