[i-g-t v2 0/4] xe: Test scratch page under fault mode

Oak Zeng oak.zeng at intel.com
Fri Feb 14 21:59:16 UTC 2025


This series intoduces a subtest for Xe to test scratch page under fault
mode.

It also includes some helper functions to make the test easier.

Today most of igt tests use one single function to perform multiple
subtests. flags are used to control the behavior of the test. While
this is a good way to write efficient tests, it also makes the test
difficult to maintain, especially when we add more and more subtests
into single test function.

This patch series introduces some helper functions with which we can
write more readable tests. This is illustrated in patch 4 of this series.

Note the intention of this patch series is not to replace the existing
igt tests, but to provide an alternative way to write simple tests.

Bommu Krishnaiah (1):
  lib/xe/xe_util: Introduce helper functions

Oak Zeng (3):
  lib/xe: Fix a comment error
  tests/intel/xe_vm: Exclude invalid_flags tests from LNL and BMG
  tests/intel/xe_exec_fault_mode: Test scratch page under fault mode

 lib/xe/xe_ioctl.c                |   2 +-
 lib/xe/xe_util.c                 | 201 +++++++++++++++++++++++++++++++
 lib/xe/xe_util.h                 |  33 +++++
 tests/intel/xe_exec_fault_mode.c |  64 ++++++++++
 tests/intel/xe_vm.c              |  47 +++++---
 5 files changed, 331 insertions(+), 16 deletions(-)

-- 
2.26.3



More information about the igt-dev mailing list