]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Wait for the GPU whilst shrinking, if truly desperate.
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Apr 2010 16:10:35 +0000 (17:10 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 7 May 2010 20:59:28 +0000 (13:59 -0700)
commit43c8b46f0984b8325755ca6e8fa93aa31222574e
tree5305336bef61e0fe40b4578425609bac4f18bf96
parent7f87b410ee36195acf91dd067cf1ac323b199c6e
drm/i915: Wait for the GPU whilst shrinking, if truly desperate.

By idling the GPU and discarding everything we can when under extreme
memory pressure, the number of OOM-killer events is dramatically
reduced. For instance, this makes it possible to run
firefox-planet-gnome.trace again on my swapless 512MiB i915.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c