sdma_v4_0_emit_fill_buffer(9)
π sdma_v4_0_emit_fill_buffer(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one's all about sdma_v4_0_emit_fill_buffer, and honestly? she's a whole vibe. she fills buffers. with the sDMA engine. that's the tweet. π¦
πΈ SYNOPSIS πΈ
void sdma_v4_0_emit_fill_buffer (struct amdgpu_ib *ib , uint32_t
src_data , uint64_t dst_offset , uint32_t byte_count );
like yes, that's the whole signature, no cap β void, so she doesn't even return anything to you. she just does it. main character energy fr fr π
π ARGUMENTS π
ibβ the indirect buffer you're copying to. the canvas. the moment. ποΈsrc_dataβ the actual value being written into the buffer. this is the ~content~ bestie, it's auint32_tand it's iconic.dst_offsetβ the dst GPU address, as auint64_t. where the magic lands. πbyte_countβ how many bytes to xfer. yes "xfer", yes that's the manpage's word, we keep the lore. auint32_tof pure quantity. π’
β DESCRIPTION β
Fill GPU buffers using the DMA engine, and specifically for VEGA10/12. that's it. that's the whole description. short, sweet, absolutely ate. π₯
ngl it's giving "small function, big job" β she fills your GPU buffers via the DMA engine and then dips. π§
π SEE ALSO π
- the kernel file itself,
./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.cβ go read the source, iykyk π«Ά sdma_v4_0_init_microcode(9)sdma_v4_0_ring_get_rptr(9)sdma_v4_0_ring_get_wptr(9)sdma_v4_0_ring_set_wptr(9)sdma_v4_0_page_ring_get_wptr(9)sdma_v4_0_page_ring_set_wptr(9)sdma_v4_0_ring_emit_ib(9)sdma_v4_0_ring_emit_hdp_flush(9)sdma_v4_0_ring_emit_fence(9)sdma_v4_0_gfx_enable(9)sdma_v4_0_rlc_stop(9)sdma_v4_0_page_stop(9)sdma_v4_0_ctx_switch_enable(9)sdma_v4_0_enable(9)sdma_v4_0_gfx_resume(9)sdma_v4_0_page_resume(9)sdma_v4_0_rlc_resume(9)sdma_v4_0_load_microcode(9)sdma_v4_0_start(9)sdma_v4_0_ring_test_ring(9)sdma_v4_0_ring_test_ib(9)sdma_v4_0_vm_copy_pte(9)sdma_v4_0_vm_write_pte(9)sdma_v4_0_vm_set_pte_pde(9)sdma_v4_0_ring_pad_ib(9)sdma_v4_0_ring_emit_pipeline_sync(9)sdma_v4_0_ring_emit_vm_flush(9)sdma_v4_0_emit_copy_buffer(9)β her sister function, literally the copy counterpart, obsessed π
ok that's the whole page bestie, every flag and every reference accounted for, no skips, no summaries, we keep the lore intact π
and that's a wrap! brought to you by the fine folks over at ./drivers/gpu/drm/amd/amdgpu, stamped October 2026 β mwah, slay, 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