Skip to content

gpu: nova-core: Hopper/Blackwell prerequisites

John Hubbard lkml nouveau rust-for-linux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesIn review
  2. v16 patches 17 repliesSuperseded

Changes in v2 from the cover letter

0) Rebased on top of today's drm-rust-next.

1) Use a new FbRange newtype, in order to clean up the implementation of printing ranges with sizes. (Thanks to Alex Courbot's suggestion.)

2) Combined the Hopper and Blackwell HAL additions, into a single patch, as recommended by Timur Tabi.

3) Used a separate patch to change the "use" lines to vertical format. That patch is already a commit in drm-rust-next, so this series builds on top of that.

4) Dropped one patch entirely, because the boot0/boot42 commits fixed up everything already.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5gpu: nova-core: print FB sizes, along with rangesdrivers/gpu/nova-core/fb.rs+49 -170 replies
2/5gpu: nova-core: add FbRange.len() and use it in boot.rsdrivers/gpu/nova-core/fb.rs drivers/gpu/nova-core/gsp/boot.rs+7 -14 replies
3/5gpu: nova-core: Hopper/Blackwell: basic GPU identificationdrivers/gpu/nova-core/falcon/hal.rs drivers/gpu/nova-core/fb/hal.rs drivers/gpu/nova-core/firmware/gsp.rs +1 more+43 -40 replies
4/5nova-core: factor .fwsignature* selection into a new get_gsp_sigs_section()drivers/gpu/nova-core/firmware/gsp.rs+23 -200 replies
5/5gpu: nova-core: use GPU Architecture to simplify HAL selectionsdrivers/gpu/nova-core/falcon/hal.rs drivers/gpu/nova-core/fb/hal.rs+22 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] gpu: nova-core: Hopper/Blackwell prerequisites

Hi,

I'm posting this now, instead of with the upcoming full Hopper/Blackwell series, because this includes some HAL improvements here that will undoubtedly interact "a little bit" with Timur Tabi's Turing support patchset [1].

Changes in v2:

0) Rebased on top of today's drm-rust-next.

1) Use a new FbRange newtype, in order to clean up the implementation of printing ranges with sizes. (Thanks to Alex Courbot's suggestion.)

2) Combined the Hopper and Blackwell HAL additions, into a single patch, as recommended by Timur Tabi.

3) Used a separate patch to change the "use" lines to vertical format. That patch is already a commit in drm-rust-next, so this series builds on top of that.

4) Dropped one patch entirely, because the boot0/boot42 commits fixed up everything already.

As implied above, this is based on top of today's drm-rust-next. There is also a branch, for convenience in reviewing:

https://github.com/johnhubbard/linux/tree/nova-core-blackwell-prereqs-v2

[1] https://lore.kernel.org/[email protected]

************************************************************************
Here's the original cover letter, edited slightly (removed the link to the v0 series, to avoid anyone going there by mistake):

I've based these Hopper/Blackwell prerequisites on top of Joel's and Alex's changes, and also on top of my recent boot0/boot42 changes.

This makes it easier for both Timur Tabi to post his Turing support (which he's about ready to do), and for me to post the actual Hopper/Blackwell support, without generating conflicts.

Testing: This works as expected on Ampere and Blackwell (bare metal), on my local test machine.

John Hubbard (5):
gpu: nova-core: print FB sizes, along with ranges
gpu: nova-core: add FbRange.len() and use it in boot.rs
gpu: nova-core: Hopper/Blackwell: basic GPU identification
nova-core: factor .fwsignature* selection into a new
get_gsp_sigs_section()
gpu: nova-core: use GPU Architecture to simplify HAL selections

 drivers/gpu/nova-core/falcon/hal.rs   | 19 ++++---
 drivers/gpu/nova-core/fb.rs           | 72 ++++++++++++++++++++-------
 drivers/gpu/nova-core/fb/hal.rs       | 18 +++----
 drivers/gpu/nova-core/firmware/gsp.rs | 30 +++++++++--
 drivers/gpu/nova-core/gpu.rs          | 22 ++++++++
 drivers/gpu/nova-core/gsp/boot.rs     |  2 +-
 6 files changed, 125 insertions(+), 38 deletions(-)

base-commit: 57dc2ea0b7bdb828c5d966d9135c28fe854933a4

Signature · 1 line
2.52.0