]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Free batch pool when idle
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Apr 2015 15:20:37 +0000 (16:20 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 06:56:05 +0000 (08:56 +0200)
commit81a698e02b26c573f5eba92ba0d3ba15817e8827
treec0e9eac459eecb6d0eefd80b48b03827e2ad7b3d
parentcfc14fa87844730cf41045339f0c704bcc39c17f
drm/i915: Free batch pool when idle

At runtime, this helps ensure that the batch pools are kept trim and
fast. Then at suspend, this releases memory that we do not need to
restore. It also ties into the oom-notifier to ensure that we recover as
much kernel memory as possible during OOM.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c