From: Pravalika Gurram <pravalika.gurram@intel.com>
To: igt-dev@lists.freedesktop.org, kamil.konieczny@linux.intel.com
Cc: Pravalika Gurram <pravalika.gurram@intel.com>,
Jonathan Cavitt <jonathan.cavitt@intel.com>
Subject: [PATCH v3] tests/intel/xe_wedged: Read wedged_mode debugfs
Date: Mon, 20 Jan 2025 18:39:27 +0530 [thread overview]
Message-ID: <20250120130927.65919-1-pravalika.gurram@intel.com> (raw)
Added support to read the wedged_mode debugfs
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: Pravalika Gurram <pravalika.gurram@intel.com>
---
tests/intel/xe_wedged.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tests/intel/xe_wedged.c b/tests/intel/xe_wedged.c
index 613d571b4..22ff75367 100644
--- a/tests/intel/xe_wedged.c
+++ b/tests/intel/xe_wedged.c
@@ -203,6 +203,10 @@ simple_hang(int fd, struct drm_xe_sync *sync)
* SUBTEST: wedged-mode-toggle
* Description: Test wedged.mode=1 after testing wedged.mode=2
*/
+/**
+ * SUBTEST: basic-wedged-read
+ * Description: Read wedged_mode debugfs
+ */
igt_main
{
struct drm_xe_engine_class_instance *hwe;
@@ -279,6 +283,15 @@ igt_main
igt_assert_eq(simple_ioctl(fd), 0);
}
+ igt_subtest_f("basic-wedged-read") {
+ char str[150] = {0};
+
+ igt_require(igt_debugfs_exists(fd, "wedged_mode", O_RDONLY));
+
+ igt_debugfs_read(fd, "wedged_mode", str);
+ igt_assert_f(str[0] != '\0', "Failed to read wedged_mode from debugfs!\n");
+ }
+
igt_fixture {
if (igt_debugfs_exists(fd, "fail_gt_reset/probability", O_RDWR)) {
igt_debugfs_write(fd, "fail_gt_reset/probability", "0");
--
2.34.1
next reply other threads:[~2025-01-20 12:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 13:09 Pravalika Gurram [this message]
2025-01-20 14:53 ` ✓ i915.CI.BAT: success for tests/intel/xe_wedged: Read wedged_mode debugfs Patchwork
2025-01-20 15:41 ` ✓ Xe.CI.BAT: " Patchwork
2025-01-20 18:40 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-21 12:29 ` Gurram, Pravalika
2025-01-21 8:58 ` ✗ i915.CI.Full: " Patchwork
2025-01-21 12:45 ` Gurram, Pravalika
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=20250120130927.65919-1-pravalika.gurram@intel.com \
--to=pravalika.gurram@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jonathan.cavitt@intel.com \
--cc=kamil.konieczny@linux.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