diff options
| author | Boris Brezillon <boris.brezillon@collabora.com> | 2026-06-10 17:04:31 -0700 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-06-12 22:28:36 +0200 |
| commit | 5f7410aa26524101d34b627fbe16670b1514962c (patch) | |
| tree | c2468837a90651e66f096a1dd3ccdc93ed3d4e69 /tools/perf/scripts/python/bin | |
| parent | 20003c1a1fd80ae1b1742ff54297b67f7f21b77f (diff) | |
rust: drm: gpuvm: add SmContext lifetime bound
If a DriverGpuVm implementation is lifetime-parameterized, its
SmContext<'ctx> type may depend on lifetimes carried by that driver
implementation. In this case, SmContext<'ctx> is only valid if the
driver implementation outlives 'ctx.
Add a Self: 'ctx bound to DriverGpuVm::SmContext<'ctx> to express that
requirement. Then propagate the corresponding T: 'ctx bound to the GPUVM
state machine helper types that store T::SmContext<'ctx>.
This allows drivers to provide lifetime-parameterized implementations of
DriverGpuVm.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260610-gpuvm_smcontext_lifetime_bound_v1-v1-1-531e7d2ee7b4@collabora.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
