Skip to content

gpu: nova: adopt driver lifetime infrastructure

Danilo Krummrich dri-devel nova-gpu rust-for-linux 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5gpu: nova-core: use lifetime for Bardrivers/gpu/nova-core/driver.rs drivers/gpu/nova-core/gpu.rs+28 -371 reply
2/5gpu: nova-core: unregister sysmem flush page from Dropdrivers/gpu/nova-core/driver.rs drivers/gpu/nova-core/fb.rs drivers/gpu/nova-core/gpu.rs+11 -241 reply
3/5gpu: nova-core: replace ARef<Device> with &'bound Device in SysmemFlushdrivers/gpu/nova-core/fb.rs+4 -51 reply
4/5gpu: nova-core: gsp: replace ARef<Device> with &'a Device in sequencerdrivers/gpu/nova-core/gsp/boot.rs drivers/gpu/nova-core/gsp/sequencer.rs+6 -71 reply
5/5gpu: nova: separate driver type from driver datadrivers/gpu/drm/nova/driver.rs+7 -51 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEliot CourtneyAlexandre Courbot
SeriesR-b T-b
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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/5] gpu: nova: adopt driver lifetime infrastructure

Adopt the driver core lifetime infrastructure for nova.

Use the lifetime-bound pci::Bar directly in NovaCore, eliminating the Arc<Devres<Bar0>> indirection. This lets SysmemFlush borrow the Bar and implement Drop for automatic cleanup.

Replace ARef<Device> with plain borrows in SysmemFlush and the GSP sequencer, where the structs are already lifetime-parameterized.

Separate the driver type from the driver data to allow the private data to be lifetime-parameterized via the Data GAT.

This patch series is based on [1] and drm-rust-next.

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

Danilo Krummrich (5):
gpu: nova-core: use lifetime for Bar
gpu: nova-core: unregister sysmem flush page from Drop
gpu: nova-core: replace ARef<Device> with &'bound Device in
SysmemFlush
gpu: nova-core: gsp: replace ARef<Device> with &'a Device in sequencer
gpu: nova: separate driver type from driver data

 drivers/gpu/drm/nova/driver.rs         | 12 ++++----
 drivers/gpu/nova-core/driver.rs        | 32 +++++++++-------------
 drivers/gpu/nova-core/fb.rs            | 31 ++++++++++-----------
 drivers/gpu/nova-core/gpu.rs           | 38 ++++++++------------------
 drivers/gpu/nova-core/gsp/boot.rs      |  2 +-
 drivers/gpu/nova-core/gsp/sequencer.rs | 11 ++++----
 6 files changed, 52 insertions(+), 74 deletions(-)
Signature · 1 line
2.54.0