sdma_v4_4_2_..._copy_buffer(9)
π sdma_v4_4_2_emit_copy_buffer π
okay so this is a page from the Kernel API Manual bestie, and it's all about sdma_v4_4_2_emit_copy_buffer β say that five times fast, i literally can't π
β¨ NAME β¨
sdma_v4_4_2_emit_copy_buffer β copy buffer using the sDMA engine π«Ά
πΈ SYNOPSIS πΈ
void sdma_v4_4_2_emit_copy_buffer (struct amdgpu_ib *ib , uint64_t
src_offset , uint64_t dst_offset , uint32_t byte_count , uint32_t
copy_flags );
like, yes, that's the whole signature, no cap π
π ARGUMENTS π
ibβ indirect buffer to copy to. this is the destination of the command, not the data, before u get confused bestie πsrc_offsetβ src GPU address πdst_offsetβ dst GPU address πbyte_countβ number of bytes to xfer. yes "xfer", that's what it says, i don't make the rules π¦copy_flagsβ copy flags for the buffers β¨
π§ DESCRIPTION π§
so what does it do? it copies GPU buffers using the DMA engine, literally that's it, main character energy π₯
and like, the important lore: it's used by the amdgpu ttm implementation to move pages if it's registered as the asic copy callback. that "if" is doing so much work, pay attention to it π
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c β go read it iykwim π
and here's the whole friend group, all of them, every single one, i'm not skipping anybody π«Ά:
sdma_v4_4_2_init_microcode(9)sdma_v4_4_2_ring_get_rptr(9)sdma_v4_4_2_ring_get_wptr(9)sdma_v4_4_2_ring_set_wptr(9)sdma_v4_4_2_page_ring_get_wptr(9)sdma_v4_4_2_page_ring_set_wptr(9)sdma_v4_4_2_ring_emit_ib(9)sdma_v4_4_2_ring_emit_hdp_flush(9)sdma_v4_4_2_ring_emit_fence(9)sdma_v4_4_2_inst_gfx_stop(9)sdma_v4_4_2_inst_rlc_stop(9)sdma_v4_4_2_inst_page_stop(9)sdma_v4_4_2_inst_ctx_switch_enable(9)sdma_v4_4_2_inst_enable(9)sdma_v4_4_2_gfx_resume(9)sdma_v4_4_2_page_resume(9)sdma_v4_4_2_inst_rlc_resume(9)sdma_v4_4_2_inst_load_microcode(9)sdma_v4_4_2_inst_start(9)sdma_v4_4_2_ring_test_ring(9)sdma_v4_4_2_ring_test_ib(9)sdma_v4_4_2_vm_copy_pte(9)sdma_v4_4_2_vm_write_pte(9)sdma_v4_4_2_vm_set_pte_pde(9)sdma_v4_4_2_ring_pad_ib(9)sdma_v4_4_2_ring_emit_pipeline_sync(9)sdma_v4_4_2_ring_emit_vm_flush(9)sdma_v4_4_2_emit_fill_buffer(9)sdma_v4_4_2_update_reset_mask(9)
π ok real talk: hierarchy issdma_v4_4_2βemit_copy_buffer, everything else is a sibling. keep them straight and ur fine β¨
and that's the page bestie, mwah π this came out of ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and yes it's giving "kernel docs meet group chat" β slay, periodt, go move some pages ππ¦
π¦ 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