From: "Eliot Courtney" <ecourtney@nvidia.com>
To: "Timur Tabi" <ttabi@nvidia.com>,
"Danilo Krummrich" <dakr@kernel.org>,
"Eliot Courtney" <ecourtney@nvidia.com>,
"John Hubbard" <jhubbard@nvidia.com>,
"Alexandre Courbot" <acourbot@nvidia.com>,
<nova-gpu@lists.linux.dev>
Subject: Re: [PATCH v4 5/7] gpu: nova-core: add TLV versions of WPR heap size functions
Date: Fri, 27 Nov 2026 17:34:29 +0900 [thread overview]
Message-ID: <DN5USM0T3OJW.KRRW20AMA93M@nvidia.com> (raw)
In-Reply-To: <20261125212445.620391-6-ttabi@nvidia.com>
On Thu Nov 26, 2026 at 6:24 AM JST, Timur Tabi wrote:
> Add TLV versions of vgpu_wpr_heap_size() and wpr_heap_size() to
> GspFwHeapParams. These complement the same functions in LibosParams.
> We add them to GspFwHeapParams because LibosParams will be removed
> in a future commit, and the driver will use the GspFwHeapParams
> version instead.
>
> Signed-off-by: Timur Tabi <ttabi@nvidia.com>
> Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
> ---
> drivers/gpu/nova-core/gsp/fw.rs | 33 +++++++++++++++++++++++++++++----
> 1 file changed, 29 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/nova-core/gsp/fw.rs b/drivers/gpu/nova-core/gsp/fw.rs
> index fdb7f9625686..e59a10beaa94 100644
> --- a/drivers/gpu/nova-core/gsp/fw.rs
> +++ b/drivers/gpu/nova-core/gsp/fw.rs
> @@ -68,13 +68,9 @@
>
> /// Heap memory requirements and constraints for booting GSP-RM.
> pub(crate) struct GspFwHeapParams {
> - #[expect(unused)]
> wpr2_heap_base_size: u64,
> - #[expect(unused)]
> wpr2_heap_size_per_gib: u64,
> - #[expect(unused)]
> vgpu_wpr2_heap_base_size: u64,
> - #[expect(unused)]
> vgpu_wpr2_heap_size_per_vf: u64,
> pub(crate) pmu_reserved_size: u32,
> pub(crate) non_wpr_heap_size: u64,
> @@ -127,6 +123,35 @@ fn management_overhead(fb_size: u64) -> Result<u64> {
> .align_up(GSP_HEAP_ALIGNMENT)
> .ok_or(EINVAL)
> }
> +
> + /// Returns the WPR heap size to reserve when vGPU is enabled.
> + #[expect(unused)]
> + pub(crate) fn vgpu_wpr_heap_size(&self, total_vfs: u16) -> Result<u64> {
> + //u64::from(bindings::GSP_FW_HEAP_SIZE_VGPU_DEFAULT)
Still has the commented out line plus saturating_* so I think you missed
updating this patch.
Series lgtm otherwise~
next prev parent reply other threads:[~2026-11-27 8:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 21:24 [PATCH v4 0/7] Transition nova-core to use TLV variables for heap sizes Timur Tabi
2026-11-25 21:24 ` [PATCH v4 1/7] gpu: nova-core: add Tlv.get_u64 Timur Tabi
2026-11-25 21:24 ` [PATCH v4 2/7] gpu: nova-core: read GSP heap variables from TLV Timur Tabi
2026-11-25 21:24 ` [PATCH v4 3/7] gpu: nova-core: use the TLV heap sizes for pmu and non-wpr Timur Tabi
2026-11-25 21:24 ` [PATCH v4 4/7] gpu: nova-core: remove heap size related HAL functions Timur Tabi
2026-11-25 21:24 ` [PATCH v4 5/7] gpu: nova-core: add TLV versions of WPR heap size functions Timur Tabi
2026-11-27 8:34 ` Eliot Courtney [this message]
2026-11-28 17:57 ` Timur Tabi
2026-11-25 21:24 ` [PATCH v4 6/7] gpu: nova-core: change wpr2_heap_params to use TLV values Timur Tabi
2026-11-25 21:24 ` [PATCH v4 7/7] gpu: nova-core: remove LibosParams Timur Tabi
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=DN5USM0T3OJW.KRRW20AMA93M@nvidia.com \
--to=ecourtney@nvidia.com \
--cc=acourbot@nvidia.com \
--cc=dakr@kernel.org \
--cc=jhubbard@nvidia.com \
--cc=nova-gpu@lists.linux.dev \
--cc=ttabi@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.