]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/i915: Trim partial view sg lists
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 26 Sep 2018 08:03:53 +0000 (09:03 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 27 Sep 2018 10:26:52 +0000 (11:26 +0100)
commitf8e57863f81f962a1837d6a17825752de5bc23f7
tree6f46e340dbc3fc58e3db5dfb3834ad6c82e0d2db
parentdee4a0f8e70db36105e43dba5652737df5812190
drm/i915: Trim partial view sg lists

Partial views are small but there can be many of them, and since the sg
list space for them is allocated pessimistically, we can save some slab by
trimming the unused tail entries.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180926080353.20867-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_gtt.c