cik_sdma_emit_fill_buffer(9)
π cik_sdma_emit_fill_buffer β kernel API manual, section 9, bestie
Okay so picture this: you're deep in the kernel API manual (section 9, the driver-functions girlies β¨) and you stumble onto cik_sdma_emit_fill_buffer. That's our main character today. We're filling buffers. With the sDMA engine. It's giving hardware-accelerated glamour, no cap. π
β¨ NAME β¨
cik_sdma_emit_fill_buffer β literally fills a buffer using the sDMA engine π¦
πΈ SYNOPSIS πΈ
void cik_sdma_emit_fill_buffer (struct amdgpu_ib *ib , uint32_t src_data
, uint64_t dst_offset , uint32_t byte_count );
Like, it returns nothing (void) and takes four things. That's it. That's the whole vibe check. π
π«Ά ARGUMENTS π«Ά
ibβ the indirect buffer we're filling, bestie. This is the one getting the glow-up. β¨src_dataβ the value to write into the buffer. The actual content. The personality, if you will. πdst_offsetβ the dst GPU address. Where it's all going down. πbyte_countβ number of bytes to xfer. How much we're moving. The dosage, lowkey. π₯
π DESCRIPTION π
Fill GPU buffers using the DMA engine (CIK). That's the whole tea. β The DMA engine does the heavy lifting so you don't have to, and honestly? Iconic behaviour. Not me being obsessed with a memory-fill function fr fr π
π SEE ALSO π
The source lives in the kernel file ./drivers/gpu/drm/amd/amdgpu/cik_sdma.c β go read it, iykyk π§
And here's the whole friend group, all present and accounted for, not one skipped (I would never π):
cik_sdma_init_microcode(9)cik_sdma_ring_get_rptr(9)cik_sdma_ring_get_wptr(9)cik_sdma_ring_set_wptr(9)cik_sdma_ring_emit_ib(9)cik_sdma_ring_emit_hdp_flush(9)cik_sdma_ring_emit_fence(9)cik_sdma_gfx_stop(9)cik_sdma_rlc_stop(9)cik_ctx_switch_enable(9)cik_sdma_enable(9)cik_sdma_gfx_resume(9)cik_sdma_rlc_resume(9)cik_sdma_load_microcode(9)cik_sdma_start(9)cik_sdma_ring_test_ring(9)cik_sdma_ring_test_ib(9)cik_sdma_vm_copy_pte(9)cik_sdma_vm_write_pte(9)cik_sdma_vm_set_pte_pde(9)cik_sdma_ring_pad_ib(9)cik_sdma_ring_emit_pipeline_sync(9)cik_sdma_ring_emit_vm_flush(9)cik_sdma_emit_copy_buffer(9)
Okay that's the whole page, periodt. π This little beauty comes from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's filed under cik_sdma_emit_fill_buffer(9). Go fill some buffers, bestie β slay. π¦β¨
π¦ 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