linux/drivers/gpu
Danilo Krummrich bde0149ce5 rust: dma: tie DMA allocations to the device's bound lifetime
DMA allocations carry device resources (e.g. IOMMU mappings) that must
 not outlive the device's bound lifetime. Add lifetime parameters to the
 DMA allocation types (Coherent, CoherentBox, CoherentHandle) to enforce
 at compile time that they are freed before the device is unbound.
 
 Since DMA types with lifetime parameters are exposed through debugfs in
 the nova-core driver, first drop the unnecessary T: 'static bound from
 the debugfs ScopedDir file creation methods by formalizing a type
 invariant on FileOps.
 
 This is a stable tag for other trees to merge.
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQS2q/xV6QjXAdC7k+1FlHeO1qrKLgUCap13MgAKCRBFlHeO1qrK
 Ls1tAP9ugwnM86l9VMAN/oe82DKYLdrtM3CE1exgPBVyfXKICAD+Ky8yR7PDuN+6
 G9NInskajlb5+bzCWBpbt7Y2XylmDAw=
 =AwqP
 -----END PGP SIGNATURE-----

Merge patch series "rust: dma: tie DMA allocations to the device's bound lifetime"

Danilo Krummrich <dakr@kernel.org> says:

DMA allocations carry device resources (e.g. IOMMU mappings) that must
not outlive the device's bound lifetime. Add lifetime parameters to the
DMA allocation types (Coherent, CoherentBox, CoherentHandle) to enforce
at compile time that they are freed before the device is unbound.

Since DMA types with lifetime parameters are exposed through debugfs in
the nova-core driver, first drop the unnecessary T: 'static bound from
the debugfs ScopedDir file creation methods by formalizing a type
invariant on FileOps.

Link: https://patch.msgid.link/20260830193824.471089-1-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-09-07 22:50:04 +02:00
..
drm Merge 7.3-rc2 into driver-core-next 2026-09-07 17:08:52 +02:00
host1x Linux 7.2 2026-08-20 10:58:44 +10:00
ipu-v3
nova-core rust: dma: tie DMA allocations to the device's bound lifetime 2026-09-07 22:50:04 +02:00
tests drm/tests/gpu_buddy: fix interleaving in buffer clearance test 2026-08-06 18:07:10 +05:30
trace
vga
buddy.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
Kconfig gpu: Fix dependencies in CONFIG_GPU_BUDDY_KUNIT_TEST 2026-07-29 13:06:24 +02:00
Makefile