sdma_v6_0_emit_copy_buffer(9)
π sdma_v6_0_emit_copy_buffer
okay so bestie, welcome to the Kernel API Manual β¨ this one's a function page and it's lowkey iconic β it's all about making the sDMA engine do a copy for you. no cap, it's a whole vibe.
π¦ NAME
sdma_v6_0_emit_copy_buffer β copy buffer using the sDMA engine π
β¨ SYNOPSIS
void sdma_v6_0_emit_copy_buffer (struct amdgpu_ib *ib , uint64_t
src_offset , uint64_t dst_offset , uint32_t byte_count , uint32_t
copy_flags );
likeβ¦ that's the whole signature, she's right there π
π ARGUMENTS
ibβ the indirect buffer you're gonna fill with commands π«Ά literally the canvas, the main charactersrc_offsetβ src GPU address. where the tea is coming from π«dst_offsetβ dst GPU address. where it's going, slay π―byte_countβ number of bytes to xfer π¦ the actual amount, don't fumble itcopy_flagsβ copy flags for the buffers π© the little settings that come along for the ride
πΈ DESCRIPTION
Copy GPU buffers using the DMA engine β¨ that's it, that's the job.
It's used by the amdgpu ttm implementation to move pages β but only if it's registered as the asic copy callback π so like, conditional queen behavior, iykyk.
π SEE ALSO
Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c β go read the source bestie, it's giving lore π
sdma_v6_0_ring_get_rptr(9)sdma_v6_0_ring_get_wptr(9)sdma_v6_0_ring_set_wptr(9)sdma_v6_0_ring_emit_mem_sync(9)sdma_v6_0_ring_emit_hdp_flush(9)sdma_v6_0_ring_emit_fence(9)sdma_v6_0_gfx_stop(9)sdma_v6_0_rlc_stop(9)sdma_v6_0_ctxempty_int_enable(9)sdma_v6_0_enable(9)sdma_v6_0_gfx_resume_instance(9)sdma_v6_0_gfx_resume(9)sdma_v6_0_rlc_resume(9)sdma_v6_0_load_microcode(9)sdma_v6_0_start(9)sdma_v6_0_ring_test_ring(9)sdma_v6_0_vm_copy_pte(9)sdma_v6_0_vm_write_pte(9)sdma_v6_0_vm_set_pte_pde(9)sdma_v6_0_ring_emit_pipeline_sync(9)sdma_v6_0_ring_emit_fence(9)... wait no, we already did that one π β anyway,sdma_v6_0_ring_emit_pipeline_sync(9)andsdma_v6_0_emit_fill_buffer(9)π«
and that's the whole page bestie, no notes π
okayyy sign-off time π this lil masterpiece lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's literally sdma_v6_0_emit_copy_buffer(9) β periodt πβ¨π¦
π¦ 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