From: Chris Wilson Date: Tue, 25 Mar 2014 13:23:04 +0000 (+0000) Subject: drm/i915: Include bound and active pages in the count of shrinkable objects X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~38^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceabbba524fb43989875f66a6c06d7ce0410fe5c;p=pandora-kernel.git drm/i915: Include bound and active pages in the count of shrinkable objects When the machine is under a lot of memory pressure and being stressed by multiple GPU threads, we quite often report fewer than shrinker->batch (i.e. SHRINK_BATCH) pages to be freed. This causes the shrink_control to skip calling into i915.ko to release pages, despite the GPU holding onto most of the physical pages in its active lists. References: https://bugs.freedesktop.org/show_bug.cgi?id=72742 Signed-off-by: Chris Wilson Reviewed-by: Robert Beckett Reviewed-by: Rafael Barbalho Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed