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>, <rust-for-linux@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 03/12] gpu: nova-core: place the generic bootloader at the top of IMEM
Date: Tue, 10 Nov 2026 19:14:47 +0900 [thread overview]
Message-ID: <DMRGA5G0Q00Y.22IKP8FGI185B@nvidia.com> (raw)
In-Reply-To: <DMQETIYO7A62.263CE3B815QGF@nvidia.com>
On Mon Nov 9, 2026 at 1:53 PM JST, Eliot Courtney wrote:
> On Sat Nov 7, 2026 at 6:47 PM JST, Alexandre Courbot wrote:
>> From: John Hubbard <jhubbard@nvidia.com>
>>
>> The generic bootloader was loaded right below the first 64 KiB of IMEM,
>> on the assumption that every falcon it runs on has a 64 KiB IMEM. The
>> r000 load-and-execute bootloader event can name any image for it to
>> load, and the bootloader must then sit above the blocks that the image
>> occupies, that is, in the last blocks of IMEM, regardless of its size.
>>
>> Place the bootloader at the top of the falcon's IMEM, using the IMEM
>> size that the HWCFG register reports, instead of assuming a 64 KiB IMEM.
>>
>> Signed-off-by: John Hubbard <jhubbard@nvidia.com>
>> Reviewed-by: Timur Tabi <ttabi@nvidia.com>
>> Reviewed-by: Zhi Wang <zhiw@nvidia.com>
>> [acourbot: split out of the patch separating the bootloader from FWSEC;
>> convert the IMEM size with usize::from()]
>> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
>> ---
>
> [...]
>
>> impl GenericBootloader {
>> - /// Loads the generic bootloader image for `chipset`, placed right below the first 64 KiB of
>> + /// Loads the generic bootloader image for `chipset`, placed in the last blocks of `falcon`'s
>> /// IMEM.
>> ///
>> /// # Errors
>> ///
>> /// - `EINVAL` if a required TLV field is absent.
>> - /// - `EOVERFLOW` if the image does not fit below 64 KiB.
>> + /// - `EOVERFLOW` if the image does not fit in IMEM.
>> /// - `ENOMEM` if the padded copy of the code cannot be allocated.
>> - pub(crate) fn new(dev: &device::Device, chipset: Chipset) -> Result<Self> {
>> + pub(crate) fn new(
>> + dev: &device::Device,
>> + chipset: Chipset,
>> + falcon: &Falcon<'_, Gsp>,
>
> optional nit: `falcon` is passed twice in (`new` and `run`), so we
> could call `run` with a different `falcon` (which could have a
> different `imem_size` to the first one). we could just compute
> `imem_dst_start` in `run` and drop `falcon` from `new`.
Good idea. This looks better if we move this patch after patch 5 (which
introduces the `run` method), so I'll do that as well.
next prev parent reply other threads:[~2026-11-10 10:15 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-07 9:47 [PATCH v2 00/12] gpu: nova-core: generic bootloader and falcon DMA changes for r000 Alexandre Courbot
2026-11-07 9:47 ` [PATCH v2 01/12] gpu: nova-core: separate the generic falcon bootloader from FWSEC Alexandre Courbot
2026-11-07 9:47 ` [PATCH v2 02/12] gpu: nova-core: falcon: widen the IMEM PIO offset to 24 bits Alexandre Courbot
2026-11-09 4:32 ` Eliot Courtney
2026-11-07 9:47 ` [PATCH v2 03/12] gpu: nova-core: place the generic bootloader at the top of IMEM Alexandre Courbot
2026-11-09 4:53 ` Eliot Courtney
2026-11-10 10:14 ` Alexandre Courbot [this message]
2026-11-07 9:48 ` [PATCH v2 04/12] gpu: nova-core: move the bootloader DMEM descriptor out of FWSEC Alexandre Courbot
2026-11-07 9:48 ` [PATCH v2 05/12] gpu: nova-core: run the generic bootloader from its own type Alexandre Courbot
2026-11-09 4:59 ` Eliot Courtney
2026-11-07 9:48 ` [PATCH v2 06/12] rust: io: register: implement Copy and Clone for RegisterArrayLoc Alexandre Courbot
2026-11-07 13:05 ` Danilo Krummrich
2026-11-09 5:00 ` Eliot Courtney
2026-11-09 11:58 ` Gary Guo
2026-11-07 9:48 ` [PATCH v2 07/12] gpu: nova-core: falcon: introduce and use with_fbif_transcfg Alexandre Courbot
2026-11-09 5:36 ` Eliot Courtney
2026-11-07 9:48 ` [PATCH v2 08/12] gpu: nova-core: falcon: rename the local variables of dma_wr() Alexandre Courbot
2026-11-09 5:39 ` Eliot Courtney
2026-11-07 9:48 ` [PATCH v2 09/12] gpu: nova-core: falcon: allow DMEM DMA transfers to request tagging Alexandre Courbot
2026-11-09 5:47 ` Eliot Courtney
2026-11-07 9:48 ` [PATCH v2 10/12] gpu: nova-core: falcon: allow DMA transfers to read from a framebuffer address Alexandre Courbot
2026-11-09 7:23 ` Eliot Courtney
2026-11-10 10:16 ` Alexandre Courbot
2026-11-07 9:48 ` [PATCH v2 11/12] gpu: nova-core: falcon: check the per-block DMA offsets for overflow Alexandre Courbot
2026-11-07 9:48 ` [PATCH v2 12/12] gpu: nova-core: falcon: program the FBIF_TRANSCFG register in dma_wr Alexandre Courbot
2026-11-09 7:24 ` Eliot Courtney
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=DMRGA5G0Q00Y.22IKP8FGI185B@nvidia.com \
--to=acourbot@nvidia.com \
--cc=airlied@gmail.com \
--cc=aliceryhl@google.com \
--cc=apopple@nvidia.com \
--cc=dakr@kernel.org \
--cc=ecourtney@nvidia.com \
--cc=jhubbard@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nova-gpu@lists.linux.dev \
--cc=rust-for-linux@vger.kernel.org \
--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®