All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: riana.tauro@intel.com, rodrigo.vivi@intel.com,
	kamil.konieczny@linux.intel.com, jonathan.cavitt@intel.com,
	lukasz.laguna@intel.com, jakub1.kolakowski@intel.com
Subject: [PATCH v2 i-g-t 2/3] tests/intel/xe_gt_freq: Skip test if 'freq0' node is missing
Date: Thu,  1 Aug 2024 12:27:47 +0200	[thread overview]
Message-ID: <20240801102748.487160-3-marcin.bernatowicz@linux.intel.com> (raw)
In-Reply-To: <20240801102748.487160-1-marcin.bernatowicz@linux.intel.com>

Add igt_require check for 'freq0' node to skip frequency tests
on VF devices where this node is not present, preventing test
failure.

v2: Use "node" instead of "attribute" for more accuracy

Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
---
 tests/intel/xe_gt_freq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c
index c9d59508b..397007ebe 100644
--- a/tests/intel/xe_gt_freq.c
+++ b/tests/intel/xe_gt_freq.c
@@ -437,6 +437,7 @@ igt_main
 	igt_fixture {
 		fd = drm_open_driver(DRIVER_XE);
 
+		igt_require(xe_sysfs_gt_has_node(fd, 0, "freq0"));
 		/* The defaults are the same. Stashing the gt0 is enough */
 		stash_min = get_freq(fd, 0, "min");
 		stash_max = get_freq(fd, 0, "max");
-- 
2.31.1


  parent reply	other threads:[~2024-08-01 10:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30 16:42 [PATCH i-g-t 0/3] Add sysfs attribute checks for gt_freq and pm_residency tests Marcin Bernatowicz
2024-07-30 16:42 ` [PATCH i-g-t 1/3] lib/igt_sysfs: Add xe_sysfs_gt_has_attr to check attribute existence Marcin Bernatowicz
2024-07-30 19:51   ` Cavitt, Jonathan
2024-07-31 18:00   ` Kamil Konieczny
2024-08-01  9:10     ` Bernatowicz, Marcin
2024-07-30 16:42 ` [PATCH i-g-t 2/3] tests/intel/xe_gt_freq: Skip test if 'freq0' attribute is missing Marcin Bernatowicz
2024-07-30 19:51   ` Cavitt, Jonathan
2024-07-30 16:42 ` [PATCH i-g-t 3/3] tests/intel/xe_pm_residency: Skip test if 'gtidle' " Marcin Bernatowicz
2024-07-30 19:54   ` Cavitt, Jonathan
2024-07-30 17:23 ` ✓ CI.xeBAT: success for Add sysfs attribute checks for gt_freq and pm_residency tests Patchwork
2024-07-30 17:36 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-07-30 18:39 ` ✗ CI.xeFULL: " Patchwork
2024-08-01 10:27 ` [PATCH v2 i-g-t 0/3] Add sysfs node " Marcin Bernatowicz
2024-08-01 10:27   ` [PATCH v2 i-g-t 1/3] lib/igt_sysfs: Add xe_sysfs_gt_has_node to check node existence Marcin Bernatowicz
2024-08-01 10:27   ` Marcin Bernatowicz [this message]
2024-08-01 10:27   ` [PATCH v2 i-g-t 3/3] tests/intel/xe_pm_residency: Skip test if 'gtidle' node is missing Marcin Bernatowicz
  -- strict thread matches above, loose matches on Subject: below --
2024-08-01 14:38 [PATCH v2 i-g-t 0/3] Add sysfs node checks for gt_freq and pm_residency tests Marcin Bernatowicz
2024-08-01 14:38 ` [PATCH v2 i-g-t 2/3] tests/intel/xe_gt_freq: Skip test if 'freq0' node is missing Marcin Bernatowicz

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=20240801102748.487160-3-marcin.bernatowicz@linux.intel.com \
    --to=marcin.bernatowicz@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jakub1.kolakowski@intel.com \
    --cc=jonathan.cavitt@intel.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=lukasz.laguna@intel.com \
    --cc=riana.tauro@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.