All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH 0/1] drm/i915/gt: Wait longer for tasks in migrate selftest
@ 2023-08-28 19:28 Jonathan Cavitt
  2023-08-28 19:28 ` [Intel-gfx] [PATCH 1/1] " Jonathan Cavitt
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jonathan Cavitt @ 2023-08-28 19:28 UTC (permalink / raw)
  To: intel-gfx; +Cc: chris.p.wilson, jonathan.cavitt, andi.shyti

The thread_global_copy subtest of the live migrate selftest creates a
large number of threads and waits 10ms for them all to start.  This is
not enough time to wait for the threaded tasks to start, as some may
need to wait for additional ring space to be granted.  Threads that do
so are at risk of getting stopped (signaled) in the middle of waiting
for additional space, which can result in ERESTARTSYS getting reported
erroneously by i915_request_wait.

Instead of waiting a flat 10ms for the threads to start, wait 10ms per
thread.  This grants enough of a buffer for each thread to wait for
additional ring space when needed.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
CC: Chris Wilson <chris.p.wilson@linux.intel.com>
CC: Andi Shyti <andi.shyti@intel.com>

Jonathan Cavitt (1):
  drm/i915/gt: Wait longer for tasks in migrate selftest

 drivers/gpu/drm/i915/gt/selftest_migrate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-08-31 18:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-28 19:28 [Intel-gfx] [PATCH 0/1] drm/i915/gt: Wait longer for tasks in migrate selftest Jonathan Cavitt
2023-08-28 19:28 ` [Intel-gfx] [PATCH 1/1] " Jonathan Cavitt
2023-08-31 15:01   ` Andi Shyti
2023-08-31 18:18   ` Andi Shyti
2023-08-28 20:48 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2023-08-29 11:06   ` Andi Shyti
2023-08-29 16:10 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gt: Wait longer for tasks in migrate selftest (rev2) Patchwork
2023-08-29 23:33 ` [Intel-gfx] ✓ 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.