drm/i915: Report the current number of bytes freed during oom
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Oct 2014 10:25:16 +0000 (11:25 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Oct 2014 14:34:01 +0000 (16:34 +0200)
commit005445c5fb3a96026d6bd9580339ea8580eb6c6d
treecefd88a53fd093616443dba4abd4aba6997e9571
parent43dc52c3b43af65084d6399c4f4b723fa2374971
drm/i915: Report the current number of bytes freed during oom

The shrinker reports the number of pages freed, but we try to log the
number of bytes - which leads to some nonsense values being reportedly
freed during oom.

Reported-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c