From: "Teres Alexis, Alan Previn" <alan.previn.teres.alexis@intel.com>
To: "sashiko-reviews@lists.linux.dev" <sashiko-reviews@lists.linux.dev>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 1/2] drm/xe/gsc: Define GSC for NVL-P
Date: Tue, 22 Sep 2026 17:53:50 +0000 [thread overview]
Message-ID: <1118fab5df55cecfcadc963c6a7d03da7e3a5288.camel@intel.com> (raw)
In-Reply-To: <20260917224016.9B59B1F000FF@smtp.kernel.org>
On Thu, 2026-09-17 at 22:40 +0000, sashiko-bot@kernel.org wrote:
> 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
> --
alan:[snip]
> [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))
>
This is a valid bug. Will re-rev.
next prev parent reply other threads:[~2026-09-22 17:54 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
2026-09-22 17:53 ` Teres Alexis, Alan Previn [this message]
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=1118fab5df55cecfcadc963c6a7d03da7e3a5288.camel@intel.com \
--to=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