From: janga.rahul.kumar@intel.com
To: igt-dev@lists.freedesktop.org, ramadevi.gandi@intel.com,
janga.rahul.kumar@intel.com
Subject: [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs : Check tile_count info
Date: Thu, 14 Sep 2023 22:23:08 +0530 [thread overview]
Message-ID: <20230914165308.434969-1-janga.rahul.kumar@intel.com> (raw)
From: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
Check correctness of tile_count info.
Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
---
tests/intel/xe_debugfs.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/intel/xe_debugfs.c b/tests/intel/xe_debugfs.c
index 88b51dbd4..2e752267c 100644
--- a/tests/intel/xe_debugfs.c
+++ b/tests/intel/xe_debugfs.c
@@ -13,7 +13,7 @@
*/
#include "igt.h"
-
+#include "igt_sysfs.h"
#include "xe_drm.h"
#include "xe/xe_ioctl.h"
#include "xe/xe_query.h"
@@ -117,6 +117,9 @@ test_base(int fd, struct drm_xe_query_config *config)
igt_assert(igt_debugfs_search(fd, "info", reference));
}
+ sprintf(reference, "tile_count %d", xe_sysfs_get_num_tiles(fd));
+ igt_assert(igt_debugfs_search(fd, "info", reference));
+
igt_assert(igt_debugfs_exists(fd, "gt0", O_RDONLY));
if (config->info[XE_QUERY_CONFIG_GT_COUNT] > 1)
igt_assert(igt_debugfs_exists(fd, "gt1", O_RDONLY));
--
2.25.1
next reply other threads:[~2023-09-14 16:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-14 16:53 janga.rahul.kumar [this message]
2023-09-14 18:14 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/intel/xe_debugfs : Check tile_count info Patchwork
2023-09-14 18:14 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-09-14 23:47 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2023-09-15 13:26 [igt-dev] [PATCH i-g-t] " janga.rahul.kumar
2023-09-15 18:19 ` Kamil Konieczny
2023-09-22 8:55 [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs: " janga.rahul.kumar
2023-09-22 10:13 ` Ch, Sai Gowtham
2023-09-22 10:49 ` Kamil Konieczny
2023-09-22 11:41 janga.rahul.kumar
2023-09-22 11:53 ` Kamil Konieczny
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=20230914165308.434969-1-janga.rahul.kumar@intel.com \
--to=janga.rahul.kumar@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ramadevi.gandi@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