From: Tim Huang <tim.huang@amd.com>
To: <igt-dev@lists.freedesktop.org>
Cc: <vitaly.prosyak@amd.com>, <alexander.deucher@amd.com>,
<jie1zhan@amd.com>, Tim Huang <tim.huang@amd.com>
Subject: [PATCH i-g-t] tests/amdgpu: fix a random P-state test failure
Date: Thu, 5 Sep 2024 18:07:50 +0800 [thread overview]
Message-ID: <20240905100750.521280-1-tim.huang@amd.com> (raw)
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, ¤t_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
next reply other threads:[~2024-09-05 10:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-05 10:07 Tim Huang [this message]
2024-09-05 21:20 ` [PATCH i-g-t] tests/amdgpu: fix a random P-state test failure 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240905100750.521280-1-tim.huang@amd.com \
--to=tim.huang@amd.com \
--cc=alexander.deucher@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jie1zhan@amd.com \
--cc=vitaly.prosyak@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox