diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-28 13:58:37 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-28 20:53:47 +0100 |
commit | 1233e2db199dea015391db03d3478b3392201c41 (patch) | |
tree | 264eee9509dcecd6cdbeeb44200e5ce1af54b0c6 /lib/mpi/mpih-div.c | |
parent | 03ac84f1830ec0b90f622500591eb3cc554ee479 (diff) |
drm/i915: Move object backing storage manipulation to its own locking
Break the allocation of the backing storage away from struct_mutex into
a per-object lock. This allows parallel page allocation, provided we can
do so outside of struct_mutex (i.e. set-domain-ioctl, pwrite, GTT
fault), i.e. before execbuf! The increased cost of the atomic counters
are hidden behind i915_vma_pin() for the typical case of execbuf, i.e.
as the object is typically bound between execbufs, the page_pin_count is
static. The cost will be felt around set-domain and pwrite, but offset
by the improvement from reduced struct_mutex contention.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161028125858.23563-14-chris@chris-wilson.co.uk
Diffstat (limited to 'lib/mpi/mpih-div.c')
0 files changed, 0 insertions, 0 deletions