]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Trim unused workaround list entries
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 3 Dec 2018 12:50:14 +0000 (12:50 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 4 Dec 2018 12:24:18 +0000 (12:24 +0000)
commit61e918c5798eb1309bc95d32911d21011bbeadf5
tree74266b62061efedb8bb004fcb8c855bc164aa6bf
parent9c458d9872e1817a6746a80828e0c921b4a2a17b
drm/i915: Trim unused workaround list entries

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@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20181203125014.3219-8-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/intel_workarounds.c