Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
To: <igt-dev@lists.freedesktop.org>
Cc: Sebastian Brzezinka <sebastian.brzezinka@intel.com>,
	<kamil.konieczny@linux.intel.com>, <krzysztof.karas@intel.com>,
	<zbigniew.kempczynski@intel.com>, <x.wang@intel.com>
Subject: [PATCH i-g-t v6 0/2] tools/igt_power: fix Xe crash via drmtest path helpers
Date: Tue, 2 Jun 2026 13:50:56 +0200	[thread overview]
Message-ID: <cover.1780397630.git.sebastian.brzezinka@intel.com> (raw)

v6:
- shorten commit message for drm_open_driver_path()
- update doc to mention DRM_IOCTL_VERSION check instead of xe_device cache
- split combined __get_drm_device_name()/name[0] condition into separate
  checks using goto err pattern

v5:
- rename __drm_open_driver_path() to drm_open_driver_path() since
  xe_device_get() internally uses igt_assert(), making the __ no-assert
  prefix semantically incorrect
- add name[0] != 0 check after __get_drm_device_name() to guard against
  an empty driver name being treated as a valid DRM device

v4:
- rename drm_open_driver_path to __drm_open_driver_path (no asserts/requires)
- add DRM_IOCTL_VERSION check to verify fd is a DRM device before proceeding
- split the single patch into two: lib helper addition and igt_power

v3:
- remove redundant if (fd >= 0) guards on both close call sites

v2:
- move Xe cache setup/teardown out of igt_power
- add drm_open_driver_path() and use __drm_close_driver()
- drop the direct xe/xe_query dependency from igt_power

Sebastian Brzezinka (2):
  lib/drmtest: add drm_open_driver_path()
  tools/igt_power: initialize xe_device cache

 lib/drmtest.c     | 35 +++++++++++++++++++++++++++++++++++
 lib/drmtest.h     |  1 +
 tools/igt_power.c |  6 +++---
 3 files changed, 39 insertions(+), 3 deletions(-)

-- 
2.53.0


             reply	other threads:[~2026-06-02 11:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02 11:50 Sebastian Brzezinka [this message]
2026-06-02 11:50 ` [PATCH v6 1/2] lib/drmtest: add drm_open_driver_path() Sebastian Brzezinka
2026-06-02 14:00   ` Kamil Konieczny
2026-06-03  8:41   ` Krzysztof Karas
2026-06-02 11:50 ` [PATCH v6 2/2] tools/igt_power: initialize xe_device cache Sebastian Brzezinka
2026-06-03  8:42   ` Krzysztof Karas
2026-06-02 15:30 ` ✓ Xe.CI.BAT: success for tools/igt_power: fix Xe crash via drmtest path helpers Patchwork
2026-06-02 15:41 ` ✓ i915.CI.BAT: " Patchwork
2026-06-02 23:01 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-11 11:11   ` Sebastian Brzezinka
2026-06-03  2:48 ` ✗ i915.CI.Full: " Patchwork
2026-06-03  7:49   ` Sebastian Brzezinka

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=cover.1780397630.git.sebastian.brzezinka@intel.com \
    --to=sebastian.brzezinka@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=krzysztof.karas@intel.com \
    --cc=x.wang@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