xe_migrate_ccs_rw_copy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 object src is currently bound to. iykyk.
  • new_mem β€” the (not yet committed!!) destination resource src_bo is being moved into. and lowkey important: src_bo->ttm.resource is 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 ⭐

  • 0 if 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:


πŸŽ€ 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