mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Alexandre Courbot" <acourbot@nvidia.com>
To: "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>
Subject: Re: [PATCH v2 6/7] gpu: nova-core: gsp: add the r000 load-and-execute bootloader handler
Date: Thu, 03 Dec 2026 19:40:20 +0900	[thread overview]
Message-ID: <DNB188VFNS3C.10FZ0J3KR9ELN@nvidia.com> (raw)
In-Reply-To: <20261202-falcon-v2-6-33ed73a20796@nvidia.com>

On Wed Dec 2, 2026 at 9:06 PM JST, Eliot Courtney wrote:
> From: John Hubbard <jhubbard@nvidia.com>
>
> On Turing and GA100, the r000 GSP-RM requires an image to run on the
> falcon core during boot, through the generic falcon bootloader. GSP-RM
> is suspended while the image runs.
>
> The driver runs the image on behalf of GSP-RM, in the following steps:
>
> 1. GSP-RM raises a load-and-execute event, which carries a descriptor of
>    the image.
> 2. GSP-RM suspends the RISC-V core.
> 3. The driver waits until the RISC-V core is suspended.
> 4. The driver resets the GSP falcon, which selects the falcon core.
> 5. The driver loads the bootloader and the descriptor into the GSP
>    falcon.
> 6. The driver starts the bootloader, which loads the image and starts
>    it.
> 7. The driver waits for the falcon core to halt.
> 8. The driver resumes GSP-RM on the RISC-V core.
>
> Nova-core has no handler for the bootloader's load-and-execute event.
>
> Add the handler, which performs steps 3 through 8.
>
> Co-developed-by: Alexandre Courbot <acourbot@nvidia.com>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> Signed-off-by: John Hubbard <jhubbard@nvidia.com>
> [ecourtney: zerocopy derives for `GenericBootloaderParams`, no `unsafe impl`]
> [ecourtney: derive `FromBytes` for `BootloaderDmemDescV2`, no `unsafe impl`]
> [ecourtney: move MAILBOX0 check and resume to `handle_load_exec_event()`]
> [ecourtney: module doc's FBIF sentence moved to the HS binary patch]
> [ecourtney: move some methods to be impls of `GspBootContext`]
> [ecourtney: load the generic bootloader in the handler, don't pass it in]
> Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>

Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>

(dropping my Co-developed-by as I'm not sure I actually contributed much
to this one)

  reply	other threads:[~2026-12-03 10:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 12:06 [PATCH v2 0/7] gpu: nova-core: gsp: add r000 load+exec handlers Eliot Courtney
2026-12-02 12:06 ` [PATCH v2 1/7] gpu: nova-core: falcon: factor out the wait for the GSP suspend Eliot Courtney
2026-12-02 12:06 ` [PATCH v2 2/7] gpu: nova-core: gsp: factor out the core resume Eliot Courtney
2026-12-02 12:06 ` [PATCH v2 3/7] gpu: nova-core: gsp: fix resume_gsp_rm()'s error messages Eliot Courtney
2026-12-02 12:06 ` [PATCH v2 4/7] gpu: nova-core: falcon: select the BAR2 engine ID for DMA transfers Eliot Courtney
2026-12-03 10:40   ` Alexandre Courbot
2026-12-02 12:06 ` [PATCH v2 5/7] gpu: nova-core: gsp: add the r000 load-and-execute HS binary handler Eliot Courtney
2026-12-03 10:40   ` Alexandre Courbot
2026-12-02 12:06 ` [PATCH v2 6/7] gpu: nova-core: gsp: add the r000 load-and-execute bootloader handler Eliot Courtney
2026-12-03 10:40   ` Alexandre Courbot [this message]
2026-12-02 12:06 ` [PATCH v2 7/7] gpu: nova-core: gsp: add the load-and-execute event dispatcher Eliot Courtney
2026-12-03 10:40   ` Alexandre Courbot
2026-12-03 10:45 ` [PATCH v2 0/7] gpu: nova-core: gsp: add r000 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=DNB188VFNS3C.10FZ0J3KR9ELN@nvidia.com \
    --to=acourbot@nvidia.com \
    --cc=airlied@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=apopple@nvidia.com \
    --cc=dakr@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ecourtney@nvidia.com \
    --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

all inboxes | Powered by JetHome®