amdgpu_vm_prt_fini(9)
π amdgpu_vm_prt_fini(9)
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is amdgpu_vm_prt_fini(9), and honestly she's a lil goodbye girl π
β¨ NAME β¨
amdgpu_vm_prt_fini β finish all prt mappings π¦
like, all of them. every last one. closing time, girlies πΈ
π SYNOPSIS π
void amdgpu_vm_prt_fini (struct amdgpu_device *adev , struct amdgpu_vm
*vm );
no return value, because she doesn't need to report back β she just does it π
π«Ά ARGUMENTS π«Ά
adevβ amdgpu_device pointer π your lil handle to the device, the passport she needs to get anything donevmβ requested vm π the virtual memory she's about to tidy up, specifically requested, no guessing
π DESCRIPTION π
Register a cleanup callback to disable PRT support after VM dies πͺ¦β¨
that's it, that's the whole vibe. she doesn't rip things apart herself β she registers a callback so that when the VM eventually passes away, PRT support gets switched off on the way out. booking the cleanup crew in advance, iykyk π§
π¦ SEE ALSO π¦
the source file, first of all, because we cite our sources in this house π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c,GPUVM(9)
and now the whole extended friend group π like genuinely, the entire group chat showed up:
struct amdgpu_prt_cb(9),struct amdgpu_vm_tlb_seq_struct(9)
the locking besties π
amdgpu_vm_assert_locked(9),amdgpu_vm_lock_pd(9),amdgpu_vm_lock_individual(9),amdgpu_vm_lock_by_pasid(9)
the bo girlies π
amdgpu_vm_is_bo_always_valid(9),amdgpu_vm_bo_evicted(9),amdgpu_vm_bo_needs_update(9),amdgpu_vm_bo_idle(9),amdgpu_vm_bo_reset_state_machine(9),amdgpu_vm_bo_base_init(9),amdgpu_vm_bo_find(9),amdgpu_vm_bo_update(9),amdgpu_vm_bo_add(9),amdgpu_vm_bo_insert_map(9),amdgpu_vm_bo_map(9),amdgpu_vm_bo_replace_map(9),amdgpu_vm_bo_unmap(9),amdgpu_vm_bo_clear_mappings(9),amdgpu_vm_bo_lookup_mapping(9),amdgpu_vm_bo_trace_cs(9),amdgpu_vm_bo_del(9),amdgpu_vm_bo_invalidate(9),amdgpu_vm_bo_move(9),amdgpu_vm_bo_update_shared(9)
the update/stats crew π₯
amdgpu_vm_update_shared(9),amdgpu_vm_update_stats_locked(9),amdgpu_vm_update_stats(9),amdgpu_vm_update_range(9),amdgpu_vm_update_pdes(9),amdgpu_vm_update_prt_state(9),amdgpu_vm_update_fault_cache(9)
the PRT squad, obviously, since this is her page π
the TLB girlies β
the lifecycle + validation icons π
amdgpu_vm_move_to_lru_tail(9),amdgpu_vm_generation(9),amdgpu_vm_validate(9),amdgpu_vm_ready(9),amdgpu_vm_check_compute_bug(9),amdgpu_vm_need_pipeline_sync(9),amdgpu_vm_map_gart(9),amdgpu_vm_free_mapping(9),amdgpu_vm_clear_freed(9),amdgpu_vm_handle_moved(9),amdgpu_vm_evictable(9)
the size + housekeeping angels π
the task-info cuties πΈ
amdgpu_vm_put_task_info(9),amdgpu_vm_get_task_info_vm(9),amdgpu_vm_get_task_info_pasid(9),amdgpu_vm_set_task_info(9)
the init/fini main characters π
amdgpu_vm_init(9),amdgpu_vm_make_compute(9),amdgpu_vm_fini(9),amdgpu_vm_manager_init(9),amdgpu_vm_manager_fini(9)
the ioctl + fault handlers, working hard fr fr π
lowkey obsessed with how a tiny cleanup function has this many friends. no cap, that's community π«Ά
and that's the whole page, bestie π this lil masterpiece lives down in ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β slay, see you in the next manpage π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms