sdma_v2_4_emit_copy_buffer(9)
πΈ sdma_v2_4_emit_copy_buffer πΈ
okay so bestie, this is a page from the Kernel API Manual β it's all about sdma_v2_4_emit_copy_buffer(9), and honestly? it's giving "small function, big job" energy π
β¨ NAME β¨
sdma_v2_4_emit_copy_buffer β copy buffer using the sDMA engine π«Ά
π SYNOPSIS π
void sdma_v2_4_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, no cap. returns void, so it's not gonna hand you back anything β it just does the thing β¨
π ARGUMENTS π
ibβ the indirect buffer we're copying to. your destination-in-code, iykyk π¦src_offsetβ the src GPU address πdst_offsetβ the dst GPU address πbyte_countβ how many bytes to xfer, literally the amount of stuff we're moving π¦copy_flagsβ unused π yeah babe it's just sitting there, vibing, doing nothing
π₯ DESCRIPTION π₯
So basically: this copies GPU buffers using the DMA engine (VI). π
It's used by the amdgpu ttm implementation to move pages if it's registered as the asic copy callback. That's the whole vibe check β it's a callback, so it only gets called when the setup says so π§
π¦ SEE ALSO π¦
Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c β the main character herself π
sdma_v2_4_init_microcode(9)sdma_v2_4_ring_get_rptr(9)sdma_v2_4_ring_get_wptr(9)sdma_v2_4_ring_set_wptr(9)sdma_v2_4_ring_emit_ib(9)sdma_v2_4_ring_emit_hdp_flush(9)sdma_v2_4_ring_emit_fence(9)sdma_v2_4_gfx_stop(9)sdma_v2_4_rlc_stop(9)sdma_v2_4_enable(9)sdma_v2_4_gfx_resume(9)sdma_v2_4_rlc_resume(9)sdma_v2_4_start(9)sdma_v2_4_ring_test_ring(9)sdma_v2_4_ring_test_ib(9)sdma_v2_4_vm_copy_pte(9)sdma_v2_4_vm_write_pte(9)sdma_v2_4_vm_set_pte_pde(9)sdma_v2_4_ring_pad_ib(9)sdma_v2_4_ring_emit_pipeline_sync(9)sdma_v2_4_ring_emit_vm_flush(9)sdma_v2_4_emit_fill_buffer(9)
like a whole friend group honestly, all of them iconic in their own way π«Άπ
it lives in ./drivers/gpu/drm/amd/amdgpu β that's the neighborhood, bestie π‘
alright that's the whole page!! brought to you by the Kernel API Manual, dated October 2026, and the page is literally called sdma_v2_4_emit_copy_buffer(9) β slay, 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