[PATCH i-g-t 3/3] tests/xe_sriov_scheduling: fix ticks_delta check for non-inverted logic

Marcin Bernatowicz <[email protected]> Fri, 31 Jul 2026 16:18:06 +0200
Newsgroups org.freedesktop.lists.igt-dev
Message-ID <[email protected]>
xe_spin now stores elapsed ticks directly in ticks_delta (not inverted).
Update subm_is_work_complete() accordingly.

Signed-off-by: Marcin Bernatowicz <[email protected]>
Cc: Adam Miszczak <[email protected]>
Cc: Kamil Konieczny <[email protected]>
Cc: Lukasz Laguna <[email protected]>
Cc: Zbigniew KempczyƄski <[email protected]>
---
 tests/intel/xe_sriov_scheduling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/intel/xe_sriov_scheduling.c b/tests/intel/xe_sriov_scheduling.c
index 47cc5d9b0..5d30b961d 100644
--- a/tests/intel/xe_sriov_scheduling.c
+++ b/tests/intel/xe_sriov_scheduling.c
@@ -189,7 +189,7 @@ static void subm_exec_slot(struct subm *s, unsigned int slot)
 
 static bool subm_is_work_complete(struct subm *s, unsigned int slot)
 {
-	return s->expected_ticks <= ~s->spin[slot]->ticks_delta;
+	return s->expected_ticks <= s->spin[slot]->ticks_delta;
 }
 
 static bool subm_is_exec_queue_banned(struct subm *s)
-- 
2.43.0