Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_huc_copy: Enhance HuC status check for VF mode
@ 2024-08-12 18:08 Marcin Bernatowicz
  2024-08-12 19:20 ` ✗ CI.xeBAT: failure for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Marcin Bernatowicz @ 2024-08-12 18:08 UTC (permalink / raw)
  To: igt-dev
  Cc: Marcin Bernatowicz, Michal Wajdeczko, Michał Winiarski,
	Lukasz Laguna, Jakub Kolakowski

Extend the is_huc_running function to check for both 'RUNNING' and
'PRELOADED' statuses. This adjustment ensures that firmware loading
by the PF driver is accurately recognized when operating in Virtual
Function (VF) mode.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2466

Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Cc: Michal Wajdeczko <Michal.Wajdeczko@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Cc: Jakub Kolakowski <jakub1.kolakowski@intel.com>
---
 tests/intel/xe_huc_copy.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/intel/xe_huc_copy.c b/tests/intel/xe_huc_copy.c
index 6d8ca0776..c8b5efc7b 100644
--- a/tests/intel/xe_huc_copy.c
+++ b/tests/intel/xe_huc_copy.c
@@ -177,7 +177,6 @@ static bool
 is_huc_running(int fd)
 {
 	char buf[4096];
-	char *s;
 	int gt;
 
 	xe_for_each_gt(fd, gt) {
@@ -185,9 +184,8 @@ is_huc_running(int fd)
 
 		sprintf(name, "gt%d/uc/huc_info", gt);
 		igt_debugfs_read(fd, name, buf);
-		s = strstr(buf, "RUNNING");
 
-		if (s)
+		if (strstr(buf, "RUNNING") || strstr(buf, "PRELOADED"))
 			return true;
 	}
 	return false;
-- 
2.31.1


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

end of thread, other threads:[~2024-08-14  9:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 18:08 [PATCH i-g-t] tests/intel/xe_huc_copy: Enhance HuC status check for VF mode Marcin Bernatowicz
2024-08-12 19:20 ` ✗ CI.xeBAT: failure for " Patchwork
2024-08-13  7:09   ` Bernatowicz, Marcin
2024-08-12 19:22 ` ✓ Fi.CI.BAT: success " Patchwork
2024-08-13  1:37 ` ✗ CI.xeFULL: failure " Patchwork
2024-08-13  7:13   ` Bernatowicz, Marcin
2024-08-13  6:46 ` ✗ Fi.CI.IGT: " Patchwork
2024-08-13  7:11   ` Bernatowicz, Marcin
2024-08-14  9:46 ` [PATCH i-g-t] " Adam Miszczak

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