NVIDIA GPU driver infrastructure
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Transition nova-core to use TLV variables for heap sizes
@ 2026-11-16 19:54 Timur Tabi
  2026-11-16 19:54 ` [PATCH v2 1/7] gpu: nova-core: add Tlv.get_u64 Timur Tabi
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Timur Tabi @ 2026-11-16 19:54 UTC (permalink / raw)
  To: Danilo Krummrich, Alexandre Courbot, John Hubbard, Eliot Courtney,
	nova-gpu

Starting with r615, the GSP-RM firmware TLVs (i.e. gsp.tlv) contain an
an additional six variables that that should be used to calculate the
various heap sizes that GSP-RM needs in order to boot.

These values are specific to each GPU and RM version, and are obtained
by scraping them from the OpenRM source tree.

Note that although this patch set is necessary to support r620 and later,
there are other, unrelated changes necessary to complete that support.

This patch set is based on Alex's r000_rebase_all branch:
https://github.com/Gnurou/linux/tree/r000_rebase_all

v2:
- broke down patchset into smaller chunks, without merging LibosParams
into GspFwHeapParams first.  Instead, we just augment GspFwHeapParams
in pieces, and then delete LibosParams at the end.
- Changed get_u64 to use try_from

Timur Tabi (7):
  gpu: nova-core: add Tlv.get_u64
  gpu: nova-core: read GSP heap variables from TLV
  gpu: nova-core: use the TLV heap sizes for pmu and non-wpr
  gpu: nova-core: remove heap size related HAL functions
  gpu: nova-core: add TLV versions of WPR heap size functions
  gpu: nova-core: change wpr2_heap_params to use TLV values
  gpu: nova-core: remove LibosParams

 drivers/gpu/nova-core/fb.rs            |  34 ++++---
 drivers/gpu/nova-core/fb/hal.rs        |   6 --
 drivers/gpu/nova-core/fb/hal/ga100.rs  |   8 --
 drivers/gpu/nova-core/fb/hal/ga102.rs  |   8 --
 drivers/gpu/nova-core/fb/hal/gb100.rs  |  41 +-------
 drivers/gpu/nova-core/fb/hal/gb202.rs  |  13 +--
 drivers/gpu/nova-core/fb/hal/gh100.rs  |  12 +--
 drivers/gpu/nova-core/fb/hal/tu102.rs  |  16 ----
 drivers/gpu/nova-core/firmware/gsp.rs  |   8 +-
 drivers/gpu/nova-core/firmware/tlv.rs  |  13 +++
 drivers/gpu/nova-core/gsp.rs           |   4 +-
 drivers/gpu/nova-core/gsp/fw.rs        | 126 ++++++++-----------------
 drivers/gpu/nova-core/gsp/hal/gh100.rs |   2 +-
 13 files changed, 86 insertions(+), 205 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-16 19:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16 19:54 [PATCH v2 0/7] Transition nova-core to use TLV variables for heap sizes Timur Tabi
2026-11-16 19:54 ` [PATCH v2 1/7] gpu: nova-core: add Tlv.get_u64 Timur Tabi
2026-11-16 19:54 ` [PATCH v2 2/7] gpu: nova-core: read GSP heap variables from TLV Timur Tabi
2026-11-16 19:54 ` [PATCH v2 3/7] gpu: nova-core: use the TLV heap sizes for pmu and non-wpr Timur Tabi
2026-11-16 19:54 ` [PATCH v2 4/7] gpu: nova-core: remove heap size related HAL functions Timur Tabi
2026-11-16 19:54 ` [PATCH v2 5/7] gpu: nova-core: add TLV versions of WPR heap size functions Timur Tabi
2026-11-16 19:54 ` [PATCH v2 6/7] gpu: nova-core: change wpr2_heap_params to use TLV values Timur Tabi
2026-11-16 19:54 ` [PATCH v2 7/7] gpu: nova-core: remove LibosParams Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox