All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/selftests: Use msecs_to_jiffies() for an explicit ms timeout
@ 2018-11-21 11:58 Chris Wilson
  2018-11-21 12:26 ` Mika Kuoppala
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Wilson @ 2018-11-21 11:58 UTC (permalink / raw)
  To: intel-gfx

Make the wait for the evict kthread use an explicit timeout rather than
a handwaved jiffie value so it is consistent across all platforms.

References: https://bugs.freedesktop.org/show_bug.cgi?id=108735
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/selftests/intel_hangcheck.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/selftests/intel_hangcheck.c b/drivers/gpu/drm/i915/selftests/intel_hangcheck.c
index defe671130ab..1f76257641f2 100644
--- a/drivers/gpu/drm/i915/selftests/intel_hangcheck.c
+++ b/drivers/gpu/drm/i915/selftests/intel_hangcheck.c
@@ -1171,7 +1171,7 @@ static int __igt_reset_evict_vma(struct drm_i915_private *i915,
 		struct igt_wedge_me w;
 
 		/* The reset, even indirectly, should take less than 10ms. */
-		igt_wedge_on_timeout(&w, i915, HZ / 10 /* 100ms timeout*/)
+		igt_wedge_on_timeout(&w, i915, msecs_to_jiffies(100))
 			err = kthread_stop(tsk);
 
 		put_task_struct(tsk);
-- 
2.19.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-21 20:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-21 11:58 [PATCH] drm/i915/selftests: Use msecs_to_jiffies() for an explicit ms timeout Chris Wilson
2018-11-21 12:26 ` Mika Kuoppala
2018-11-21 12:37   ` Chris Wilson
2018-11-21 12:33 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-11-21 12:42   ` Chris Wilson
2018-11-21 20:33 ` ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.