]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: If we hit OOM when allocating GTT pages, clear the aperture
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Jan 2011 17:33:15 +0000 (17:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Jan 2011 22:55:48 +0000 (22:55 +0000)
commit01f74e936dc07d0009714458b9e73d5d053c6f53
treee267d1640e6323cbbd93b7786973cf3f67d9c76c
parent8aff6b55168d2fbe74857bbe76ee03a262229a87
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: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c