From: Pravalika Gurram <pravalika.gurram@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: peter.senna@linux.intel.com, matthew.brost@intel.com,
Pravalika Gurram <pravalika.gurram@intel.com>
Subject: [PATCH v2] tests/intel/xe_debugfs: Extend gt test to check few debugfs entries
Date: Thu, 19 Dec 2024 09:26:09 +0530 [thread overview]
Message-ID: <20241219035609.680347-1-pravalika.gurram@intel.com> (raw)
Read and dump below debugfs entries.
ggtt
register-save-restore
workarounds
default_lrc_rcs
default_lrc_ccs
default_lrc_bcs
default_lrc_vcs
default_lrc_vecs
hwconfig
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Pravalika Gurram <pravalika.gurram@intel.com>
---
tests/intel/xe_debugfs.c | 50 ++++++++++++----------------------------
1 file changed, 15 insertions(+), 35 deletions(-)
diff --git a/tests/intel/xe_debugfs.c b/tests/intel/xe_debugfs.c
index 700575031..a31de41a4 100644
--- a/tests/intel/xe_debugfs.c
+++ b/tests/intel/xe_debugfs.c
@@ -162,6 +162,16 @@ test_gt(int fd, int gt_id)
"pat",
"mocs",
// "force_reset"
+ "ggtt",
+ "register-save-restore",
+ "workarounds",
+ "default_lrc_rcs",
+ "default_lrc_ccs",
+ "default_lrc_bcs",
+ "default_lrc_vcs",
+ "default_lrc_vecs",
+ "hwconfig"
+
};
static const char * const expected_files_uc[] = {
"huc_info",
@@ -170,41 +180,11 @@ test_gt(int fd, int gt_id)
// "guc_ct_selftest"
};
- sprintf(name, "gt%d/hw_engines", gt_id);
- igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
- igt_debugfs_dump(fd, name);
-
- sprintf(name, "gt%d/sa_info", gt_id);
- igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
- igt_debugfs_dump(fd, name);
-
- sprintf(name, "gt%d/steering", gt_id);
- igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
- igt_debugfs_dump(fd, name);
-
- sprintf(name, "gt%d/topology", gt_id);
- igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
- igt_debugfs_dump(fd, name);
-
- sprintf(name, "gt%d/pat", gt_id);
- igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
- igt_debugfs_dump(fd, name);
-
- sprintf(name, "gt%d/mocs", gt_id);
- igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
- igt_debugfs_dump(fd, name);
-
- sprintf(name, "gt%d/uc/guc_info", gt_id);
- igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
- igt_debugfs_dump(fd, name);
-
- sprintf(name, "gt%d/uc/huc_info", gt_id);
- igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
- igt_debugfs_dump(fd, name);
-
- sprintf(name, "gt%d/uc/guc_log", gt_id);
- igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
- igt_debugfs_dump(fd, name);
+ for (int i = 0; i < ARRAY_SIZE(expected_files); i++) {
+ sprintf(name, "gt%d/%s", gt_id, expected_files[i]);
+ igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
+ igt_debugfs_dump(fd, name);
+ }
sprintf(name, "/gt%d", gt_id);
validate_entries(fd, name, expected_files, ARRAY_SIZE(expected_files));
--
2.34.1
next reply other threads:[~2024-12-19 3:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-19 3:56 Pravalika Gurram [this message]
2024-12-19 4:55 ` ✓ i915.CI.BAT: success for tests/intel/xe_debugfs: Extend gt test to check few debugfs entries (rev2) Patchwork
2024-12-19 5:06 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-19 5:19 ` [PATCH v2] tests/intel/xe_debugfs: Extend gt test to check few debugfs entries Peter Senna Tschudin
2024-12-19 14:46 ` Lucas De Marchi
2024-12-19 18:22 ` Kamil Konieczny
2024-12-19 23:33 ` Lucas De Marchi
2025-01-09 10:46 ` Gurram, Pravalika
2024-12-19 18:20 ` ✗ i915.CI.Full: failure for tests/intel/xe_debugfs: Extend gt test to check few debugfs entries (rev2) Patchwork
2024-12-20 3:05 ` ✗ 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=20241219035609.680347-1-pravalika.gurram@intel.com \
--to=pravalika.gurram@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=matthew.brost@intel.com \
--cc=peter.senna@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