Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/xe_exec_threads: Fill in GT field for second balancer thread
@ 2024-03-20 19:23 Matt Roper
  2024-03-20 20:47 ` Lucas De Marchi
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Matt Roper @ 2024-03-20 19:23 UTC (permalink / raw)
  To: igt-dev; +Cc: matthew.d.roper

The balancer subtests spawn two pthreads per engine class if there are
multiple instances of the class.  The GT field of the data structure is
filled in properly for the first thread, but not for the second,
effectively leaving it set to "0."

For platforms with standalone media, this will result in failures when
the thread tries to find the instances of a media class on GT0 and trips
the "igt_assert(num_placements > 1)" assertion in test_balancer().

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
---
 tests/intel/xe_exec_threads.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/intel/xe_exec_threads.c b/tests/intel/xe_exec_threads.c
index 55907e2b3..977e8c600 100644
--- a/tests/intel/xe_exec_threads.c
+++ b/tests/intel/xe_exec_threads.c
@@ -1081,6 +1081,7 @@ static void threads(int fd, int flags)
 						threads_data[i].fd = 0;
 					else
 						threads_data[i].fd = fd;
+					threads_data[i].gt = gt;
 					threads_data[i].vm_legacy_mode =
 						vm_legacy_mode;
 					threads_data[i].class = class;
-- 
2.43.0


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

end of thread, other threads:[~2024-03-25  8:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-20 19:23 [PATCH i-g-t] tests/xe_exec_threads: Fill in GT field for second balancer thread Matt Roper
2024-03-20 20:47 ` Lucas De Marchi
2024-03-21  1:04   ` Matthew Brost
2024-03-21  6:01     ` Lucas De Marchi
2024-03-21 18:43       ` Matthew Brost
2024-03-20 21:02 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-03-20 21:11 ` ✓ CI.xeBAT: " Patchwork
2024-03-20 21:35   ` Matt Roper
2024-03-21  9:14 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-03-21 13:23   ` Kamil Konieczny
2024-03-25  8:54 ` ✓ Fi.CI.IGT: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox