gpu: nova: adopt driver lifetime infrastructure
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | gpu: nova-core: use lifetime for Bardrivers/ drivers/ | +28 | 1 reply | |
| 2/5 | gpu: nova-core: unregister sysmem flush page from Dropdrivers/ drivers/ drivers/ | +11 | 1 reply | |
| 3/5 | gpu: nova-core: replace ARef<Device> with &'bound Device in SysmemFlushdrivers/ | +4 | 1 reply | |
| 4/5 | gpu: nova-core: gsp: replace ARef<Device> with &'a Device in sequencerdrivers/ drivers/ | +6 | 1 reply | |
| 5/5 | gpu: nova: separate driver type from driver datadrivers/ | +7 | 1 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.
| Patch | Eliot Courtney | Alexandre Courbot |
|---|---|---|
| Series | R-b T-b | |
| 1/5 | R-b | |
| 2/5 | R-b | |
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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