sdma_v5_2_enable(9)
π sdma_v5_2_enable(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this is a lil' page about one function, and honestly? it's giving "small but mighty". let's get into it π«Ά
β¨ NAME β¨
sdma_v5_2_enable β stop the async dma engines π
(no fr, that's what the NAME line says. the description down there is gonna give you the full picture, but yes, the headline is stop the async dma engines. iconic of it.)
πΈ SYNOPSIS πΈ
void sdma_v5_2_enable (struct amdgpu_device *adev , bool enable );
so it returns void (nothing comes back out, it just does the thing π
), and it takes exactly two things: a struct amdgpu_device *adev and a bool enable. that's it, that's the whole vibe check.
π ARGUMENTS π
adevβ theamdgpu_devicepointer π like, the device we're messing with. main character energy.enableβ enables/disables the DMA MEs. this is the little switch that decides which direction we're going in π
π¦ DESCRIPTION π¦
Halt or unhalt the async dma engines π₯
that's the whole bit ngl. you're either putting those engines to sleep or waking them back up β and enable is the flag that tells it which one. one bool, two destinies, no cap π§
π SEE ALSO π
the kernel file lives right here, bestie:
./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
and here's the whole friend group β every single one of these is a real reference on the page, so keep them close π«Ά
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_ctx_switch_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 whole thing comes out of ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β so yeah, mark your calendar, the future called and it's still explaining SDMA to us ππ slay, go read the source, ily, bye!! πβ
π¦ 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