i915_gem_shrink_all(9) Shrink buffer object caches completely

SYNOPSIS

unsigned long i915_gem_shrink_all(struct drm_i915_private * dev_priv);

ARGUMENTS

dev_priv

i915 device

DESCRIPTION

This is a simple wraper around i915_gem_shrink to aggressively shrink all caches completely. It also first waits for and retires all outstanding requests to also be able to release backing storage for active objects.

This should only be used in code to intentionally quiescent the gpu or as a last-ditch effort when memory seems to have run out.

RETURNS

The number of pages of backing storage actually released.

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