nova-gpu.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Timur Tabi <ttabi@nvidia.com>
To: Danilo Krummrich <dakr@kernel.org>,
	Alexandre Courbot <acourbot@nvidia.com>,
	John Hubbard <jhubbard@nvidia.com>,
	Eliot Courtney <ecourtney@nvidia.com>, <nova-gpu@lists.linux.dev>
Subject: [PATCH v2 0/7] Transition nova-core to use TLV variables for heap sizes
Date: Mon, 16 Nov 2026 13:54:34 -0600	[thread overview]
Message-ID: <20261116195441.940595-1-ttabi@nvidia.com> (raw)

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


             reply	other threads:[~2026-11-16 19:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 19:54 Timur Tabi [this message]
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

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=20261116195441.940595-1-ttabi@nvidia.com \
    --to=ttabi@nvidia.com \
    --cc=acourbot@nvidia.com \
    --cc=dakr@kernel.org \
    --cc=ecourtney@nvidia.com \
    --cc=jhubbard@nvidia.com \
    --cc=nova-gpu@lists.linux.dev \
    /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;
as well as URLs for NNTP newsgroup(s).