Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Marcin Bernatowicz" <marcin.bernatowicz@linux.intel.com>,
	"Michal Wajdeczko" <Michal.Wajdeczko@intel.com>,
	"Michał Winiarski" <michal.winiarski@intel.com>,
	"Lukasz Laguna" <lukasz.laguna@intel.com>,
	"Jakub Kolakowski" <jakub1.kolakowski@intel.com>
Subject: [PATCH i-g-t] tests/intel/xe_huc_copy: Enhance HuC status check for VF mode
Date: Mon, 12 Aug 2024 20:08:12 +0200	[thread overview]
Message-ID: <20240812180812.1310155-1-marcin.bernatowicz@linux.intel.com> (raw)

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


             reply	other threads:[~2024-08-12 18:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-12 18:08 Marcin Bernatowicz [this message]
2024-08-12 19:20 ` ✗ CI.xeBAT: failure for tests/intel/xe_huc_copy: Enhance HuC status check for VF mode 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

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=20240812180812.1310155-1-marcin.bernatowicz@linux.intel.com \
    --to=marcin.bernatowicz@linux.intel.com \
    --cc=Michal.Wajdeczko@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jakub1.kolakowski@intel.com \
    --cc=lukasz.laguna@intel.com \
    --cc=michal.winiarski@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