From: "Alexandre Courbot" <acourbot@nvidia.com>
To: "Timur Tabi" <ttabi@nvidia.com>
Cc: "Danilo Krummrich" <dakr@kernel.org>,
"Miguel Ojeda" <ojeda@kernel.org>,
"Luis Chamberlain" <mcgrof@kernel.org>,
"Russ Weight" <russ.weight@linux.dev>,
<rust-for-linux@vger.kernel.org>, <driver-core@lists.linux.dev>,
"Gary Guo" <gary@garyguo.net>, <nova-gpu@lists.linux.dev>,
"Eliot Courtney" <ecourtney@nvidia.com>,
"John Hubbard" <jhubbard@nvidia.com>,
"Zhi Wang" <zhiw@nvidia.com>
Subject: Re: [PATCH v5 5/8] gpu: nova-core: transition gsp to TLV images
Date: Mon, 27 Jul 2026 20:29:43 +0900 [thread overview]
Message-ID: <DK9BHROP1DG7.20GSNM4VA2OIW@nvidia.com> (raw)
In-Reply-To: <20260710230428.865447-6-ttabi@nvidia.com>
On Sat Jul 11, 2026 at 8:04 AM JST, Timur Tabi wrote:
<...>
> diff --git a/drivers/gpu/nova-core/firmware/gsp.rs b/drivers/gpu/nova-core/firmware/gsp.rs
> index 99a302bae567..185cae0689a3 100644
> --- a/drivers/gpu/nova-core/firmware/gsp.rs
> +++ b/drivers/gpu/nova-core/firmware/gsp.rs
> @@ -8,6 +8,7 @@
> DataDirection,
> DmaAddress, //
> },
> + firmware,
> prelude::*,
> scatterlist::{
> Owned,
> @@ -17,13 +18,14 @@
>
> use crate::{
> firmware::{
> - elf,
> riscv::RiscvFirmware, //
> + tlv::{
> + request_tlv, //
> + Tlv,
> + },
> + CString,
`CString` should be imported from `kernel`, not `crate`. I guess this
only works because `crate::firmware` also imports it and we are below it.
<...>
> -impl RmRiscvUCodeDesc {
> - /// Interprets the header of `bin_fw` as a [`RmRiscvUCodeDesc`] and returns it.
> - ///
> - /// Fails if the header pointed at by `bin_fw` is not within the bounds of the firmware image.
> - fn new(bin_fw: &BinFirmware<'_>) -> Result<Self> {
> - let offset = usize::from_safe_cast(bin_fw.hdr.header_offset);
> - let end = offset.checked_add(size_of::<Self>()).ok_or(EINVAL)?;
> -
> - bin_fw
> - .fw
> - .get(offset..end)
> - .and_then(Self::from_bytes_copy)
> - .ok_or(EINVAL)
> - }
> -}
> +use crate::firmware::tlv::Tlv;
>
> /// A parsed firmware for a RISC-V core, ready to be loaded and run.
> pub(crate) struct RiscvFirmware {
> @@ -70,26 +27,27 @@ pub(crate) struct RiscvFirmware {
> }
>
> impl RiscvFirmware {
> - /// Parses the RISC-V firmware image contained in `fw`.
Why remove this doccomment?
next prev parent reply other threads:[~2026-07-27 11:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 23:04 [PATCH v5 0/8] Transition Nova Core to TLV firmare images Timur Tabi
2026-07-10 23:04 ` [PATCH v5 1/8] rust: alloc: add Vec::zeroed method Timur Tabi
2026-07-11 13:25 ` Miguel Ojeda
2026-07-13 2:21 ` Timur Tabi
2026-07-27 8:06 ` Alexandre Courbot
2026-07-10 23:04 ` [PATCH v5 2/8] rust: firmware: add request_into_buf() Timur Tabi
2026-07-27 8:06 ` Alexandre Courbot
2026-07-27 10:38 ` Alexandre Courbot
2026-07-10 23:04 ` [PATCH v5 3/8] gpu: nova-core: add TLV parser for firmware files Timur Tabi
2026-07-27 11:31 ` Alexandre Courbot
2026-07-10 23:04 ` [PATCH v5 4/8] gpu: nova-core: transition booter_load to TLV images Timur Tabi
2026-07-10 23:04 ` [PATCH v5 5/8] gpu: nova-core: transition gsp " Timur Tabi
2026-07-27 11:29 ` Alexandre Courbot [this message]
2026-07-10 23:04 ` [PATCH v5 6/8] gpu: nova-core: transition gen_bootloader " Timur Tabi
2026-07-10 23:04 ` [PATCH v5 7/8] gpu: nova-core: transition fsp " Timur Tabi
2026-07-10 23:04 ` [PATCH v5 8/8] gpu: nova-core: update firmware module info for " Timur Tabi
2026-07-27 8:06 ` 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=DK9BHROP1DG7.20GSNM4VA2OIW@nvidia.com \
--to=acourbot@nvidia.com \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=ecourtney@nvidia.com \
--cc=gary@garyguo.net \
--cc=jhubbard@nvidia.com \
--cc=mcgrof@kernel.org \
--cc=nova-gpu@lists.linux.dev \
--cc=ojeda@kernel.org \
--cc=russ.weight@linux.dev \
--cc=rust-for-linux@vger.kernel.org \
--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 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.