Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/xe/xe_huc_copy: check debugfs for huc running
@ 2023-04-12 21:05 Matt Atwood
  2023-04-12 21:44 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  2023-04-12 21:56 ` [igt-dev] [PATCH i-g-t] " Lucas De Marchi
  0 siblings, 2 replies; 4+ messages in thread
From: Matt Atwood @ 2023-04-12 21:05 UTC (permalink / raw)
  To: igt-dev

Use debugfs to make sure that huc is loaded for xe_huc_copy. This
function will need to be updated for multitile functionality.

Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
---
 tests/xe/xe_huc_copy.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/tests/xe/xe_huc_copy.c b/tests/xe/xe_huc_copy.c
index cd68dbb5ac..58d770106e 100644
--- a/tests/xe/xe_huc_copy.c
+++ b/tests/xe/xe_huc_copy.c
@@ -152,6 +152,22 @@ test_huc_copy(int fd)
 	xe_vm_destroy(fd, vm);
 }
 
+static bool
+is_huc_running(int fd)
+{
+	char buf[4096];
+	char *s;
+
+	/*
+	 * TODO: add multi tile support
+	 */
+
+	igt_debugfs_read(fd, "gt0/uc/huc_info", buf);
+	s = strstr(buf, "RUNNING");
+
+	return s;
+}
+
 igt_main
 {
 	int xe;
@@ -162,7 +178,7 @@ igt_main
 	}
 
 	igt_subtest("huc_copy") {
-		igt_skip_on(!IS_TIGERLAKE(intel_get_drm_devid(xe)));
+		igt_skip_on(!is_huc_running(xe));
 		test_huc_copy(xe);
 	}
 
-- 
2.39.2

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

end of thread, other threads:[~2023-04-12 22:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12 21:05 [igt-dev] [PATCH i-g-t] tests/xe/xe_huc_copy: check debugfs for huc running Matt Atwood
2023-04-12 21:44 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-04-12 21:56 ` [igt-dev] [PATCH i-g-t] " Lucas De Marchi
2023-04-12 22:02   ` Matt Atwood

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