Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Julia Filipchuk <julia.filipchuk@intel.com>
To: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 2/4] drm/xe/gsc: Fix FW status if the firmware is already loaded
Date: Fri, 23 Aug 2024 17:32:14 -0700	[thread overview]
Message-ID: <edd562c1-4791-4b02-8ebc-a7d3a7b38973@intel.com> (raw)
In-Reply-To: <20240813231148.1663731-3-daniele.ceraolospurio@intel.com>

Reviewed-by: Julia Filipchuk <julia.filipchuk@intel.com>

On 8/13/2024 4:11 PM, Daniele Ceraolo Spurio wrote:
> We set the FW status to "TRANSFERRED" after the load completes and to
> "RUNNING"once we're done with proxy init, so do the same if we're trying
> to re-load the FW and it is already loaded.
> 
> Note that there is no difference in driver behavior between the 2
> states, but it's useful to be accurate when we dump the status for
> debug.
> 
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: John Harrison <John.C.Harrison@Intel.com>
> Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_gsc.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_gsc.c b/drivers/gpu/drm/xe/xe_gsc.c
> index 66963e26c574..85a6a65063c4 100644
> --- a/drivers/gpu/drm/xe/xe_gsc.c
> +++ b/drivers/gpu/drm/xe/xe_gsc.c
> @@ -537,7 +537,10 @@ void xe_gsc_load_start(struct xe_gsc *gsc)
>  
>  	/* GSC FW survives GT reset and D3Hot */
>  	if (gsc_fw_is_loaded(gt)) {
> -		xe_uc_fw_change_status(&gsc->fw, XE_UC_FIRMWARE_TRANSFERRED);
> +		if (xe_gsc_proxy_init_done(gsc))
> +			xe_uc_fw_change_status(&gsc->fw, XE_UC_FIRMWARE_RUNNING);
> +		else
> +			xe_uc_fw_change_status(&gsc->fw, XE_UC_FIRMWARE_TRANSFERRED);
>  		return;
>  	}
>  


  reply	other threads:[~2024-08-24  0:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-13 23:11 [PATCH 0/4] drm/xe: fixes and debug improvements for GSC load Daniele Ceraolo Spurio
2024-08-13 23:11 ` [PATCH 1/4] drm/xe/gsc: Do not attempt to load the GSC multiple times Daniele Ceraolo Spurio
2024-08-15 18:24   ` Lucas De Marchi
2024-08-24  0:31   ` Julia Filipchuk
2024-08-13 23:11 ` [PATCH 2/4] drm/xe/gsc: Fix FW status if the firmware is already loaded Daniele Ceraolo Spurio
2024-08-24  0:32   ` Julia Filipchuk [this message]
2024-08-13 23:11 ` [PATCH 3/4] drm/xe/gsc: Track the platform in the compatibility version Daniele Ceraolo Spurio
2024-08-24  0:32   ` Julia Filipchuk
2024-08-13 23:11 ` [PATCH 4/4] drm/xe/gsc: Add debugfs to print GSC info Daniele Ceraolo Spurio
2024-08-24  1:02   ` Julia Filipchuk
2024-08-28 21:25     ` Daniele Ceraolo Spurio
2024-08-13 23:17 ` ✓ CI.Patch_applied: success for drm/xe: fixes and debug improvements for GSC load Patchwork
2024-08-13 23:17 ` ✗ CI.checkpatch: warning " Patchwork
2024-08-13 23:19 ` ✓ CI.KUnit: success " Patchwork
2024-08-13 23:30 ` ✓ CI.Build: " Patchwork
2024-08-13 23:33 ` ✓ CI.Hooks: " Patchwork
2024-08-13 23:34 ` ✓ CI.checksparse: " Patchwork
2024-08-14  0:05 ` ✓ CI.BAT: " Patchwork
2024-08-14  1:10 ` ✗ CI.FULL: failure " Patchwork

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=edd562c1-4791-4b02-8ebc-a7d3a7b38973@intel.com \
    --to=julia.filipchuk@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    /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