Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Oak Zeng <oak.zeng@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Thomas.Hellstrom@linux.intel.com, matthew.brost@intel.com,
	kamil.konieczny@intel.com, zbigniew.kempczynski@intel.com,
	ashutosh.dixit@intel.com, juha-pekka.heikkila@intel.com,
	rodrigo.vivi@intel.com
Subject: [i-g-t v2 0/4] xe: Test scratch page under fault mode
Date: Fri, 14 Feb 2025 16:59:16 -0500	[thread overview]
Message-ID: <20250214215920.282425-1-oak.zeng@intel.com> (raw)

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


             reply	other threads:[~2025-02-14 21:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-14 21:59 Oak Zeng [this message]
2025-02-14 21:59 ` [i-g-t v2 1/4] lib/xe: Fix a comment error Oak Zeng
2025-02-14 21:59 ` [i-g-t v2 2/4] lib/xe/xe_util: Introduce helper functions Oak Zeng
2025-02-18  6:58   ` Zbigniew Kempczyński
2025-02-18 16:38     ` Zeng, Oak
2025-02-20  5:41       ` Zbigniew Kempczyński
2025-02-14 21:59 ` [i-g-t v2 3/4] tests/intel/xe_vm: Exclude invalid_flags tests from LNL and BMG Oak Zeng
2025-02-14 21:59 ` [i-g-t v2 4/4] tests/intel/xe_exec_fault_mode: Test scratch page under fault mode Oak Zeng
2025-02-14 23:52 ` ✗ GitLab.Pipeline: warning for xe: " Patchwork
2025-02-15  0:19 ` ✓ i915.CI.BAT: success " Patchwork
2025-02-15  0:51 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-15  4:09 ` ✗ i915.CI.Full: failure " Patchwork
2025-02-16  5:11 ` ✗ Xe.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250214215920.282425-1-oak.zeng@intel.com \
    --to=oak.zeng@intel.com \
    --cc=Thomas.Hellstrom@linux.intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=juha-pekka.heikkila@intel.com \
    --cc=kamil.konieczny@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=zbigniew.kempczynski@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox