Skip to content

Commit dbe65a3

Browse files
Jonathan-CavittAndi Shyti
authored andcommitted
drm/i915/gt: Increase sleep in gt_tlb selftest sanitycheck
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]
1 parent 55ac6ea commit dbe65a3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

drivers/gpu/drm/i915/gt/selftest_tlb.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,15 @@ pte_tlbinv(struct intel_context *ce,
136136
i915_request_get(rq);
137137
i915_request_add(rq);
138138

139-
/* Short sleep to sanitycheck the batch is spinning before we begin */
140-
msleep(10);
139+
/*
140+
* Short sleep to sanitycheck the batch is spinning before we begin.
141+
* FIXME: Why is GSC so slow?
142+
*/
143+
if (ce->engine->class == OTHER_CLASS)
144+
msleep(200);
145+
else
146+
msleep(10);
147+
141148
if (va == vb) {
142149
if (!i915_request_completed(rq)) {
143150
pr_err("%s(%s): Semaphore sanitycheck failed %llx, with alignment %llx, using PTE size %x (phys %x, sg %x)\n",

0 commit comments

Comments
 (0)