Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [i-g-t v4 0/4] xe: Test scratch page under fault mode
@ 2025-02-21  0:41 Oak Zeng
  2025-02-21  0:41 ` [i-g-t v4 1/4] lib/xe: Fix a comment error Oak Zeng
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Oak Zeng @ 2025-02-21  0:41 UTC (permalink / raw)
  To: igt-dev
  Cc: Thomas.Hellstrom, matthew.brost, kamil.konieczny,
	zbigniew.kempczynski, ashutosh.dixit, juha-pekka.heikkila,
	rodrigo.vivi

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                 | 228 +++++++++++++++++++++++++++++++
 lib/xe/xe_util.h                 |  39 ++++++
 tests/intel/xe_exec_fault_mode.c |  69 ++++++++++
 tests/intel/xe_vm.c              |  47 +++++--
 5 files changed, 369 insertions(+), 16 deletions(-)

-- 
2.26.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-21  7:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21  0:41 [i-g-t v4 0/4] xe: Test scratch page under fault mode Oak Zeng
2025-02-21  0:41 ` [i-g-t v4 1/4] lib/xe: Fix a comment error Oak Zeng
2025-02-21  0:42 ` [i-g-t v4 2/4] lib/xe/xe_util: Introduce helper functions Oak Zeng
2025-02-21  7:01   ` Zbigniew Kempczyński
2025-02-21  0:42 ` [i-g-t v4 3/4] tests/intel/xe_vm: Exclude invalid_flags tests from LNL and BMG Oak Zeng
2025-02-21  0:42 ` [i-g-t v4 4/4] tests/intel/xe_exec_fault_mode: Test scratch page under fault mode Oak Zeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox