From: "Christian König" <christian.koenig@amd.com>
To: Jasber Chen <yipeng.chen@amd.com>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] tests/amdgpu: skips query-timestamp-while-idle test on raven/raven2
Date: Tue, 20 Jun 2023 08:00:45 +0200 [thread overview]
Message-ID: <cdfb2fdd-7b01-78e8-fed7-580176d82b95@amd.com> (raw)
In-Reply-To: <20230620022028.1533754-1-yipeng.chen@amd.com>
Am 20.06.23 um 04:20 schrieb Jasber Chen:
> tests/amdgpu: skips query-timestamp-while-idle test on raven/raven2.
> Querying GPU clocks can not work as expected when GPU is idling.
You need to give an explanation why they can't work here.
Christian.
>
> Signed-off-by: Jasber Chen <yipeng.chen@amd.com>
> ---
> tests/amdgpu/amd_info.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/tests/amdgpu/amd_info.c b/tests/amdgpu/amd_info.c
> index d6aea827..8e14e511 100644
> --- a/tests/amdgpu/amd_info.c
> +++ b/tests/amdgpu/amd_info.c
> @@ -27,6 +27,7 @@
>
> #include <amdgpu.h>
> #include <amdgpu_drm.h>
> +#include "lib/amdgpu/amdgpu_asic_addr.h"
>
> static amdgpu_device_handle dev;
>
> @@ -124,6 +125,8 @@ IGT_TEST_DESCRIPTION("Test the consistency of the data provided through the "
> igt_main
> {
> int fd = -1;
> + int r = -1;
> + struct amdgpu_gpu_info gpu_info = {0};
>
> igt_fixture {
> uint32_t major, minor;
> @@ -136,6 +139,9 @@ igt_main
>
> igt_info("Initialized amdgpu, driver version %d.%d\n",
> major, minor);
> +
> + r = amdgpu_query_gpu_info(dev, &gpu_info);
> + igt_assert_eq(r, 0);
> }
>
> igt_describe("Make sure we can retrieve the firmware version");
> @@ -149,8 +155,12 @@ igt_main
>
> igt_describe("Check that the GPU time keeps on ticking, even during "
> "long idle times which could lead to clock/power gating");
> - igt_subtest("query-timestamp-while-idle")
> + igt_subtest("query-timestamp-while-idle") {
> + igt_skip_on(ASICREV_IS_RAVEN(gpu_info.chip_external_rev) ||
> + ASICREV_IS_RAVEN2(gpu_info.chip_external_rev));
> query_timestamp_test(7000000, 1);
> + }
>
> igt_fixture {
> amdgpu_device_deinitialize(dev);
next prev parent reply other threads:[~2023-06-20 6:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-19 2:58 [igt-dev] tests/amdgpu: skips query-timestamp-while-idle test on raven/raven2 Jasber Chen
2023-06-19 18:25 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-06-20 2:20 ` [igt-dev] " Jasber Chen
2023-06-20 6:00 ` Christian König [this message]
2023-06-20 4:46 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
2023-06-20 5:41 ` [igt-dev] [PATCH] Subject: " Jasber Chen
2023-06-20 5:52 ` [igt-dev] " Jasber Chen
2023-06-20 6:44 ` Jasber Chen
2023-06-20 7:11 ` Christian König
2023-06-20 9:43 ` Jasber Chen
2023-06-20 13:46 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/amdgpu: skips query-timestamp-while-idle test on raven/raven2 (rev6) 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=cdfb2fdd-7b01-78e8-fed7-580176d82b95@amd.com \
--to=christian.koenig@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=yipeng.chen@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