[PATCH i-g-t] i915/perf_pmu: Update inter-engine semaphore detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The kernel no longer uses semaphores between engines, unless it can do
so by preempting them with timeslices. Update the semaphore-busy to only
run when we expect semaphore usage, i.e. not on bdw/bsw.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1939
Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
---
 tests/perf_pmu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index e54a0d47e..e80f730cf 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -822,6 +822,7 @@ sema_busy(int gem_fd,
 	int fd;
 
 	igt_require(gem_scheduler_has_semaphores(gem_fd));
+	igt_require(gem_scheduler_has_preemption(gem_fd));
 
 	fd = open_group(gem_fd,
 			I915_PMU_ENGINE_SEMA(e->class, e->instance), -1);
-- 
2.27.0.rc0

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



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux