sdma_v4_0_ctx_switch_enable(9)
π sdma_v4_0_ctx_switch_enable(9) β bestie edition
okay so welcome to the Kernel API Manual, babe β literally the whole vibe of this page is one function, sdma_v4_0_ctx_switch_enable(9), and it is lowkey doing one very specific thing for the async dma engines. let's get into it π«Ά
β¨ NAME β¨
sdma_v4_0_ctx_switch_enable β stops the async dma engines context switch. that's it. that's the whole job. iconic honestly π
πΈ SYNOPSIS πΈ
void sdma_v4_0_ctx_switch_enable (struct amdgpu_device *adev , bool
enable );
yeah she takes two things and gives you back absolutely nothing. void. no return value, no drama, no receipts. periodt. π
π¦ ARGUMENTS π¦
adevβ anamdgpu_devicepointer. like, your whole GPU situation, handed to you. super main character energy πenableβ aboolthat enables/disables the DMA MEs context switch. so you're either like "go off" or "halt, bestie" β pick one π¦
π DESCRIPTION π
halt or unhalt the async dma engines context switch (VEGA10). that's the tea β literally that's the description. you flip this bad boy one way and the context switch goes halt, flip it the other and it unhalts. VEGA10 specifically, no cap π₯
π SEE ALSO π
the kernel file herself: ./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c β she's the whole neighborhood, and here's everybody living on the block together:
sdma_v4_0_init_microcode(9)sdma_v4_0_ring_get_rptr(9)sdma_v4_0_ring_get_wptr(9)sdma_v4_0_ring_set_wptr(9)sdma_v4_0_page_ring_get_wptr(9)sdma_v4_0_page_ring_set_wptr(9)sdma_v4_0_ring_emit_ib(9)sdma_v4_0_ring_emit_hdp_flush(9)sdma_v4_0_ring_emit_fence(9)sdma_v4_0_gfx_enable(9)sdma_v4_0_rlc_stop(9)sdma_v4_0_page_stop(9)sdma_v4_0_enable(9)sdma_v4_0_gfx_resume(9)sdma_v4_0_page_resume(9)sdma_v4_0_rlc_resume(9)sdma_v4_0_load_microcode(9)sdma_v4_0_start(9)sdma_v4_0_ring_test_ring(9)sdma_v4_0_ring_test_ib(9)sdma_v4_0_vm_copy_pte(9)sdma_v4_0_vm_write_pte(9)sdma_v4_0_vm_set_pte_pde(9)sdma_v4_0_ring_pad_ib(9)sdma_v4_0_ring_emit_pipeline_sync(9)sdma_v4_0_ring_emit_vm_flush(9)sdma_v4_0_emit_copy_buffer(9)sdma_v4_0_emit_fill_buffer(9)
like i said. whole neighborhood. go read all of them, i'll wait π
ngl if you got this far you're officially a sdma_v4_0 girlie now. no notes, just vibes and DMA π§
and that's a wrap! π this little love letter lives down at ./drivers/gpu/drm/amd/amdgpu, and it was dated October 2026 β so mark your calendars, bestie. sdma_v4_0_ctx_switch_enable(9) out. slay responsibly β¨π¦
π¦ 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