Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: janga.rahul.kumar@intel.com
To: igt-dev@lists.freedesktop.org, ramadevi.gandi@intel.com,
	janga.rahul.kumar@intel.com
Cc: sai.gowtham.ch@intel.com
Subject: [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs: Check tile_count info
Date: Fri, 22 Sep 2023 17:11:30 +0530	[thread overview]
Message-ID: <20230922114130.820963-1-janga.rahul.kumar@intel.com> (raw)

From: Janga Rahul Kumar <janga.rahul.kumar@intel.com>

Check correctness of tile_count info.

v2: Use snprintf.(kamil)

v3: Add size param. (kamil)

Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Sai Gowtham Ch <sai.gowtham.ch@intel.com>
Reviewed-by: Sai Gowtham Ch <sai.gowtham.ch@intel.com>
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..e5bbb364c 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));
 	}
 
+	snprintf(reference, sizeof(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

             reply	other threads:[~2023-09-22 11:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-22 11:41 janga.rahul.kumar [this message]
2023-09-22 11:53 ` [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs: Check tile_count info Kamil Konieczny
2023-09-22 12:38 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/intel/xe_debugfs: Check tile_count info (rev2) Patchwork
2023-09-22 13:38 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-09-23 13:26 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2023-09-22  8:55 [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs: Check tile_count info janga.rahul.kumar
2023-09-22 10:13 ` Ch, Sai Gowtham
2023-09-22 10:49 ` Kamil Konieczny
2023-09-15 13:26 [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs : " janga.rahul.kumar
2023-09-15 18:19 ` Kamil Konieczny
2023-09-14 16:53 janga.rahul.kumar

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=20230922114130.820963-1-janga.rahul.kumar@intel.com \
    --to=janga.rahul.kumar@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=ramadevi.gandi@intel.com \
    --cc=sai.gowtham.ch@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