Skip to content
Commit 809b6334 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: If we hit OOM when allocating GTT pages, clear the aperture



Rather than evicting an object at random, which is unlikely to alleviate
the memory pressure sufficient to allow us to continue, zap the entire
aperture. That should give the system long enough to recover and reap
some pages from the evicted objects, forestalling the allocation error
for the new object.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 092de6f2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment