Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs : Check tile_count info
@ 2023-09-14 16:53 janga.rahul.kumar
  2023-09-14 18:14 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: janga.rahul.kumar @ 2023-09-14 16:53 UTC (permalink / raw)
  To: igt-dev, ramadevi.gandi, janga.rahul.kumar

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

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs : Check tile_count info
@ 2023-09-15 13:26 janga.rahul.kumar
  2023-09-15 18:19 ` Kamil Konieczny
  0 siblings, 1 reply; 11+ messages in thread
From: janga.rahul.kumar @ 2023-09-15 13:26 UTC (permalink / raw)
  To: igt-dev, ramadevi.gandi, janga.rahul.kumar; +Cc: sai.gowtham.ch

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

Check correctness of tile_count info.

Cc: 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..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

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs: Check tile_count info
@ 2023-09-22  8:55 janga.rahul.kumar
  2023-09-22 10:13 ` Ch, Sai Gowtham
  2023-09-22 10:49 ` Kamil Konieczny
  0 siblings, 2 replies; 11+ messages in thread
From: janga.rahul.kumar @ 2023-09-22  8:55 UTC (permalink / raw)
  To: igt-dev, ramadevi.gandi, janga.rahul.kumar; +Cc: sai.gowtham.ch

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

Check correctness of tile_count info.

v2: Use snprintf.(kamil)

Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: 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..71b93b031 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, "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

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs: Check tile_count info
@ 2023-09-22 11:41 janga.rahul.kumar
  2023-09-22 11:53 ` Kamil Konieczny
  0 siblings, 1 reply; 11+ messages in thread
From: janga.rahul.kumar @ 2023-09-22 11:41 UTC (permalink / raw)
  To: igt-dev, ramadevi.gandi, janga.rahul.kumar; +Cc: sai.gowtham.ch

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

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-09-22 11:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14 16:53 [igt-dev] [PATCH i-g-t] tests/intel/xe_debugfs : Check tile_count info janga.rahul.kumar
2023-09-14 18:14 ` [igt-dev] ✓ Fi.CI.BAT: success for " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox