[Intel-gfx] [PATCH] drm/i915: Fix type mismatch and accounting in i915_gem_shrink

Daniel Vetter daniel at ffwll.ch
Fri Oct 4 14:38:45 CEST 2013


On Fri, Oct 04, 2013 at 10:33:00AM +0100, Chris Wilson wrote:
> The interface uses an unsigned long, and we can use the unsigned counter
> throughout our code, so do so. In the process, we notice one instance
> where the shrink count is based on a heuristic rather than the result,
> and another where we ask for too many pages to be purged.
> 
> v2: nr_to_scan needs to be promoted to a long as well, so just use
>     sc->nr_to_scan directly.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>

Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list