i915_gem_evict_vm(9) Evict all idle vmas from a vm

SYNOPSIS

int i915_gem_evict_vm(struct i915_address_space * vm, bool do_idle);

ARGUMENTS

vm

Address space to cleanse

do_idle

Boolean directing whether to idle first.

DESCRIPTION

This function evicts all idles vmas from a vm. If all unpinned vmas should be evicted the do_idle needs to be set to true.

This is used by the execbuf code as a last-ditch effort to defragment the address space.

TO CLARIFY

This is for freeing up virtual address space, not for freeing memory in e.g. the shrinker.

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,         
        

Contributions all over the place

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT