]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Merge tag 'dd-lifetimes-7.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorDanilo Krummrich <dakr@kernel.org>
Thu, 28 May 2026 22:53:14 +0000 (00:53 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 28 May 2026 22:53:14 +0000 (00:53 +0200)
Higher-Ranked Lifetime Types for Rust device drivers

Replace drvdata() with registration data on the auxiliary bus. Private
data is now scoped to the registration object, removing the ordering
constraints and lifetime complications that came with drvdata().

Add Higher-Ranked Lifetime Types (HRT) so driver structs can borrow
device resources like pci::Bar and IoMem directly, tied to the device
binding scope. This removes the need for Devres indirection and
ARef<Device> in most driver code.

This is a stable tag for other trees to merge.

Signed-off-by: Danilo Krummrich <dakr@kernel.org>
1  2 
drivers/gpu/drm/nova/driver.rs
drivers/gpu/drm/tyr/driver.rs
drivers/gpu/nova-core/gpu.rs
drivers/gpu/nova-core/nova_core.rs
rust/Makefile

Simple merge
index f0c2d6e4db3a191f74247e6349ce08f3a67f447d,04f83fcf0937170ee9e844f1ab505dd4d62730a5..98732afc096f44a4940f2bef7f93f860fc101556
@@@ -38,13 -31,13 +38,13 @@@ use kernel::
  
  use crate::{
      file::TyrDrmFileData,
 -    gem::TyrObject,
 +    gem::BoData,
      gpu,
      gpu::GpuInfo,
 -    regs, //
 +    regs::gpu_control::*, //
  };
  
- pub(crate) type IoMem = kernel::io::mem::IoMem<SZ_2M>;
+ pub(crate) type IoMem = kernel::io::mem::IoMem<'static, SZ_2M>;
  
  pub(crate) struct TyrDrmDriver;
  
Simple merge
Simple merge
diff --cc rust/Makefile
Simple merge