Skip to content

tests/intel/intel_sysfs_debugfs: Unify sysfs and debugfs testing

Peter Senna Tschudin igt-dev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 4 repliesIn review
  2. v31 patch 1 replySuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch0 repliesSuperseded

Changes in v4 from the cover letter

- remove the 5 seconds timeout to read each sysfs and debugfs file

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1tests/intel/intel_sysfs_debugfs Unify sysfs and debugfs testingtests/intel/intel_sysfs_debugfs.c tests/meson.build+499 -00 replies

Reviews trailers per patch

The patch has no Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRodrigo Vivi
SeriesR-b
1/1

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 i-g-t 0/1] tests/intel/intel_sysfs_debugfs: Unify sysfs and debugfs testing

The existing debugfs_test scans and reads relevant sysfs and debugfs files, but it is limited to i915. Meanwhile, xe_debugfs.c provides similar functionality for Xe but has two key gaps:
- It lacks sysfs file testing.
- It does not attempt to read all debugfs files.

This patch introduces intel_sysfs_debugfs, unifying both tests into a single framework that ensures comprehensive coverage for both i915 and Xe.

Follow-up improvements

Once this patch is merged, I will submit a follow-up to:
- Remove the redundant hwmon-basic test from debugfs_test, as intel_hwmon already provides full coverage for i915 and Xe.
- Remove both debugfs_test and xe_debugfs.

The removal of existing tests impacts external test lists, requiring updates that take time. By first addressing the test gap, we ensure complete coverage while minimizing disruption. The follow-up series will then focus on cleanup for improving long-term maintainability.

v4:
- remove the 5 seconds timeout to read each sysfs and debugfs file

v3:
- rename test to intel_sysfs_debugfs
- fix copy paste error on commit message
- expand Cc list

v2:
- renamed xe-specific functions with the xe_ prefix
- created two igt_subtest_groups: one for i915 and another for Xe
- prefixed each test with either i915 or xe

Peter Senna Tschudin (1):
tests/intel/intel_sysfs_debugfs Unify sysfs and debugfs testing

 tests/intel/intel_sysfs_debugfs.c | 498 ++++++++++++++++++++++++++++++
 tests/meson.build                 |   1 +
 2 files changed, 499 insertions(+)
 create mode 100644 tests/intel/intel_sysfs_debugfs.c
Signature · 1 line
2.43.0