Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>,
	intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 1/4] drm/xe/uc: Prepare uc_fw_version for storing the VF ABI version
Date: Thu, 29 May 2025 22:35:10 +0200	[thread overview]
Message-ID: <4e0e59e2-06d6-4d79-9aa2-6b78f039e5f1@intel.com> (raw)
In-Reply-To: <20250528234229.4185039-7-daniele.ceraolospurio@intel.com>



On 29.05.2025 01:42, Daniele Ceraolo Spurio wrote:
> The VF ABI version has a branch field, so to store it inside the
> uc_fw_version we need to add a new branch variable to the latter.
> Existing code needs to be updated to handle the fact that we have the
> new field.
> 
> v2: split out to its own patch (Michal)
> 
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_guc_engine_activity.c | 2 +-
>  drivers/gpu/drm/xe/xe_uc_fw_types.h         | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_guc_engine_activity.c b/drivers/gpu/drm/xe/xe_guc_engine_activity.c
> index 0fb48f8f05d8..92e1f9f41b8c 100644
> --- a/drivers/gpu/drm/xe/xe_guc_engine_activity.c
> +++ b/drivers/gpu/drm/xe/xe_guc_engine_activity.c
> @@ -124,7 +124,7 @@ static void free_engine_activity_buffers(struct engine_activity_buffer *buffer)
>  static bool is_engine_activity_supported(struct xe_guc *guc)
>  {
>  	struct xe_uc_fw_version *version = &guc->fw.versions.found[XE_UC_FW_VER_COMPATIBILITY];
> -	struct xe_uc_fw_version required = { 1, 14, 1 };
> +	struct xe_uc_fw_version required = { .major = 1, .minor = 14, .patch = 1 };
>  	struct xe_gt *gt = guc_to_gt(guc);
>  
>  	if (IS_SRIOV_VF(gt_to_xe(gt))) {
> diff --git a/drivers/gpu/drm/xe/xe_uc_fw_types.h b/drivers/gpu/drm/xe/xe_uc_fw_types.h
> index ad3b35a0e6eb..914026015019 100644
> --- a/drivers/gpu/drm/xe/xe_uc_fw_types.h
> +++ b/drivers/gpu/drm/xe/xe_uc_fw_types.h
> @@ -65,6 +65,8 @@ enum xe_uc_fw_type {
>   * struct xe_uc_fw_version - Version for XE micro controller firmware
>   */
>  struct xe_uc_fw_version {
> +	/** @branch: branch version of the FW (not always available) */
> +	u16 branch;
>  	/** @major: major version of the FW */
>  	u16 major;
>  	/** @minor: minor version of the FW */


  reply	other threads:[~2025-05-29 20:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-28 23:42 [PATCH v2 0/4] Fixes for VF GuC version Daniele Ceraolo Spurio
2025-05-28 23:42 ` [PATCH v2 1/4] drm/xe/uc: Prepare uc_fw_version for storing the VF ABI version Daniele Ceraolo Spurio
2025-05-29 20:35   ` Michal Wajdeczko [this message]
2025-05-28 23:42 ` [PATCH v2 2/4] drm/xe/vf: Boostrap all GTs immediately after MMIO init Daniele Ceraolo Spurio
2025-05-29 20:49   ` Michal Wajdeczko
2025-05-28 23:42 ` [PATCH v2 3/4] drm/xe/vf: Use uc_fw_version to store the negotiated GuC ABI Daniele Ceraolo Spurio
2025-05-28 23:42 ` [PATCH v2 4/4] drm/xe/vf: Store the GuC FW info in guc->fw Daniele Ceraolo Spurio
2025-05-30 13:55   ` Michal Wajdeczko
2025-05-28 23:48 ` ✓ CI.Patch_applied: success for Fixes for VF GuC version Patchwork
2025-05-28 23:48 ` ✗ CI.checkpatch: warning " Patchwork
2025-05-28 23:50 ` ✓ CI.KUnit: success " Patchwork
2025-05-29  0:00 ` ✓ CI.Build: " Patchwork
2025-05-29  0:03 ` ✓ CI.Hooks: " Patchwork
2025-05-29  0:04 ` ✓ CI.checksparse: " Patchwork
2025-05-29  0:49 ` ✓ Xe.CI.BAT: " Patchwork
2025-05-29  6:21 ` ✓ Xe.CI.Full: " 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=4e0e59e2-06d6-4d79-9aa2-6b78f039e5f1@intel.com \
    --to=michal.wajdeczko@intel.com \
    --cc=daniele.ceraolospurio@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