From: sashiko-bot@kernel.org
To: "Alan Previn" <alan.previn.teres.alexis@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/xe/gsc: Define GSC for NVL-P
Date: Thu, 17 Sep 2026 22:40:16 +0000 [thread overview]
Message-ID: <20260917224016.9B59B1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260917223042.715286-5-alan.previn.teres.alexis@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] xe: GSC firmware loading fails for NOVALAKE_P due to array ordering
--
commit 55a4dc15ed4d02aed4f0f84954a6722b7a2f2ace
Author: Alan Previn <alan.previn.teres.alexis@intel.com>
drm/xe/gsc: Define GSC for NVL-P
This commit defines the GSC firmware compatibility version for the
NOVALAKE_P platform, matching major version 108 and compatibility
version 0.0.
> diff --git a/drivers/gpu/drm/xe/xe_uc_fw.c b/drivers/gpu/drm/xe/xe_uc_fw.c
> index a8e6f18cc9b4a..fdffd6707e4d2 100644
> --- a/drivers/gpu/drm/xe/xe_uc_fw.c
> +++ b/drivers/gpu/drm/xe/xe_uc_fw.c
> @@ -142,6 +142,7 @@ struct fw_blobs_by_type {
> /* 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_ANY, major_ver(xe, gsc, ptl, 105, 1, 0)) \
> + fw_def(NOVALAKE_P, GT_TYPE_ANY, major_ver(xe, gsc, nvl, 108, 0, 0)) \
[Severity: High]
Will inserting NOVALAKE_P here cause the firmware selection loop to fail?
Looking at uc_fw_auto_select() in drivers/gpu/drm/xe/xe_uc_fw.c, the loop
termination condition expects the entries array to be sorted strictly
descending by platform enum:
for (i = 0; i < count && p <= entries[i].platform; i++) {
...
}
Since XE_NOVALAKE_P (enum value 15) is greater than the first entry
XE_PANTHERLAKE (enum value 12), the condition (15 <= 12) evaluates to false
on the very first iteration when trying to load firmware for NOVALAKE_P.
This aborts the search immediately, leaving uc_fw->path as NULL and failing
to load the GSC firmware.
> fw_def(LUNARLAKE, GT_TYPE_ANY, major_ver(xe, gsc, lnl, 104, 1, 0)) \
> fw_def(METEORLAKE, GT_TYPE_ANY, major_ver(i915, gsc, mtl, 102, 1, 0))
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260917223042.715286-4-alan.previn.teres.alexis@intel.com?part=1
next prev parent reply other threads:[~2026-09-17 22:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 22:30 [PATCH 0/2] Enable GSC loading and PXP for NVL-P Alan Previn
2026-09-17 22:30 ` [PATCH 1/2] drm/xe/gsc: Define GSC " Alan Previn
2026-09-17 22:40 ` sashiko-bot [this message]
2026-09-22 17:53 ` Teres Alexis, Alan Previn
2026-09-17 22:30 ` [PATCH 2/2] drm/xe/nvl-p: Enable PXP " Alan Previn
2026-09-17 23:31 ` ✓ CI.KUnit: success for Enable GSC loading and " Patchwork
2026-09-18 0:50 ` ✓ Xe.CI.BAT: " Patchwork
2026-09-18 6:49 ` ✗ Xe.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=20260917224016.9B59B1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=alan.previn.teres.alexis@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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