[PATCH i-g-t 0/3] Add sysfs attribute checks for gt_freq and pm_residency tests

Marcin Bernatowicz marcin.bernatowicz at linux.intel.com
Tue Jul 30 16:42:29 UTC 2024


This patch series introduces necessary attribute checks to ensure that tests
are only executed when specific sysfs attributes are present. This prevents
test failures on Virtual Function (VF) devices where these attributes might
be missing.

Marcin Bernatowicz (3):
  lib/igt_sysfs: Add xe_sysfs_gt_has_attr to check attribute existence
  tests/intel/xe_gt_freq: Skip test if 'freq0' attribute is missing
  tests/intel/xe_pm_residency: Skip test if 'gtidle' attribute is
    missing

 lib/igt_sysfs.c               | 25 +++++++++++++++++++++++++
 lib/igt_sysfs.h               |  1 +
 tests/intel/xe_gt_freq.c      |  1 +
 tests/intel/xe_pm_residency.c |  2 ++
 4 files changed, 29 insertions(+)

-- 
2.31.1



More information about the igt-dev mailing list