cik_copy_dma(9)
π cik_copy_dma β a kernel API manual moment
okay so bestie, welcome to cik_copy_dma(9), straight out of the Kernel API Manual β¨ she's a kernel function, she's a lil niche, and honestly? she eats. let's get into it π«Ά
πΈ NAME πΈ
cik_copy_dma β copy pages using the DMA engine π« like literally that's her whole job and she does it gorgeously
β¨ SYNOPSIS β¨
struct radeon_fence * cik_copy_dma (struct radeon_device *rdev ,
uint64_t src_offset , uint64_t dst_offset , unsigned num_gpu_pages ,
struct dma_resv *resv );
no cap, that's the whole signature β copy it exactly if you're typing it out, i'm not about to let you typo your way through this π
π ARGUMENTS π
rdevβ aradeon_devicepointer, aka the whole device vibe check πsrc_offsetβ the src GPU address, like where the tea is coming from π¦dst_offsetβ the dst GPU address, aka where it's all going πnum_gpu_pagesβ number of GPU pages to xfer, so likeβ¦ count your pages bestie π’resvβ reservation object to sync to, the lil sync icon of the whole operation β
π DESCRIPTION π
so basically she copies GPU paging using the DMA engine (CIK) β¨ the way that she's literally the one doing the heavy liftingβ¦
she's used by the radeon ttm implementation to move pages β but only if she's registered as the asic copy callback. iykyk π it's giving "i'm on the callback list or i'm not showing up" energy, periodt.
π SEE ALSO π
kernel file ./drivers/gpu/drm/radeon/cik_sdma.c and her entire friend group, fr fr β every single one of them, no skipping:
cik_sdma_get_rptr(9)cik_sdma_get_wptr(9)cik_sdma_set_wptr(9)cik_sdma_ring_ib_execute(9)cik_sdma_hdp_flush_ring_emit(9)cik_sdma_fence_ring_emit(9)cik_sdma_semaphore_ring_emit(9)cik_sdma_gfx_stop(9)cik_sdma_rlc_stop(9)cik_sdma_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_resume(9)cik_sdma_fini(9)cik_sdma_ring_test(9)cik_sdma_ib_test(9)cik_sdma_is_lockup(9)cik_sdma_vm_copy_pages(9)cik_sdma_vm_write_pages(9)cik_sdma_vm_set_pages(9)cik_sdma_vm_pad_ib(9)
ngl bestie, that's a lot of SEE ALSOs β but that's the whole squad and we don't cut the squad π
and that's the page!! π§ mwah π
sign-off time: this lil masterpiece lives at ./drivers/gpu/drm/radeon, it's dated October 2026, and yes she's still cik_copy_dma(9) β iconic behavior, we love to see it π₯π
π¦ 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