From: "Anirban, Sk" <sk.anirban@intel.com>
To: Hiresh Kumar Yadav <hiresh.kumar.yadav@intel.com>,
<igt-dev@lists.freedesktop.org>
Cc: <anshuman.gupta@intel.com>, <badal.nilawar@intel.com>,
<riana.tauro@intel.com>, <karthik.poosa@intel.com>,
<raag.jadav@intel.com>, <soham.purkait@intel.com>,
<mallesh.koujalagi@intel.com>
Subject: Re: [PATCH i-g-t v2] tests/intel/i915_pm_rpm: Print reason for skipping PC8 subtest
Date: Fri, 27 Nov 2026 15:53:29 +0530 [thread overview]
Message-ID: <7b654314-63fc-4d4e-af26-ec5c8b103701@intel.com> (raw)
In-Reply-To: <20261111100742.1983913-1-hiresh.kumar.yadav@intel.com>
Hi Hiresh,
On 11-11-2026 15:37, Hiresh Kumar Yadav wrote:
> gem-execbuf-stress-pc8 skips with only "Test requirement: has_pc8",
> which doesn't tell the user why PC8+ support is unavailable.
>
> Record the specific reason in setup_pc8() (unsupported platform,
> PC8+ residency MSRs not readable, or package C-states limited by
> BIOS) and print it when skipping.
>
> v2:
> - Drop unreachable skip reason (Anirban)
> - Use neutral reason when PC8+ C-states aren't enabled (Anirban)
> - Drop cause when residency MSRs are unreadable (Anirban)
> - Removed printing platform/codename (Anirban)
>
> Signed-off-by: Hiresh Kumar Yadav <hiresh.kumar.yadav@intel.com>
> ---
> tests/intel/i915_pm_rpm.c | 22 +++++++++++++++++-----
> 1 file changed, 17 insertions(+), 5 deletions(-)
>
> diff --git a/tests/intel/i915_pm_rpm.c b/tests/intel/i915_pm_rpm.c
> index b4da27b21..ee5e51c57 100644
> --- a/tests/intel/i915_pm_rpm.c
> +++ b/tests/intel/i915_pm_rpm.c
> @@ -131,6 +131,7 @@ enum plane_type {
> int drm_fd, msr_fd, pc8_status_fd;
> int debugfs;
> bool has_runtime_pm, has_pc8;
> +static const char *pc8_skip_reason;
> struct mode_set_data ms_data;
>
> /* Stuff used when creating FBs and mode setting. */
> @@ -222,15 +223,24 @@ static bool supports_pc8_plus_residencies(void)
>
> rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC8_RES);
> if (rc != sizeof(val))
> - return false;
> + goto no_msr;
> rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC9_RES);
> if (rc != sizeof(val))
> - return false;
> + goto no_msr;
> rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC10_RES);
> if (rc != sizeof(val))
> + goto no_msr;
> +
> + if (!igt_pm_pc8_plus_residencies_enabled(msr_fd)) {
> + pc8_skip_reason = "PC8+ package C-states not enabled";
In case of MSR_PKG_CST_CONFIG_CONTROL read failure also it will be
printed, please rephrase the sentence.
Thanks,
Anirban
> return false;
> + }
>
> - return igt_pm_pc8_plus_residencies_enabled(msr_fd);
> + return true;
> +
> +no_msr:
> + pc8_skip_reason = "PC8/PC9/PC10 residency MSRs not readable";
> + return false;
> }
>
> static uint64_t get_residency(uint32_t type)
> @@ -550,8 +560,10 @@ static void setup_pc8(void)
> has_pc8 = false;
>
> /* Only Haswell supports the PC8 feature. */
> - if (!IS_HASWELL(ms_data.devid) && !IS_BROADWELL(ms_data.devid))
> + if (!IS_HASWELL(ms_data.devid) && !IS_BROADWELL(ms_data.devid)) {
> + pc8_skip_reason = "PC8+ residency is only supported on Haswell/Broadwell";
> return;
> + }
>
> /* Make sure our Kernel supports MSR and the module is loaded. */
> igt_require(modprobe("msr") == 0);
> @@ -1147,7 +1159,7 @@ gem_execbuf_stress_subtest(int rounds, int wait_flags,
> igt_require_gem(drm_fd);
>
> if (wait_flags & WAIT_PC8_RES)
> - igt_require(has_pc8);
> + igt_require_f(has_pc8, "%s\n", pc8_skip_reason);
>
> i = 0;
> batch_buf[i++] = MI_NOOP;
prev parent reply other threads:[~2026-11-27 10:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 10:07 [PATCH i-g-t v2] tests/intel/i915_pm_rpm: Print reason for skipping PC8 subtest Hiresh Kumar Yadav
2026-11-11 15:41 ` ✓ i915.CI.BAT: success for tests/intel/i915_pm_rpm: Print reason for skipping PC8 subtest (rev3) Patchwork
2026-11-11 15:41 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-12 0:06 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-11-12 7:31 ` ✗ i915.CI.Full: " Patchwork
2026-11-27 10:23 ` Anirban, Sk [this message]
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=7b654314-63fc-4d4e-af26-ec5c8b103701@intel.com \
--to=sk.anirban@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=badal.nilawar@intel.com \
--cc=hiresh.kumar.yadav@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=karthik.poosa@intel.com \
--cc=mallesh.koujalagi@intel.com \
--cc=raag.jadav@intel.com \
--cc=riana.tauro@intel.com \
--cc=soham.purkait@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