sdma_v4_4_2_...witch_enable(9)
π sdma_v4_4_2_inst_ctx_switch_enable(9) π
okay so welcome to the Kernel API Manual, bestie β¨ this one's a little function page from the ./drivers/gpu/drm/amd/amdgpu corner of the universe β yes, the header's all truncated and dramatic like sdma_v4_4_2_...witch_enable(9), but the full name is right below, don't worry π«Ά
πΈ NAME πΈ
sdma_v4_4_2_inst_ctx_switch_enable β it stops the async dma engines context switch. that's literally it. that's the whole vibe. π
β¨ SYNOPSIS β¨
void sdma_v4_4_2_inst_ctx_switch_enable (struct amdgpu_device *adev ,
bool enable , uint32_t inst_mask );
like, it returns void β nothing comes back, it just does the thing and leaves. main character energy honestly π
π ARGUMENTS π
adevβ anamdgpu_devicepointer. yes bestie, it's the device. the whole device. π₯οΈenableβ aboolthat enables/disables the DMA MEs context switch.true= on,false= off, no in-between, no vibes in the middle πinst_maskβ auint32_tmask of dma engine instances to be enabled. it's a mask, so pick your faves π
π¦ DESCRIPTION π¦
Halt or unhalt the async dma engines context switch. that's it. halt, or unhalt. two options, both iconic. β¨
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c β go say hi π and then go read literally all of these, no skipping, i will know π:
sdma_v4_4_2_init_microcode(9)sdma_v4_4_2_ring_get_rptr(9)sdma_v4_4_2_ring_get_wptr(9)sdma_v4_4_2_ring_set_wptr(9)sdma_v4_4_2_page_ring_get_wptr(9)sdma_v4_4_2_page_ring_set_wptr(9)sdma_v4_4_2_ring_emit_ib(9)sdma_v4_4_2_ring_emit_hdp_flush(9)sdma_v4_4_2_ring_emit_fence(9)sdma_v4_4_2_inst_gfx_stop(9)sdma_v4_4_2_inst_rlc_stop(9)sdma_v4_4_2_inst_page_stop(9)sdma_v4_4_2_inst_enable(9)sdma_v4_4_2_gfx_resume(9)sdma_v4_4_2_page_resume(9)sdma_v4_4_2_inst_rlc_resume(9)sdma_v4_4_2_inst_load_microcode(9)sdma_v4_4_2_inst_start(9)sdma_v4_4_2_ring_test_ring(9)sdma_v4_4_2_ring_test_ib(9)sdma_v4_4_2_vm_copy_pte(9)sdma_v4_4_2_vm_write_pte(9)sdma_v4_4_2_vm_set_pte_pde(9)sdma_v4_4_2_ring_pad_ib(9)sdma_v4_4_2_ring_emit_pipeline_sync(9)sdma_v4_4_2_ring_emit_vm_flush(9)sdma_v4_4_2_emit_copy_buffer(9)sdma_v4_4_2_emit_fill_buffer(9)sdma_v4_4_2_update_reset_mask(9)
ngl there are no options, no environment variables, no exit statuses, no signals, and zero bugs listed on this page β if you were waiting for drama, this is not that page π the whole thing is literally just halt/unhalt. periodt. π
okay that's the whole page bestie, and before you go β this lil masterpiece came out of ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's calling itself sdma_v4_4_2_...witch_enable(9) up top because truncation is basically a personality at this point ππ stay hydrated, go halt something, love u π«Άβ¨
π¦ 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