]> Git Repo - linux.git/commitdiff
drm/i915/gt: Increase sleep in gt_tlb selftest sanitycheck
authorJonathan Cavitt <[email protected]>
Tue, 17 Oct 2023 18:08:05 +0000 (11:08 -0700)
committerAndi Shyti <[email protected]>
Wed, 18 Oct 2023 04:01:12 +0000 (06:01 +0200)
For the gt_tlb live selftest, when operating on the GSC engine,
increase the timeout from 10 ms to 200 ms because the GSC
engine is a bit slower than the rest.

Signed-off-by: Jonathan Cavitt <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Acked-by: Tvrtko Ursulin <[email protected]>
Reviewed-by: Nirmoy Das <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/gt/selftest_tlb.c

index 7e41f69fc818f904c5a7f78bc1801b3b194bce10..00b872b6380b15ba6dd0da994ba1a73e2680ee48 100644 (file)
@@ -136,8 +136,15 @@ pte_tlbinv(struct intel_context *ce,
        i915_request_get(rq);
        i915_request_add(rq);
 
-       /* Short sleep to sanitycheck the batch is spinning before we begin */
-       msleep(10);
+       /*
+        * Short sleep to sanitycheck the batch is spinning before we begin.
+        * FIXME: Why is GSC so slow?
+        */
+       if (ce->engine->class == OTHER_CLASS)
+               msleep(200);
+       else
+               msleep(10);
+
        if (va == vb) {
                if (!i915_request_completed(rq)) {
                        pr_err("%s(%s): Semaphore sanitycheck failed %llx, with alignment %llx, using PTE size %x (phys %x, sg %x)\n",
This page took 0.056073 seconds and 4 git commands to generate.