[PATCH i-g-t 0/1] tests/intel/intel_kernelfs: Unify sysfs and debugfs testing
Peter Senna Tschudin
peter.senna at linux.intel.com
Sat Mar 22 12:56:47 UTC 2025
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_kernelfs, 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.
Cc: kamil.konieczny at linux.intel.com
Cc: rodrigo.vivi at intel.com
Cc: katarzyna.piecielska at intel.com
Peter Senna Tschudin (1):
tests/intel/intel_kernelfs: Unify sysfs and debugfs testing
tests/intel/intel_kernelfs.c | 500 +++++++++++++++++++++++++++++++++++
tests/meson.build | 1 +
2 files changed, 501 insertions(+)
create mode 100644 tests/intel/intel_kernelfs.c
--
2.34.1
More information about the igt-dev
mailing list