From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [i-g-t V4 1/6] lib: Use i915 namespace for XE debugfs
Date: Wed, 19 Apr 2023 16:52:38 +0530 [thread overview]
Message-ID: <20230419112243.1719789-2-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20230419112243.1719789-1-bhanuprakash.modem@intel.com>
As of now XE is going to use i915 namespace for their debugfs.
Example: i915_current_bpc is applicable for both i915 & XE
V2: - Rebase
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Reviewed-by: Karthik B S <karthik.b.s@intel.com>
---
lib/igt_kms.c | 4 ++--
lib/igt_psr.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index a80b26a84..e085e234a 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -5706,7 +5706,7 @@ unsigned int igt_get_pipe_current_bpc(int drmfd, enum pipe pipe)
fd = igt_debugfs_pipe_dir(drmfd, pipe, O_RDONLY);
igt_assert(fd >= 0);
- if (is_i915_device(drmfd))
+ if (is_intel_device(drmfd))
strcpy(debugfs_name, "i915_current_bpc");
else if (is_amdgpu_device(drmfd))
strcpy(debugfs_name, "amdgpu_current_bpc");
@@ -5828,7 +5828,7 @@ int igt_get_max_dotclock(int fd)
char *s;
int dir, res, max_dotclock = 0;
- if (!is_i915_device(fd))
+ if (!is_intel_device(fd))
return max_dotclock;
dir = igt_debugfs_dir(fd);
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index a2d880312..13f7c567d 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -277,7 +277,7 @@ bool i915_psr2_selective_fetch_check(int drm_fd)
int debugfs_fd;
bool ret;
- if (!is_i915_device(drm_fd))
+ if (!is_intel_device(drm_fd))
return false;
debugfs_fd = igt_debugfs_dir(drm_fd);
@@ -303,7 +303,7 @@ bool i915_psr2_sel_fetch_to_psr1(int drm_fd)
int debugfs_fd;
bool ret = false;
- if (!is_i915_device(drm_fd))
+ if (!is_intel_device(drm_fd))
return ret;
debugfs_fd = igt_debugfs_dir(drm_fd);
--
2.40.0
next prev parent reply other threads:[~2023-04-19 11:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-19 11:22 [igt-dev] [i-g-t V4 0/6] Enable KMS tests in XE BAT Bhanuprakash Modem
2023-04-19 11:22 ` Bhanuprakash Modem [this message]
2023-04-19 11:22 ` [igt-dev] [i-g-t V4 2/6] tests/kms_cursor_legacy: Add XE support Bhanuprakash Modem
2023-04-19 11:22 ` [igt-dev] [i-g-t V4 3/6] tests/kms_flip: " Bhanuprakash Modem
2023-04-19 11:22 ` [igt-dev] [i-g-t V4 4/6] tests/i915/kms_psr: Use linear modifier to create FB Bhanuprakash Modem
2023-04-20 5:04 ` Nautiyal, Ankit K
2023-04-20 5:12 ` Karthik B S
2023-04-20 5:19 ` Modem, Bhanuprakash
2023-04-19 11:22 ` [igt-dev] [i-g-t V4 5/6] tests/i915/kms_psr*: Add XE support Bhanuprakash Modem
2023-04-20 5:08 ` Karthik B S
2023-04-19 11:22 ` [igt-dev] [i-g-t V4 6/6] xe-fast-feedback: Add kms tests to XE BAT Bhanuprakash Modem
2023-04-19 16:52 ` [igt-dev] ✓ Fi.CI.BAT: success for Enable KMS tests in XE BAT (rev5) Patchwork
2023-04-19 20:20 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20230419112243.1719789-2-bhanuprakash.modem@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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