amdgpu_vmid_reset(9)
π amdgpu_vmid_reset(9)
okay so bestie, welcome to the Kernel API Manual β this one's a tiny little function page and honestly it's giving "short but important" energy. It lives in the kernel docs, and we're gonna go through it together, no cap. π
β¨ NAME β¨
amdgpu_vmid_reset β reset VMID to zero
that's it, that's the whole name section. iconic brevity. π
πΈ SYNOPSIS πΈ
void amdgpu_vmid_reset (struct amdgpu_device *adev , unsigned vmhub ,
unsigned vmid );
so it returns void, meaning it literally gives nothing back β no return value, no drama, it just does the thing. π
π¦ ARGUMENTS π¦
adevβ the amdgpu device structure. like, the whole device, bestie. it's the main character of this call. πvmhubβ the vmhub type. yes, that's exactly as vague as the original is, and we're respecting it. π«Άvmidβ the vmid number to use. the actual number you're handing over. π’
π DESCRIPTION π
okay so here's the tea: this function resets saved GDW, GWS and OA β all three, together, on purpose β and the whole point is to force a switch on the next flush. that's the vibe. nothing more, nothing less. it's a clean slate moment. β¨
no hidden caveats, no warning labels, no "don't do this at home" β just a straight-up reset. periodt. π
π SEE ALSO π
the kernel file where this little gem lives:
./drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
and the whole friend group it runs with (fr fr, all of these, not skipping a single one):
amdgpu_pasid_alloc(9)amdgpu_pasid_free(9)amdgpu_pasid_clear_owner(9)amdgpu_pasid_lock(9)amdgpu_pasid_unlock(9)amdgpu_pasid_get_fpriv_locked(9)amdgpu_pasid_free_delayed(9)amdgpu_vmid_had_gpu_reset(9)amdgpu_vmid_grab_idle(9)amdgpu_vmid_grab_reserved(9)amdgpu_vmid_grab_used(9)amdgpu_vmid_grab(9)amdgpu_vmid_reset_all(9)amdgpu_vmid_mgr_init(9)amdgpu_vmid_mgr_fini(9)amdgpu_pasid_mgr_cleanup(9)
like, go read those too if you wanna understand the whole picture. iykyk. π§
ok that's the whole page, bestie β short, sweet, and it slays. mwah. π
and that's a wrap! this lil page came out of ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β see you next time, love u, bye! ππ«Άβ
π¦ 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