Skip to content

nova-core: add initial support for gpu timer

Dave Airlie b4-sent nova-gpu rust-for-linux 1 version In review

Get series with b4
b4 am [email protected] change-id 20261026-drm-rust-next-d81ce0f4ecdf

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rust/timer: expose as_nanos for clock sources.rust/kernel/time.rs+2 -15 replies
2/2gpu: nova-core: add support for GPU timer block.drivers/gpu/nova-core/gpu.rs drivers/gpu/nova-core/nova_core.rs drivers/gpu/nova-core/regs.rs +4 more+231 -02 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAndreas HindborgFUJITA Tomonori
1/2A-b R-b
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] nova-core: add initial support for gpu timer

The GPU has a timer, one of the pieces of information we need to pass into GSP init later is the timer offset.

This series just adds support for setting up the timer on Turing+, with hals for Turing and Hopper.

Right now it calculates the value to send to GSP but the code to send it will be added later.

For some hardware variants sending a proper value is required for GSP init to succeed.

Dave.

---
Dave Airlie (2):
rust/timer: expose as_nanos for clock sources.
gpu: nova-core: add support for GPU timer block.

 drivers/gpu/nova-core/gpu.rs             |  5 +++
 drivers/gpu/nova-core/nova_core.rs       |  1 +
 drivers/gpu/nova-core/regs.rs            | 40 +++++++++++++++++++++
 drivers/gpu/nova-core/timer.rs           | 37 +++++++++++++++++++
 drivers/gpu/nova-core/timer/hal.rs       | 32 +++++++++++++++++
 drivers/gpu/nova-core/timer/hal/gh100.rs | 61 ++++++++++++++++++++++++++++++++
 drivers/gpu/nova-core/timer/hal/tu102.rs | 55 ++++++++++++++++++++++++++++
 rust/kernel/time.rs                      |  3 +-
 8 files changed, 233 insertions(+), 1 deletion(-)

---
base-commit: 3497a403264b094ebd61b8b755165d56e7d9dc37
change-id: 20261026-drm-rust-next-d81ce0f4ecdf

Best regards,

Signature · 1 line
Dave Airlie <[email protected]>