[Intel-gfx] [PATCH 7/7] drm/i915: Trim unused workaround list entries
Chris Wilson
chris at chris-wilson.co.uk
Mon Dec 3 12:03:14 UTC 2018
Quoting Tvrtko Ursulin (2018-12-03 11:46:17)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> The new workaround list allocator grows the list in chunks so will end up
> with some unused space. Trim it when the initialization phase is done to
> free up a tiny bit of slab.
>
> v2:
> * Simplify with kmemdup. (Chris Wilson)
>
> v3:
> * Refactor for __size removal.
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk> # v2
I'd jiggle the if (!wal->count) return around, r-b will remain.
-Chris
More information about the Intel-gfx
mailing list