sdma_v5_2_ctx_switch_enable(9)
π sdma_v5_2_ctx_switch_enable β the Kernel API Manual, bestie edition β¨
okay so you're reading the sdma_v5_2_ctx_switch_enable(9) page from the Kernel API Manual and honestly? slay. you came to the right place. we're gonna get you fluent in this one, no cap π«Ά
πΈ NAME πΈ
sdma_v5_2_ctx_switch_enable β lowkey stops the async dma engines context switch π
like yes that's the whole name section, it ate and left no crumbs.
β¨ SYNOPSIS β¨
void sdma_v5_2_ctx_switch_enable (struct amdgpu_device *adev , bool
enable );
it returns void, meaning it gives you nothing back, and it's fine, it's on its β¨ main character energy β¨ journey.
π ARGUMENTS π
adevβ anamdgpu_devicepointer. it's giving "here's my whole device, bestie, handle it" πenableβ aboolthat says whether to enable/disable the DMA MEs context switch. literally the on/off switch for the vibe check π
π¦ DESCRIPTION π¦
Halt or unhalt the async dma engines context switch. that's it, that's the tea β β you're pausing it or you're un-pausing it, no in between, no "it's complicated".
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c β that's the source, go be nosy, iykyk π§
and here's the whole friend group, all of them (9), all of them iconic:
sdma_v5_2_ring_get_rptr(9)sdma_v5_2_ring_get_wptr(9)sdma_v5_2_ring_set_wptr(9)sdma_v5_2_ring_emit_ib(9)sdma_v5_2_ring_emit_mem_sync(9)sdma_v5_2_ring_emit_hdp_flush(9)sdma_v5_2_ring_emit_fence(9)sdma_v5_2_gfx_stop(9)sdma_v5_2_rlc_stop(9)sdma_v5_2_enable(9)sdma_v5_2_gfx_resume_instance(9)sdma_v5_2_gfx_resume(9)sdma_v5_2_rlc_resume(9)sdma_v5_2_load_microcode(9)sdma_v5_2_start(9)sdma_v5_2_ring_test_ring(9)sdma_v5_2_ring_test_ib(9)sdma_v5_2_vm_copy_pte(9)sdma_v5_2_vm_write_pte(9)sdma_v5_2_vm_set_pte_pde(9)sdma_v5_2_ring_pad_ib(9)sdma_v5_2_ring_emit_pipeline_sync(9)sdma_v5_2_ring_emit_vm_flush(9)sdma_v5_2_emit_copy_buffer(9)sdma_v5_2_emit_fill_buffer(9)
and that's the page, bestie π this little gem lives in ./drivers/gpu/drm/amd/amdgpu, it's dated October 2026, and it's filed under sdma_v5_2_ctx_switch_enable(9) in the Kernel API Manual β go forth and context-switch 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