From: "Eliot Courtney" <ecourtney@nvidia.com>
To: "Alexandre Courbot" <acourbot@nvidia.com>,
"Eliot Courtney" <ecourtney@nvidia.com>
Cc: "Danilo Krummrich" <dakr@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"John Hubbard" <jhubbard@nvidia.com>,
"Alistair Popple" <apopple@nvidia.com>,
"Timur Tabi" <ttabi@nvidia.com>, "Zhi Wang" <zhiw@nvidia.com>,
<nova-gpu@lists.linux.dev>, <dri-devel@lists.freedesktop.org>,
<linux-kernel@vger.kernel.org>,
"dri-devel" <dri-devel-bounces@lists.freedesktop.org>
Subject: Re: [PATCH 14/14] gpu: nova-core: gsp: add the load-and-execute event dispatcher
Date: Wed, 02 Dec 2026 18:31:52 +0900 [thread overview]
Message-ID: <DNA559S0TULA.2EICEY634FSL5@nvidia.com> (raw)
In-Reply-To: <DN9HT6B0MZEZ.CMX0TSZ161VO@nvidia.com>
On Wed Dec 2, 2026 at 12:14 AM JST, Alexandre Courbot wrote:
[...]
>> + result
>> + .and_then(|mbox0| {
>> + if mbox0 == FLCN_ERR_BINARY_NOT_STARTED {
>> + dev_err!(
>> + dev,
>> + "Binary of load-and-execute event {:?} did not start\n",
>> + id
>> + );
>
> Shouldn't we return an error if the binary hasn't been started at all?
Yes I reckon.
>
> I'd suggest to apply this, then the r000 switch series can be simplified
> some more.
>
> diff --git a/drivers/gpu/nova-core/gsp/load_exec.rs b/drivers/gpu/nova-core/gsp/load_exec.rs
> index 374e851d2b60..1ecf4e4dd5e3 100644
> --- a/drivers/gpu/nova-core/gsp/load_exec.rs
> +++ b/drivers/gpu/nova-core/gsp/load_exec.rs
> @@ -120,10 +120,9 @@ impl GspBootContext<'_, '_> {
> /// Runs the handler of the load-and-execute event `event`.
> ///
> /// The command ID of `event` selects the handler, and the payload of `event`
> - /// holds the parameters of that handler. `bootloader` is the generic falcon
> - /// bootloader, which the handler of a `GMCAPI_CMD_EXEC_GENERIC_BOOTLOADER`
> - /// event requires. Each handler is followed by [`resume_gsp_rm`], which
> - /// receives `libos_dma_address` and `bootloader_app_version`.
> + /// holds the parameters of that handler. Each handler is followed by
> + /// [`resume_gsp_rm`], which receives `libos_dma_address` and
> + /// `bootloader_app_version`.
> ///
> /// # Errors
> ///
> @@ -136,7 +135,6 @@ impl GspBootContext<'_, '_> {
> #[expect(dead_code)]
> pub(super) fn handle_load_exec_event(
> &self,
> - bootloader: Option<&GenericBootloader>,
> libos_dma_address: DmaAddress,
> bootloader_app_version: u32,
> event: &GmcMessage<'_>,
> @@ -150,7 +148,7 @@ pub(super) fn handle_load_exec_event(
> Ok(id @ GmcCommandId::ExecGenericBootloader) => (
> id,
> GenericBootloaderParams::read(&mut payload)
> - .and_then(|params| self.handle_generic_bootloader(bootloader, ¶ms)),
> + .and_then(|params| self.handle_generic_bootloader(¶ms)),
> ),
> Ok(id @ GmcCommandId::ExecHsBinary) => (
> id,
Will do!
next prev parent reply other threads:[~2026-12-02 9:31 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 9:28 [PATCH 00/14] gpu: nova-core: merge `load` and `boot` for falcons, add load+exec handlers Eliot Courtney
2026-11-30 9:28 ` [PATCH 01/14] gpu: nova-core: falcon: program BROM and BOOTVEC in `boot` Eliot Courtney
2026-11-30 9:28 ` [PATCH 02/14] gpu: nova-core: use correct offset for imem in `BooterFirmware` Eliot Courtney
2026-11-30 9:28 ` [PATCH 03/14] gpu: nova-core: remove some dependencies on FalconDmaLoadTarget Eliot Courtney
2026-11-30 9:28 ` [PATCH 04/14] gpu: nova-core: falcon: separate staging data for DMA from its location Eliot Courtney
2026-11-30 9:28 ` [PATCH 05/14] gpu: nova-core: falcon: add `FalconImage` for `FalconFirmware` trait Eliot Courtney
2026-11-30 9:28 ` [PATCH 06/14] gpu: nova-core: falcon: load the firmware image in Falcon::boot Eliot Courtney
2026-11-30 9:28 ` [PATCH 07/14] gpu: nova-core: firmware: use `zerocopy` for `BootloaderDmemDescV2` Eliot Courtney
2026-12-01 8:38 ` Alexandre Courbot
2026-11-30 9:28 ` [PATCH 08/14] gpu: nova-core: falcon: factor out the wait for the GSP suspend Eliot Courtney
2026-12-01 14:29 ` Alexandre Courbot
2026-11-30 9:28 ` [PATCH 09/14] gpu: nova-core: gsp: factor out the core resume Eliot Courtney
2026-12-01 14:28 ` Alexandre Courbot
2026-11-30 9:28 ` [PATCH 10/14] gpu: nova-core: gsp: fix resume_gsp_rm()'s error messages Eliot Courtney
2026-11-30 9:28 ` [PATCH 11/14] gpu: nova-core: falcon: select the BAR2 engine ID for framebuffer DMA Eliot Courtney
2026-12-01 14:26 ` Alexandre Courbot
2026-12-02 6:40 ` Eliot Courtney
2026-11-30 9:28 ` [PATCH 12/14] gpu: nova-core: gsp: add the r000 load-and-execute HS binary handler Eliot Courtney
2026-12-01 14:41 ` Alexandre Courbot
2026-12-02 6:40 ` Eliot Courtney
2026-11-30 9:28 ` [PATCH 13/14] gpu: nova-core: gsp: add the r000 load-and-execute bootloader handler Eliot Courtney
2026-12-01 15:14 ` Alexandre Courbot
2026-12-02 6:41 ` Eliot Courtney
2026-11-30 9:28 ` [PATCH 14/14] gpu: nova-core: gsp: add the load-and-execute event dispatcher Eliot Courtney
2026-12-01 15:14 ` Alexandre Courbot
2026-12-02 9:31 ` Eliot Courtney [this message]
2026-12-01 14:23 ` [PATCH 00/14] gpu: nova-core: merge `load` and `boot` for falcons, add load+exec handlers 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=DNA559S0TULA.2EICEY634FSL5@nvidia.com \
--to=ecourtney@nvidia.com \
--cc=acourbot@nvidia.com \
--cc=airlied@gmail.com \
--cc=aliceryhl@google.com \
--cc=apopple@nvidia.com \
--cc=dakr@kernel.org \
--cc=dri-devel-bounces@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jhubbard@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nova-gpu@lists.linux.dev \
--cc=simona@ffwll.ch \
--cc=ttabi@nvidia.com \
--cc=zhiw@nvidia.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