xe_migrate_from_vram(9)
π NAME π
okay so bestie, this is xe_migrate_from_vram(9) from the Kernel API Manual, and it is literally the Migrate from VRAM moment. Function name: xe_migrate_from_vram; short description: Migrate from VRAM. Slay, periodt.
β¨ SYNOPSIS β¨
Hereβs the signature, exactly as written, no edits:
struct dma_fence * xe_migrate_from_vram (struct xe_migrate *m , unsigned long npages , u64 src_addr , struct drm_pagemap_addr *dst_addr , struct dma_fence *deps );
No cap, thatβs the whole signature. π
π ARGUMENTS π
mβ the migration context. Main character struct, fr.npagesβ number of pages to migrate. Count βem.src_addrβ device physical address of VRAM (source of migrate). This is where the copy is coming from.dst_addrβ array of DMA information (destination of migrate). This is where itβs going.depsβstruct dma_fencerepresenting the dependencies that need to be signaled before migration. Gotta wait for the vibes to line up first.
π¦ DESCRIPTION π¦
Copy from a VRAM device physical address to an array of DMA addresses. Thatβs the whole glow-up: source is VRAM physical address, destination is that array of DMA info. β¨
π« RETURN π«
Returns a DMA fence for the migrate to signal completion on success, and ERR_PTR on failure. So if it works, you get the fence; if not, ERR_PTR is the plot twist. π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/xe/xe_migrate.c, plus all these besties:
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(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_access_memory(9)xe_migrate_job_lock(9)xe_migrate_job_unlock(9)xe_migrate_job_lock_assert(9)
xoxo, your xe_migrate_from_vram(9) bestie β source/version: ./drivers/gpu/drm/xe, date: October 2026 π
π¦ 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