xe_migrate_ccs_rw_copy(9)
π xe_migrate_ccs_rw_copy β like, the Kernel API Manual, section 9, bestie
okay so real talk, this is a function from the Kernel API Manual, manual page xe_migrate_ccs_rw_copy(9), and it's here to copy the content of TTM resources π no cap. it lives in ./drivers/gpu/drm/xe and it's giving "small helper, big job" energy.
β¨ NAME β¨
xe_migrate_ccs_rw_copy β Copy content of TTM resources. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
int xe_migrate_ccs_rw_copy (struct xe_tile *tile , struct xe_exec_queue
*q , struct xe_bo *src_bo , struct ttm_resource *new_mem , enum
xe_sriov_vf_ccs_rw_ctxs read_write );
like yes she takes five arguments and she returns an int, we love a predictable icon π
π¦ ARGUMENTS π¦
tileβ the Tile whose migration context is gonna be used. literally the whole context source, don't sleep on her.qβ the Execution to be used along with the migration context. she's coming along for the ride π«Άsrc_boβ the buffer objectsrcis currently bound to. iykyk.new_memβ the (not yet committed!!) destination resourcesrc_bois being moved into. and lowkey important:src_bo->ttm.resourceis still the old resource at this point. like it hasn't packed its bags yet π§³read_writeβ Creates BB commands for CCS read/write. that's the enum, that's what it does, periodt.
π DESCRIPTION π
okay so what she actually does: she creates batch buffer instructions to copy CCS metadata from the CCS pool to memory β and vice versa ππ«. the way that metadata just... travels.
β οΈ okay this is the serious bit and i'm not gonna sugarcoat it: this function should only be called for IGPU. only. for IGPU. do not be out here calling her on anything else π fr fr.
β RETURN β
0if successful β slay, we ate β¨- negative error code on failure β main character had a moment π
π SEE ALSO π
the whole friend group, honestly. she does not travel alone:
- Kernel file
./drivers/gpu/drm/xe/xe_migrate.c struct xe_migrate(9)xe_migrate_alloc(9)xe_migrate_init(9)xe_migrate_copy(9)xe_migrate_resolve(9)xe_migrate_lrc(9)xe_migrate_ccs_rw_copy_clear(9)xe_migrate_exec_queue(9)xe_migrate_vram_copy_chunk(9)xe_migrate_clear(9)xe_migrate_update_pgtables(9)xe_migrate_wait(9)xe_migrate_to_vram(9)xe_migrate_from_vram(9)xe_migrate_access_memory(9)xe_migrate_job_lock(9)xe_migrate_job_unlock(9)xe_migrate_job_lock_assert(9)
π ok bye π
that's the page bestie, you're now officially informed π
β¨ this one's from ./drivers/gpu/drm/xe, dated October 2026, out of the Kernel API Manual, and that's section 9 for you π«Ά go forth and copy those TTM resources responsibly πΈπ¦
π¦ 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