From: "Eliot Courtney" <ecourtney@nvidia.com>
To: "Alexandre Courbot" <acourbot@nvidia.com>,
"Danilo Krummrich" <dakr@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Miguel Ojeda" <ojeda@kernel.org>,
"Boqun Feng" <boqun@kernel.org>, "Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <lossin@kernel.org>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Trevor Gross" <tmgross@umich.edu>,
"Daniel Almeida" <daniel.almeida@collabora.com>,
"Tamir Duberstein" <tamird@kernel.org>,
"Onur Özkan" <work@onurozkan.dev>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>
Cc: "John Hubbard" <jhubbard@nvidia.com>,
"Alistair Popple" <apopple@nvidia.com>,
"Timur Tabi" <ttabi@nvidia.com>,
"Eliot Courtney" <ecourtney@nvidia.com>,
"Zhi Wang" <zhiw@nvidia.com>, "Alok Kumar" <alkumar@nvidia.com>,
<nova-gpu@lists.linux.dev>, <dri-devel@lists.freedesktop.org>,
<rust-for-linux@vger.kernel.org>, <linux-doc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
"dri-devel" <dri-devel-bounces@lists.freedesktop.org>
Subject: Re: [PATCH 08/15] gpu: nova-core: fb: increase Blackwell reserved memory sizes for r000
Date: Fri, 04 Dec 2026 13:38:02 +0900 [thread overview]
Message-ID: <DNBO5E0MTATJ.1M6FU4SNDYKH5@nvidia.com> (raw)
In-Reply-To: <20261203-b4-r000-switch-v1-8-b1463ec6dae2@nvidia.com>
On Thu Dec 3, 2026 at 9:09 PM JST, Alexandre Courbot wrote:
> From: John Hubbard <jhubbard@nvidia.com>
>
> The r000 GSP firmware requires larger framebuffer reservations on
> Blackwell than r570:
>
> * On GB10x and GB20x, the PMU backing store grows from 8 MiB to
> 0x950000 bytes and the PMU surfaces grow by 256 KiB.
> * On GB20x, the non-WPR heap grows from 2 MiB + 128 KiB to 3 MiB.
>
> Reserve the larger regions ahead of the r000 switch, as the r570
> firmware also accepts larger carveouts.
>
> Signed-off-by: John Hubbard <jhubbard@nvidia.com>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> ---
> drivers/gpu/nova-core/fb/hal/gb100.rs | 23 +++++++++++++++++++++--
> drivers/gpu/nova-core/fb/hal/gb202.rs | 4 ++--
> 2 files changed, 23 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/nova-core/fb/hal/gb100.rs b/drivers/gpu/nova-core/fb/hal/gb100.rs
> index 37b2ae762df4..34e9f08581fc 100644
> --- a/drivers/gpu/nova-core/fb/hal/gb100.rs
> +++ b/drivers/gpu/nova-core/fb/hal/gb100.rs
> @@ -78,9 +78,28 @@ fn write_sysmem_flush_page_gb100(hshub0: Mmio<'_, regs::Hshub0Registers>, addr:
> hshub0.write_reg(regs::NV_PFB_HSHUB_EG_PCIE_FLUSH_SYSMEM_ADDR_LO::zeroed().with_adr(addr_lo));
> }
>
> -// This PMU reservation size is r570-specific.
> +/// Size of the PMU backing store (9 MiB + 320 KiB).
> +const PMU_BACKING_STORE_SIZE: usize = (SZ_1M * 9) + SZ_64K * 5;
> +
> +/// Size of the PMU surfaces.
> +const PMU_SURFACES_SIZE: usize = SZ_16M + SZ_256K;
> +
> +/// Miscellaneous PMU memory.
> +const PMU_MISC_SIZE: usize = SZ_4K;
> +
> +/// Alignment of the PMU reserved region.
> +const PMU_RESERVED_MEMORY_ALIGNMENT: Alignment = Alignment::SZ_128K;
> +
> +/// PMU region above FRTS: the backing store, the surfaces and the miscellaneous memory, aligned to
> +/// [`PMU_RESERVED_MEMORY_ALIGNMENT`].
> +const PMU_RESERVED_SIZE: usize = const_align_up(
> + PMU_BACKING_STORE_SIZE + PMU_SURFACES_SIZE + PMU_MISC_SIZE,
> + PMU_RESERVED_MEMORY_ALIGNMENT,
> +)
> +.unwrap();
> +
> pub(super) const fn pmu_reserved_size_gb100() -> u32 {
> - cv!(const_align_up(SZ_8M + SZ_16M + SZ_4K, Alignment::SZ_128K).unwrap())
> + cv!(PMU_RESERVED_SIZE)
> }
>
> impl FbHal for Gb100 {
> diff --git a/drivers/gpu/nova-core/fb/hal/gb202.rs b/drivers/gpu/nova-core/fb/hal/gb202.rs
> index 4341ecf36188..40ea8e6b8a7d 100644
> --- a/drivers/gpu/nova-core/fb/hal/gb202.rs
> +++ b/drivers/gpu/nova-core/fb/hal/gb202.rs
> @@ -73,8 +73,8 @@ fn pmu_reserved_size(&self) -> u32 {
>
> fn non_wpr_heap_size(&self) -> u64 {
> // Non-WPR heap for GB20x (see Open RM: kgspGetNonWprHeapSize, GB202+).
> - // This size is r570-specific.
> - u64::SZ_2M + u64::SZ_128K
> + // This size is r000-specific.
> + 3 * u64::SZ_1M
> }
>
> fn frts_size(&self) -> u64 {
I guess that Timur's series [1] will come after the switch to r000 so we
still need this patch?
If so,
Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
[1]: https://lore.kernel.org/all/20261130194045.358943-1-ttabi@nvidia.com/
next prev parent reply other threads:[~2026-12-04 4:38 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 12:09 [PATCH 00/15] gpu: nova-core: switch to the r000 GSP firmware Alexandre Courbot
2026-12-03 12:09 ` [PATCH 01/15] gpu: nova-core: gsp: nvkv: add const constructor for Key Alexandre Courbot
2026-12-04 4:23 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 02/15] gpu: nova-core: gsp: add the GSP_INIT command and its reply Alexandre Courbot
2026-12-03 12:09 ` [PATCH 03/15] gpu: nova-core: gsp: populate VF information in GSP_INIT Alexandre Courbot
2026-12-03 14:03 ` Maxime Ripard
2026-12-03 14:32 ` Miguel Ojeda
2026-12-03 14:38 ` Maxime Ripard
2026-12-04 4:42 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 04/15] gpu: nova-core: gsp: re-export PowerStateLevel from gsp::commands Alexandre Courbot
2026-12-04 4:40 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 05/15] gpu: nova-core: gsp: add the GSP_SUSPEND request Alexandre Courbot
2026-12-04 4:39 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 06/15] gpu: nova-core: firmware: add the ucodes firmware loader Alexandre Courbot
2026-12-04 4:38 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 07/15] gpu: nova-core: gsp: define GSP_MSG_QUEUE_ELEMENT_SIZE_MAX without bindings Alexandre Courbot
2026-12-04 4:38 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 08/15] gpu: nova-core: fb: increase Blackwell reserved memory sizes for r000 Alexandre Courbot
2026-12-04 4:38 ` Eliot Courtney [this message]
2026-12-03 12:09 ` [PATCH 09/15] gpu: nova-core: gsp: drain the message queue while waiting for GSP suspend Alexandre Courbot
2026-12-04 4:33 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 10/15] gpu: nova-core: gsp: zero-initialize FMC boot parameter structs Alexandre Courbot
2026-12-04 4:30 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 11/15] gpu: nova-core: firmware: add r000 GSP bindings Alexandre Courbot
2026-12-04 4:29 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 12/15] gpu: nova-core: switch to the r000 GSP firmware Alexandre Courbot
2026-12-03 12:09 ` [PATCH 13/15] gpu: nova-core: gsp: delete the GSP sequencer Alexandre Courbot
2026-12-04 4:29 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 14/15] gpu: nova-core: gsp: delete the r570 RPC commands Alexandre Courbot
2026-12-04 4:28 ` Eliot Courtney
2026-12-03 12:09 ` [PATCH 15/15] gpu: nova-core: firmware: delete the r570 bindings Alexandre Courbot
2026-12-04 4:27 ` 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=DNBO5E0MTATJ.1M6FU4SNDYKH5@nvidia.com \
--to=ecourtney@nvidia.com \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=airlied@gmail.com \
--cc=aliceryhl@google.com \
--cc=alkumar@nvidia.com \
--cc=apopple@nvidia.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun@kernel.org \
--cc=corbet@lwn.net \
--cc=dakr@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=dri-devel-bounces@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gary@garyguo.net \
--cc=jhubbard@nvidia.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=nova-gpu@lists.linux.dev \
--cc=ojeda@kernel.org \
--cc=rdunlap@infradead.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=simona@ffwll.ch \
--cc=skhan@linuxfoundation.org \
--cc=tamird@kernel.org \
--cc=tmgross@umich.edu \
--cc=ttabi@nvidia.com \
--cc=tzimmermann@suse.de \
--cc=work@onurozkan.dev \
--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