cik_sdma_ring_emit_fence(9)
π cik_sdma_ring_emit_fence(9) π
okay bestie, welcome to the Kernel API Manual β yes, that's the manual name, and yes, we're reading a GPU driver page together, this is our bonding activity now π«Ά
β¨ NAME β¨
cik_sdma_ring_emit_fence β the function that emits a fence on the DMA ring. that's it, that's the whole vibe. it drops a fence, it slays, it goes home π
π SYNOPSIS π
void cik_sdma_ring_emit_fence (struct amdgpu_ring *ring , u64 addr , u64 seq , unsigned flags );
she takes four arguments and returns void, so likeβ¦ she doesn't even give you a return value. no notes. icon behavior honestly π
πΈ ARGUMENTS πΈ
ringβ amdgpu ring pointer. this is the ring bb, the whole reason we're here πaddrβ address. justβ¦ the address. the place. the location. we move π¦seqβ sequence number. the number in question π’flagsβ fence related flags π© (fence-adjacent flags specifically, not just any random flags, okay??)
π₯ DESCRIPTION π₯
so what she actually does: she adds a DMA fence packet to the ring so that the fence seq number gets written out βοΈ β and then she also adds a DMA trap packet to generate an interrupt if needed β‘
and that's for CIK btw. iykyk π
that's the whole thing. tiny function, big main character energy. no cap π―
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/cik_sdma.c β go read the source bestie, it's giving lore πβ¨
and here's the whole friend group, all the cik_sdma girlies and their neighbors:
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_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)cik_sdma_emit_fill_buffer(9)
okay and one last lil sign-off because we're keeping the receipts π§Ύπ: this page comes from the source tree at ./drivers/gpu/drm/amd/amdgpu, she's dated October 2026, and her full name is cik_sdma_ring_emit_fence(9). stan. 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