From: "Teres Alexis, Alan Previn" <alan.previn.teres.alexis@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Ceraolo Spurio, Daniele" <daniele.ceraolospurio@intel.com>
Cc: "Filipchuk, Julia" <julia.filipchuk@intel.com>
Subject: Re: [PATCH v2 4/6] drm/xe/uc: Support fetching different FW files per-subplatform
Date: Fri, 28 Aug 2026 04:58:16 +0000 [thread overview]
Message-ID: <25c92b16536294f2adaae22c539c066778a6bedd.camel@intel.com> (raw)
In-Reply-To: <20260826171149.708378-5-daniele.ceraolospurio@intel.com>
On Wed, 2026-08-26 at 17:11 +0000, Daniele Ceraolo Spurio wrote:
>
>
alan:[snip]
> diff --git a/drivers/gpu/drm/xe/xe_uc_fw.c b/drivers/gpu/drm/xe/xe_uc_fw.c
> index 3a74acfaf2c7..12fbc25dc6b8 100644
> --- a/drivers/gpu/drm/xe/xe_uc_fw.c
> +++ b/drivers/gpu/drm/xe/xe_uc_fw.c
>
alan:[snip]
> /* for the GSC FW we match the compatibility version and not the release one */
> #define XE_GSC_FIRMWARE_DEFS(fw_def, major_ver) \
> - fw_def(PANTHERLAKE, GT_TYPE_MEDIA, major_ver(xe, gsc, ptl, 105, 1, 0)) \
> - fw_def(LUNARLAKE, GT_TYPE_MEDIA, major_ver(xe, gsc, lnl, 104, 1, 0)) \
> - fw_def(METEORLAKE, GT_TYPE_MEDIA, major_ver(i915, gsc, mtl, 102, 1, 0))
> + fw_def(PANTHERLAKE, SUBPLATFORM_ANY, major_ver(xe, gsc, ptl, 105, 1, 0)) \
> + fw_def(LUNARLAKE, SUBPLATFORM_ANY, major_ver(xe, gsc, lnl, 104, 1, 0)) \
> + fw_def(METEORLAKE, SUBPLATFORM_ANY, major_ver(i915, gsc, mtl, 102, 1, 0))
>
> #define MAKE_FW_PATH(dir__, uc__, shortname__, version__) \
> __stringify(dir__) "/" __stringify(shortname__) "_" __stringify(uc__) version__ ".bin"
> @@ -181,10 +183,19 @@ struct fw_blobs_by_type {
> #define XE_UC_FW_ENTRY(platform__, gt_type__, entry__) \
> { \
> .platform = XE_ ## platform__, \
> + .subplatform = XE_SUBPLATFORM_ANY, \
> .gt_type = XE_ ## gt_type__, \
> entry__, \
> },
>
> +#define XE_GSC_FW_ENTRY(platform__, subplatform__, entry__) \
> + { \
> + .platform = XE_ ## platform__, \
> + .subplatform = XE_ ## subplatform__, \
> + .gt_type = XE_GT_TYPE_MEDIA, \
> + entry__, \
> + },
>
>
I can see we are bifurcating the macros that generate fw_def arrays
for GSC vs the-rest where GSC is always GT_TYPE_MEDIA and allows
explicit sub-platform while the-rest needs explicit GT_TYPE but
is always SUBPLATFORM_ANY.
In the interest of minimal changes and keeping the layout
of our arrays concise, i think this is a good approach.
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
alan:[snip]
next prev parent reply other threads:[~2026-08-28 4:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 17:11 [PATCH v2 0/6] Prepare for WCL GSC FW Daniele Ceraolo Spurio
2026-08-26 17:11 ` [PATCH v2 1/6] drm/xe: Define WCL as a PTL subplatform Daniele Ceraolo Spurio
2026-08-28 3:50 ` Teres Alexis, Alan Previn
2026-08-26 17:11 ` [PATCH v2 2/6] drm/xe/uc: Add FW file fallback support Daniele Ceraolo Spurio
2026-08-28 4:35 ` Teres Alexis, Alan Previn
2026-08-26 17:11 ` [PATCH v2 3/6] drm/xe/uc: mark HuC and GSC as only available on the media GT Daniele Ceraolo Spurio
2026-08-28 4:55 ` Teres Alexis, Alan Previn
2026-08-26 17:11 ` [PATCH v2 4/6] drm/xe/uc: Support fetching different FW files per-subplatform Daniele Ceraolo Spurio
2026-08-28 4:58 ` Teres Alexis, Alan Previn [this message]
2026-08-26 17:11 ` [PATCH v2 5/6] DO NOT MERGE: drm/xe/gsc: define GSC for WCL Daniele Ceraolo Spurio
2026-08-28 3:55 ` Teres Alexis, Alan Previn
2026-08-26 17:11 ` [PATCH v2 6/6] DO NOT MERGE: drm/xe/guc: add a mock newer GuC file for LNL Daniele Ceraolo Spurio
2026-08-26 17:18 ` ✗ CI.checkpatch: warning for Prepare for WCL GSC FW (rev2) Patchwork
2026-08-26 17:19 ` ✓ CI.KUnit: success " Patchwork
2026-08-26 17:56 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-26 22:30 ` ✓ 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=25c92b16536294f2adaae22c539c066778a6bedd.camel@intel.com \
--to=alan.previn.teres.alexis@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=julia.filipchuk@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