Skip to content

Transition nova-core to use TLV variables for heap sizes

Timur Tabi nova-gpu 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 2 repliesIn review
  2. v27 patches 11 repliesSuperseded
  3. v15 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- various minor fixes from Elliot's review
- added #[allow(dead_code)] to for rust 1.85 compatibility

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7gpu: nova-core: add Tlv.get_u64drivers/gpu/nova-core/firmware/tlv.rs+14 -00 replies
2/7gpu: nova-core: read GSP heap variables from TLVdrivers/gpu/nova-core/firmware/tlv.rs drivers/gpu/nova-core/gsp/fw.rs+30 -41 reply
3/7gpu: nova-core: use the TLV heap sizes for pmu and non-wprdrivers/gpu/nova-core/fb.rs drivers/gpu/nova-core/fb/hal.rs drivers/gpu/nova-core/fb/hal/gb100.rs +5 more+31 -130 replies
4/7gpu: nova-core: remove heap size related HAL functionsdrivers/gpu/nova-core/fb/hal.rs drivers/gpu/nova-core/fb/hal/ga100.rs drivers/gpu/nova-core/fb/hal/ga102.rs +4 more+3 -1060 replies
5/7gpu: nova-core: add TLV versions of WPR heap size functionsdrivers/gpu/nova-core/gsp/fw.rs+29 -41 reply
6/7gpu: nova-core: change wpr2_heap_params to use TLV valuesdrivers/gpu/nova-core/fb.rs drivers/gpu/nova-core/gsp.rs drivers/gpu/nova-core/gsp/fw.rs+13 -120 replies
7/7gpu: nova-core: remove LibosParamsdrivers/gpu/nova-core/gsp/fw.rs+0 -960 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchEliot Courtney
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] Transition nova-core to use TLV variables for heap sizes

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

v3:
- various minor fixes from Elliot's review
- added #[allow(dead_code)] to for rust 1.85 compatibility

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            |  40 +++++---
 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        | 130 ++++++++-----------------
 drivers/gpu/nova-core/gsp/hal/gh100.rs |   2 +-
 13 files changed, 93 insertions(+), 208 deletions(-)
Signature · 1 line
2.54.0