amdgpu_vm_adjust_size(9)
π amdgpu_vm_adjust_size(9)
okay so bestie, welcome to the Kernel API Manual β today's main character is amdgpu_vm_adjust_size(9), and honestly? she's a little function with a big job π
β¨ NAME β¨
amdgpu_vm_adjust_size β adjust vm size, block size and fragment size
periodt, that's the whole vibe: she adjusts vm size, block size and fragment size. three things. iconic multitasker π
πΈ SYNOPSIS πΈ
void amdgpu_vm_adjust_size (struct amdgpu_device *adev , uint32_t
min_vm_size , uint32_t fragment_size_default , unsigned max_level ,
unsigned max_bits );
no cap, that's the exact signature, copy it character for character bestie π«Ά
π¦ ARGUMENTS π¦
okay here's the cast list, everyone gets a moment:
adevβ amdgpu_device pointer. yeah, the classic. the device itself walks in πmin_vm_sizeβ the minimum vm size in GB if it's set auto β read that clause again, it's conditional, don't @ me πfragment_size_defaultβ Default PTE fragment size. she's the default, she said so in the name πmax_levelβ max VMPT level πmax_bitsβ max address space size in bits β
that's all five, nobody left out, we love a complete cast π₯
π SEE ALSO π
bestie. brace yourself. the girl has a friend group and I'm listing every single one of them because every single one of them matters π
first, the home turf: Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
and then, in no particular order but honestly in the original order because I'm not about to mess with facts:
GPUVM(9)struct amdgpu_prt_cb(9)struct amdgpu_vm_tlb_seq_struct(9)amdgpu_vm_assert_locked(9)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_update_shared(9)amdgpu_vm_bo_update_shared(9)amdgpu_vm_update_stats_locked(9)amdgpu_vm_update_stats(9)amdgpu_vm_bo_base_init(9)amdgpu_vm_lock_pd(9)amdgpu_vm_lock_individual(9)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_flush(9)amdgpu_vm_bo_find(9)amdgpu_vm_map_gart(9)amdgpu_vm_update_pdes(9)amdgpu_vm_tlb_seq_cb(9)amdgpu_vm_tlb_flush(9)amdgpu_vm_update_range(9)amdgpu_vm_bo_update(9)amdgpu_vm_update_prt_state(9)amdgpu_vm_prt_get(9)amdgpu_vm_prt_put(9)amdgpu_vm_prt_cb(9)amdgpu_vm_add_prt_cb(9)amdgpu_vm_free_mapping(9)amdgpu_vm_prt_fini(9)amdgpu_vm_clear_freed(9)amdgpu_vm_handle_moved(9)amdgpu_vm_flush_compute_tlb(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_evictable(9)amdgpu_vm_bo_invalidate(9)amdgpu_vm_bo_move(9)amdgpu_vm_get_block_size(9)amdgpu_vm_wait_idle(9)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)amdgpu_vm_init(9)amdgpu_vm_make_compute(9)amdgpu_vm_fini(9)amdgpu_vm_manager_init(9)amdgpu_vm_manager_fini(9)amdgpu_vm_ioctl(9)amdgpu_vm_lock_by_pasid(9)amdgpu_vm_handle_fault(9)amdgpu_debugfs_vm_bo_info(9)amdgpu_vm_update_fault_cache(9)
sixty-eight plus the file path, and yes I counted, and yes I'm obsessed with her for having this many friends π lowkey the prt squad alone is giving main character energy π
ngl bestie, this page is short and sweet β no warnings, no exit statuses, no environment variables, no bug notes on this one. she's a clean girlie β¨ just args and a whole extended family in SEE ALSO.
and that's the whole page, bestie! sourced from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and filed under amdgpu_vm_adjust_size(9) β say it with me, slay ππ¦π
π¦ 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