sdma_v3_0_ctx_switch_enable(9)
π sdma_v3_0_ctx_switch_enable(9) π
okay bestie, welcome to the Kernel API Manual β yes we're literally in the kernel docs rn, and this page is called sdma_v3_0_ctx_switch_enable(9). it's giving niche-but-important, iykyk π
β¨ NAME β¨
sdma_v3_0_ctx_switch_enable β stop the async dma engines context switch
like, that's the whole vibe. that's what it does. no cap. π¦
πΈ SYNOPSIS πΈ
void sdma_v3_0_ctx_switch_enable (struct amdgpu_device *adev , bool
enable );
she takes two things and returns nothing (void, so no receipts, she just does the thing and leaves π
).
π ARGUMENTS π
adevβ amdgpu_device pointer. that's your device, your main character, the whole reason we're here π«Άenableβ enable/disable the DMA MEs context switch. so like,boolenergy: turn it on or turn it off, pick a lane β
π₯ DESCRIPTION π₯
Halt or unhalt the async dma engines context switch (VI).
that's it, that's the function. you're either pausing that context switch or you're un-pausing it, and it's specifically the (VI) flavor of the async dma engines. no extra lore, no side quests β just halt/unhalt, iconic behavior honestly π
π SEE ALSO π
first up, the source file she lives in β literally her address, her home base:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
and now the whole friend group, the entire sdma_v3_0 squad, all present and accounted for (not me listing all of them, but a promise is a promise π):
sdma_v3_0_init_microcode(9)sdma_v3_0_ring_get_rptr(9)sdma_v3_0_ring_get_wptr(9)sdma_v3_0_ring_set_wptr(9)sdma_v3_0_ring_emit_ib(9)sdma_v3_0_ring_emit_hdp_flush(9)sdma_v3_0_ring_emit_fence(9)sdma_v3_0_gfx_stop(9)sdma_v3_0_rlc_stop(9)sdma_v3_0_enable(9)sdma_v3_0_gfx_resume(9)sdma_v3_0_rlc_resume(9)sdma_v3_0_start(9)sdma_v3_0_ring_test_ring(9)sdma_v3_0_ring_test_ib(9)sdma_v3_0_vm_copy_pte(9)sdma_v3_0_vm_write_pte(9)sdma_v3_0_vm_set_pte_pde(9)sdma_v3_0_ring_pad_ib(9)sdma_v3_0_ring_emit_pipeline_sync(9)sdma_v3_0_ring_emit_vm_flush(9)sdma_v3_0_emit_copy_buffer(9)sdma_v3_0_emit_fill_buffer(9)
and that's the page!! π§ sign-off time: this whole thing lives under ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and yes the title is still sdma_v3_0_ctx_switch_enable(9) because we never forget where we came from π mwah, go halt something (or unhalt it, your call) π
π¦ 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