Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sobin Thomas <sobin.thomas@intel.com>
To: igt-dev@lists.freedesktop.org, kamil.konieczny@intel.com
Cc: zbigniew.kempczynski@intel.com, Sobin Thomas <sobin.thomas@intel.com>
Subject: [PATCH v6 i-g-t 0/1] tests/intel/xe_compute_preempt: Compute preemption check
Date: Wed, 17 Sep 2025 10:11:04 +0000	[thread overview]
Message-ID: <20250917101105.236457-1-sobin.thomas@intel.com> (raw)

On platforms (like PVC) that do not support walker mid-thread
preemption, running tests in forked threads can lead to inconsistent
states due to igt_skip being called mid-execution. Made changes to
perform kernel preemption check at the beginning of each subtests.
If the GPU version does not support the required features, the
test is skipped gracefully, ensuring consistent behavior across
different platforms.

TODO: Add the kernel for PVC

v2: Fixed review comments to move the compatibility check
    into the igt_fixture. [Priyanka]

v3: Added check for thread group preemption and WMTP.
    Added enum flags for preemption type as per review . [Zbigniew]

v4: Added check for preempt inside __run_intel_compute_kernel_preempt
    Refactored the code.  [priyanka]

v5: Refactor for finding the kernel and out of bound check. [Zbigniew]

v6: Added NULL Check for kernel. [Zbigniew]

Sobin Thomas (1):
  tests/intel/xe_compute_preempt: Compute preemption check

 lib/intel_compute.c              | 104 ++++++++++++++++++++++++-------
 lib/intel_compute.h              |   7 +++
 tests/intel/xe_compute_preempt.c |   6 ++
 3 files changed, 95 insertions(+), 22 deletions(-)

-- 
2.34.1


             reply	other threads:[~2025-09-17 10:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-17 10:11 Sobin Thomas [this message]
2025-09-17 10:11 ` [PATCH v6 i-g-t 1/1] tests/intel/xe_compute_preempt: Compute preemption check Sobin Thomas
2025-09-19  8:19   ` Dandamudi, Priyanka
2025-09-23  5:39     ` Zbigniew Kempczyński
2025-09-18  0:54 ` ✗ Xe.CI.BAT: failure for tests/intel/xe_compute_preempt: Compute preemption check (rev4) Patchwork
2025-09-18  1:14 ` ✓ i915.CI.BAT: success " Patchwork
2025-09-18  6:23 ` ✗ Xe.CI.Full: failure " Patchwork
2025-09-18  9:41 ` ✗ i915.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=20250917101105.236457-1-sobin.thomas@intel.com \
    --to=sobin.thomas@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@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