On Thu Jul 30, 2026 at 7:05 PM CEST, Alvin Sun wrote:
> +impl drm::debugfs::DrmSeqShow<TyrDrmDriver> for GpuvasShow {
> + fn show(guard: &drm::RegistrationGuard<'_, TyrDrmDriver>, m:
> &seq_file::SeqFile) -> Result {
> + guard.registration_data_with(|reg_data| {
> + reg_data
> + .debugfs_data
> + .gpuvas
> + .for_each(|vm| vm.dump_gpuva_info(m))
> + })
> + }
> +}
Should simplify to:
impl SeqShow<TyrDrmRegistrationData<'_>> for GpuvasShow {
fn show(reg_data: &TyrDrmRegistrationData<'_>, m: &SeqFile) ->
Result {
reg_data
.debugfs_data
.gpuvas
.for_each(|vm| vm.dump_gpuva_info(m))
}
}
> + fn debugfs_init<'a>(dev: &'a drm::Device<Self, drm::Normal>, dir:
> &ScopedDir<'a, 'static>) {
> + dir.seq_file::<GpuvasShow, _>(c"gpuvas", dev);
> + }
Should become:
fn debugfs_init(dir: &debugfs::ScopeRef<'_,
TyrDrmRegistrationData<'_>>) {
dir.seq_file::<GpuvasShow>(c"gpuvas");
}