From: sashiko-bot@kernel.org
To: "Alexandre Courbot" <acourbot@nvidia.com>
Cc: dri-devel@lists.freedesktop.org, ojeda@kernel.org,
"Danilo Krummrich" <dakr@kernel.org>,
"Alexandre Courbot" <acourbot@nvidia.com>
Subject: Re: [PATCH v5 05/13] gpu: nova-core: gsp: centralize missing unload bundle warnings
Date: Tue, 07 Jul 2026 08:30:31 +0000 [thread overview]
Message-ID: <20260707083031.CC3AD1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260707-nova-bootcontext-v5-5-ecad9346387f@nvidia.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Diagnostic warnings about a missing unload bundle and the need to reset the GPU are silently dropped if `hal.boot()` fails after a failed unload bundle creation.
--
--- Patch [5]: [PATCH v5 05/13] gpu: nova-core: gsp: centralize missing unload bundle warnings ---
commit 5c2f2654dd3e426ece23d356efc67204a24f8fc0
Author: Alexandre Courbot <acourbot@nvidia.com>
gpu: nova-core: gsp: centralize missing unload bundle warnings
This commit centralizes the warning emitted when the unload bundle cannot
be constructed by moving it from the Tu102-specific boot sequence to the
common Gsp::boot method.
> diff --git a/drivers/gpu/nova-core/gsp/boot.rs b/drivers/gpu/nova-core/gsp/boot.rs
> index 75054424a9516..430ffc57b1366 100644
> --- a/drivers/gpu/nova-core/gsp/boot.rs
> +++ b/drivers/gpu/nova-core/gsp/boot.rs
> @@ -56,7 +56,15 @@ pub(crate) fn boot(
> let wpr_meta = Coherent::init(dev, GFP_KERNEL, GspFwWprMeta::new(&gsp_fw, &fb_layout))?;
>
> // Perform the chipset-specific boot sequence, and retrieve the unload bundle.
> - let unload_bundle = hal.boot(&self, &ctx, &fb_layout, &wpr_meta)?;
> + let unload_bundle = hal.boot(&self, &ctx, &fb_layout, &wpr_meta)?.or_else(|| {
> + dev_warn!(dev, "The GSP won't be able to unload properly on unbind.\n");
> + dev_warn!(
> + dev,
> + "The GPU will need to be reset before the driver can bind again.\n"
> + );
> +
> + None
> + });
[Severity: Medium]
Does the `?` operator here inadvertently skip these warnings if a subsequent
step in `hal.boot()` fails?
In the previous implementation, the warnings were printed immediately when
`Sec2UnloadBundle::build()` failed in `Tu102::boot()`.
With this change, if the unload bundle creation fails, but a subsequent
operation inside `hal.boot()` also fails and returns an `Err`, the `?`
operator will immediately propagate that error. This entirely bypasses the
`.or_else()` block, dropping the diagnostic warnings about the GPU needing
a reset.
> diff --git a/drivers/gpu/nova-core/gsp/hal/tu102.rs b/drivers/gpu/nova-core/gsp/hal/tu102.rs
> index c0956fb1c9cff..ef465b99af051 100644
> --- a/drivers/gpu/nova-core/gsp/hal/tu102.rs
> +++ b/drivers/gpu/nova-core/gsp/hal/tu102.rs
[ ... ]
> @@ -278,14 +278,7 @@ fn boot(
> // If the unload bundle creation fails, the GPU will need to be reset before the driver can
> // be probed again.
> let unload_bundle = Sec2UnloadBundle::build(dev, chipset, &bios, gsp_falcon, sec2_falcon)
> - .inspect_err(|e| {
> - dev_warn!(dev, "Failed to prepare unload firmware: {:?}\n", e);
> - dev_warn!(dev, "The GSP won't be able to unload properly on unbind.\n");
> - dev_warn!(
> - dev,
> - "The GPU will need to be reset before the driver can bind again.\n"
> - );
> - })
> + .inspect_err(|e| dev_warn!(dev, "Failed to prepare unload firmware: {:?}\n", e))
> .ok()
> .map(crate::gsp::UnloadBundle);
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260707-nova-bootcontext-v5-0-ecad9346387f@nvidia.com?part=5
next prev parent reply other threads:[~2026-07-07 8:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 7:21 [PATCH v5 00/13] gpu: nova-core: consolidate and streamline GSP boot process Alexandre Courbot
2026-07-07 7:21 ` [PATCH v5 01/13] gpu: nova-core: gsp: sequencer: use GspBootContext Alexandre Courbot
2026-07-07 7:21 ` [PATCH v5 02/13] gpu: nova-core: gsp: sequencer: do not store sequence into GspSequencer Alexandre Courbot
2026-07-07 7:58 ` sashiko-bot
2026-07-07 7:21 ` [PATCH v5 03/13] gpu: nova-core: gsp: replace BootUnloadGuard with local handlers Alexandre Courbot
2026-07-07 8:04 ` Eliot Courtney
2026-07-07 12:56 ` Alexandre Courbot
2026-07-07 13:34 ` Eliot Courtney
2026-07-09 6:27 ` Alexandre Courbot
2026-07-07 8:10 ` sashiko-bot
2026-07-07 7:21 ` [PATCH v5 04/13] gpu: nova-core: gsp: pass GspBootContext to unload methods Alexandre Courbot
2026-07-07 7:21 ` [PATCH v5 05/13] gpu: nova-core: gsp: centralize missing unload bundle warnings Alexandre Courbot
2026-07-07 8:30 ` sashiko-bot [this message]
2026-07-07 7:21 ` [PATCH v5 06/13] gpu: nova-core: gsp: fold TU102 unload bundle construction into HAL method Alexandre Courbot
2026-07-07 7:21 ` [PATCH v5 07/13] gpu: nova-core: gsp: turn FWSEC execution " Alexandre Courbot
2026-07-07 7:21 ` [PATCH v5 08/13] gpu: nova-core: gsp: make use of FWSEC bootloader a property of the TU102 HAL Alexandre Courbot
2026-07-07 7:42 ` Eliot Courtney
2026-07-07 7:21 ` [PATCH v5 09/13] gpu: nova-core: move GSP firmware files decision to GSP HAL Alexandre Courbot
2026-07-07 7:49 ` Alexandre Courbot
2026-07-07 13:08 ` Eliot Courtney
2026-07-07 7:21 ` [PATCH v5 10/13] gpu: nova-core: avoid repeated calls to pci::Device::as_ref Alexandre Courbot
2026-07-07 7:21 ` [PATCH v5 11/13] gpu: nova-core: gsp: pass GspBootContext mutably Alexandre Courbot
2026-07-07 7:21 ` [PATCH v5 12/13] gpu: nova-core: gsp: separate context and GPU lifetimes in GspBootContext Alexandre Courbot
2026-07-07 9:02 ` sashiko-bot
2026-07-07 7:21 ` [PATCH v5 13/13] gpu: nova-core: store Fsp instance in Gpu Alexandre Courbot
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=20260707083031.CC3AD1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=acourbot@nvidia.com \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=ojeda@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.