From: "Yao, Jia" <jia.yao@intel.com>
To: Zongyao Bai <zongyao.bai@intel.com>, <igt-dev@lists.freedesktop.org>
Cc: <shuicheng.lin@intel.com>
Subject: Re: [PATCH 3/3] tests/intel/xe_pmu: Wait for stable C6 in gt-c6-idle
Date: Wed, 2 Dec 2026 15:16:31 -0800 [thread overview]
Message-ID: <2af6d0d7-359e-4326-8a6e-92df2bce897e@intel.com> (raw)
In-Reply-To: <20261119005009.364632-4-zongyao.bai@intel.com>
LGTM.
Reviewed-by: Jia Yao <jia.yao@intel.com>
On 11/18/2026 4:50 PM, Zongyao Bai wrote:
> Same as for xe_pm_residency: a single transient visit to C6 does not
> guarantee the GT is idle for the following 3s measurement window. Use
> xe_gt_wait_c6_stable() before comparing the increment of the gt-c6 PMU
> residency with the elapsed PMU timestamp delta.
>
> Signed-off-by: Zongyao Bai <zongyao.bai@intel.com>
> ---
> tests/intel/xe_pmu.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/intel/xe_pmu.c b/tests/intel/xe_pmu.c
> index de07c2236..31b5cbafe 100644
> --- a/tests/intel/xe_pmu.c
> +++ b/tests/intel/xe_pmu.c
> @@ -878,9 +878,9 @@ static void test_gt_c6_idle(int xe, unsigned int gt)
>
> pmu_fd = open_pmu(xe, pmu_config);
>
> - igt_require_f(igt_wait(xe_gt_is_in_c6(xe, gt), 1000, 10) ||
> + igt_require_f(xe_gt_wait_c6_stable(xe, gt, 500, 5000) ||
> xe_gt_dump_debug_info(xe, gt),
> - "GT %d should be in C6\n", gt);
> + "GT %d should be in stable C6\n", gt);
>
> /* While idle check full RC6. */
> start = read_idle_residency(xe, gt);
next prev parent reply other threads:[~2026-12-02 23:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 0:50 [PATCH 0/3] tests/intel/xe_pm_residency: Wait for a stable C6 before measuring residency Zongyao Bai
2026-11-19 0:50 ` [PATCH 1/3] lib/xe/xe_gt: Add xe_gt_wait_c6_stable() Zongyao Bai
2026-12-02 23:16 ` Yao, Jia
2026-11-19 0:50 ` [PATCH 2/3] tests/intel/xe_pm_residency: Wait for stable C6 before measuring Zongyao Bai
2026-12-02 23:14 ` Yao, Jia
2026-11-19 0:50 ` [PATCH 3/3] tests/intel/xe_pmu: Wait for stable C6 in gt-c6-idle Zongyao Bai
2026-12-02 23:16 ` Yao, Jia [this message]
2026-11-19 7:10 ` ✓ Xe.CI.BAT: success for tests/intel/xe_pm_residency: Wait for a stable C6 before measuring residency Patchwork
2026-11-19 13:06 ` ✓ i915.CI.BAT: " Patchwork
2026-11-20 10:20 ` ✓ Xe.CI.FULL: " Patchwork
2026-11-20 13:29 ` ✗ i915.CI.Full: failure " 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=2af6d0d7-359e-4326-8a6e-92df2bce897e@intel.com \
--to=jia.yao@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=shuicheng.lin@intel.com \
--cc=zongyao.bai@intel.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