Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Miszczak <adam.miszczak@linux.intel.com>
To: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>,
	igt-dev@lists.freedesktop.org
Cc: "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: Re: [PATCH i-g-t] tests/intel/xe_huc_copy: Enhance HuC status check for VF mode
Date: Wed, 14 Aug 2024 11:46:49 +0200	[thread overview]
Message-ID: <04aae6bc-3b9a-4cfc-bbdf-f2ce9a7f311d@linux.intel.com> (raw)
In-Reply-To: <20240812180812.1310155-1-marcin.bernatowicz@linux.intel.com>

On 12.08.2024 20:08, Marcin Bernatowicz wrote:
> 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;

LGTM,
Acked-by: Adam Miszczak <adam.miszczak@linux.intel.com>

>   	}
>   	return false;

      parent reply	other threads:[~2024-08-14  9:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Adam Miszczak [this message]

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=04aae6bc-3b9a-4cfc-bbdf-f2ce9a7f311d@linux.intel.com \
    --to=adam.miszczak@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=marcin.bernatowicz@linux.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