From: "Belgaumkar, Vinay" <vinay.belgaumkar@intel.com>
To: Badal Nilawar <badal.nilawar@intel.com>, <igt-dev@lists.freedesktop.org>
Cc: matthew.d.roper@intel.com, rodrigo.vivi@intel.com
Subject: Re: [PATCH i-g-t 2/2] tests/intel/xe_gt_freq: Skip GuC PC tests if GuC PC not supported
Date: Fri, 19 Jan 2024 17:26:53 -0800 [thread overview]
Message-ID: <e89a67b6-d35c-4e17-b272-9d8f9cbefd8d@intel.com> (raw)
In-Reply-To: <20240119170448.1889777-3-badal.nilawar@intel.com>
On 1/19/2024 9:04 AM, Badal Nilawar wrote:
> Skip GuC PC tests if platform does not support SLPC.
>
> v2: Use scalable approach (Anshuman)
>
> Fixes: acaaca0bf317 ("tests/xe: Add Xe IGT tests")
> Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
> ---
> tests/intel/xe_gt_freq.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c
> index bf63e4298..6c4fc81ae 100644
> --- a/tests/intel/xe_gt_freq.c
> +++ b/tests/intel/xe_gt_freq.c
> @@ -319,6 +319,11 @@ static void test_reset(int fd, int gt_id, int cycles)
> }
> }
>
> +static bool xe_is_slpc_enabled(int drm_fd)
> +{
> + return igt_debugfs_search(drm_fd, "info", "skip_guc_pc yes");
> +}
the function is called is_slpc_enabled() but returns false when it is
indeed enabled (skip_guc_pc = false). Might be better to search for
"skip_guc_pc false" instead?
Thanks,
Vinay.
> +
> igt_main
> {
> int fd;
> @@ -329,6 +334,9 @@ igt_main
> igt_fixture {
> fd = drm_open_driver(DRIVER_XE);
>
> + igt_skip_on_f(!xe_is_slpc_enabled(fd),
> + "GuC PC tests are not supported when SLPC is disabled\n");
> +
> /* The defaults are the same. Stashing the gt0 is enough */
> stash_min = get_freq(fd, 0, "min");
> stash_max = get_freq(fd, 0, "max");
next prev parent reply other threads:[~2024-01-20 1:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-19 17:04 [PATCH i-g-t 0/2] Couple of fixes to guc_pc tests Badal Nilawar
2024-01-19 17:04 ` [PATCH i-g-t 1/2] tests/intel/xe_gt_freq: Fix freq_low_max test Badal Nilawar
2024-01-20 0:56 ` Belgaumkar, Vinay
2024-01-19 17:04 ` [PATCH i-g-t 2/2] tests/intel/xe_gt_freq: Skip GuC PC tests if GuC PC not supported Badal Nilawar
2024-01-20 1:26 ` Belgaumkar, Vinay [this message]
2024-01-19 18:18 ` ✓ CI.xeBAT: success for Couple of fixes to guc_pc tests (rev3) Patchwork
2024-01-19 18:31 ` ✗ Fi.CI.BAT: 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=e89a67b6-d35c-4e17-b272-9d8f9cbefd8d@intel.com \
--to=vinay.belgaumkar@intel.com \
--cc=badal.nilawar@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--cc=rodrigo.vivi@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