Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/amdgpu: fix a random P-state test failure
@ 2024-09-05 10:07 Tim Huang
  2024-09-05 21:20 ` vitaly prosyak
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Tim Huang @ 2024-09-05 10:07 UTC (permalink / raw)
  To: igt-dev; +Cc: vitaly.prosyak, alexander.deucher, jie1zhan, Tim Huang

We should use the current_pstate to compare
with the default UMD stable P-state.

Signed-off-by: Tim Huang <tim.huang@amd.com>
---
 tests/amdgpu/amd_pstate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/amdgpu/amd_pstate.c b/tests/amdgpu/amd_pstate.c
index 9a7873538..2bc794252 100644
--- a/tests/amdgpu/amd_pstate.c
+++ b/tests/amdgpu/amd_pstate.c
@@ -23,7 +23,7 @@ amdgpu_stable_pstate_test(amdgpu_device_handle device_handle)
 					AMDGPU_CTX_OP_GET_STABLE_PSTATE,
 					0, &current_pstate);
 	igt_assert_eq(r, 0);
-	igt_assert_eq(new_pstate, AMDGPU_CTX_STABLE_PSTATE_NONE);
+	igt_assert_eq(current_pstate, AMDGPU_CTX_STABLE_PSTATE_NONE);
 	r = amdgpu_cs_ctx_stable_pstate(context_handle,
 					AMDGPU_CTX_OP_SET_STABLE_PSTATE,
 					AMDGPU_CTX_STABLE_PSTATE_PEAK, NULL);
-- 
2.43.0


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

end of thread, other threads:[~2024-09-09 23:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-05 10:07 [PATCH i-g-t] tests/amdgpu: fix a random P-state test failure Tim Huang
2024-09-05 21:20 ` vitaly prosyak
2024-09-05 22:10 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-09-05 22:11 ` ✓ CI.xeBAT: " Patchwork
2024-09-08  0:57 ` ✗ CI.xeFULL: failure " Patchwork
2024-09-09 23:01 ` ✗ Fi.CI.IGT: " Patchwork

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