cik_sdma_ctx_switch_enable(9)
π cik_sdma_ctx_switch_enable(9) π
okay so bestie, we're in the Kernel API Manual today and this one is a little function with a big job π«Ά
β¨ NAME β¨
cik_sdma_ctx_switch_enable β literally turns the sdma engine preemption on and off, no cap π
πΈ SYNOPSIS πΈ
void cik_sdma_ctx_switch_enable (struct radeon_device *rdev , bool enable );
like, that's it. that's the whole vibe. π
π¦ ARGUMENTS π¦
rdevβ aradeon_devicepointer, i.e. your little handle on the radeon device β¨enableβ flip preemption on or off. that's the whole switch, bestie ποΈ
π₯ DESCRIPTION π₯
it halts β or unhalts β the async dma engines. on CIK. that's the entire plot π¬
like, the function is literally the pause/play button for those engines, and honestly? iconic.
π SEE ALSO π
the kernel file it lives in is ./drivers/gpu/drm/radeon/cik_sdma.c β and here's the whole friend group fr fr:
cik_sdma_get_rptr(9)cik_sdma_get_wptr(9)cik_sdma_set_wptr(9)cik_sdma_ring_ib_execute(9)cik_sdma_hdp_flush_ring_emit(9)cik_sdma_fence_ring_emit(9)cik_sdma_semaphore_ring_emit(9)cik_sdma_gfx_stop(9)cik_sdma_rlc_stop(9)cik_sdma_enable(9)cik_sdma_gfx_resume(9)cik_sdma_rlc_resume(9)cik_sdma_load_microcode(9)cik_sdma_resume(9)cik_sdma_fini(9)cik_copy_dma(9)cik_sdma_ring_test(9)cik_sdma_ib_test(9)cik_sdma_is_lockup(9)cik_sdma_vm_copy_pages(9)cik_sdma_vm_write_pages(9)cik_sdma_vm_set_pages(9)cik_sdma_vm_pad_ib(9)
bestie this page ships out of ./drivers/gpu/drm/radeon and it's dated October 2026 β so yeah, from the future, slay πβ¨ bye, ily, go halt some engines π§ββοΈπ
π¦ 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