From: "Alexandre Courbot" <acourbot@nvidia.com>
To: "Danilo Krummrich" <dakr@kernel.org>
Cc: "Miguel Ojeda" <ojeda@kernel.org>,
"Alex Gaynor" <alex.gaynor@gmail.com>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <lossin@kernel.org>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org,
nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 5/5] gpu: nova-core: firmware: process and prepare the GSP firmware
Date: Fri, 22 Aug 2025 22:04:27 +0900 [thread overview]
Message-ID: <DC8Z7MLH1J7K.176ZEFST32FS4@nvidia.com> (raw)
In-Reply-To: <DC8Z2MLOJN7D.3IOSY6SJ7DPVD@kernel.org>
On Fri Aug 22, 2025 at 9:57 PM JST, Danilo Krummrich wrote:
> Hi Alex,
>
> not a full review yet, but a few ad-hoc comments from skimming over it.
>
> On Fri Aug 22, 2025 at 2:47 PM CEST, Alexandre Courbot wrote:
>> +/// A device-mapped firmware with a set of (also device-mapped) pages tables mapping the firmware
>> +/// to the start of their own address space.
>> +pub(crate) struct GspFirmware {
>> + /// The GSP firmware inside a [`VVec`], device-mapped via a SG table.
>> + #[expect(unused)]
>
> Do we expect this to change? Otherwise, just prefix the field name with an
> underscore.
Yes, all the fields marked unused are eventually used in incoming
patches.
>
>> + fw: Pin<KBox<SGTable<Owned<VVec<u8>>>>>,
>> + /// The level 2 page table, mapping [`Self::fw`] at its beginning.
>> + #[expect(unused)]
>> + lvl2: Pin<KBox<SGTable<Owned<VVec<u8>>>>>,
>> + /// The level 1 page table, mapping [`Self::lvl2`] at its beginning.
>> + #[expect(unused)]
>> + lvl1: Pin<KBox<SGTable<Owned<VVec<u8>>>>>,
>
> Instead of creating three allocations, just make struct GspFirmware pin_data by
> itself. This should even propagate down to struct Gpu, which is pin_data.
>
> So everything can be in one single allocation.
Ah, I was actually wondering - thanks, will try and do that.
prev parent reply other threads:[~2025-08-22 13:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-22 12:47 [PATCH 0/5] gpu: nova-core: process and prepare more firmwares to boot GSP Alexandre Courbot
2025-08-22 12:47 ` [PATCH 1/5] rust: transmute: add `from_bytes_copy` method to `FromBytes` trait Alexandre Courbot
2025-08-22 12:52 ` Alice Ryhl
2025-08-22 12:47 ` [PATCH 2/5] gpu: nova-core: firmware: add support for common firmware header Alexandre Courbot
2025-08-22 12:47 ` [PATCH 3/5] gpu: nova-core: firmware: process Booter and patch its signature Alexandre Courbot
2025-08-22 12:47 ` [PATCH 4/5] gpu: nova-core: firmware: process the GSP bootloader Alexandre Courbot
2025-08-25 15:45 ` Timur Tabi
2025-08-22 12:47 ` [PATCH 5/5] gpu: nova-core: firmware: process and prepare the GSP firmware Alexandre Courbot
2025-08-22 12:57 ` Danilo Krummrich
2025-08-22 13:04 ` Alexandre Courbot [this message]
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=DC8Z7MLH1J7K.176ZEFST32FS4@nvidia.com \
--to=acourbot@nvidia.com \
--cc=a.hindborg@kernel.org \
--cc=airlied@gmail.com \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gary@garyguo.net \
--cc=linux-kernel@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=nouveau@lists.freedesktop.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=simona@ffwll.ch \
--cc=tmgross@umich.edu \
--cc=tzimmermann@suse.de \
/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.