aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
diff options
context:
space:
mode:
authorThomas Hellström <thomas.hellstrom@linux.intel.com>2021-06-10 16:35:25 +0200
committerMatthew Auld <matthew.auld@intel.com>2021-06-14 12:23:49 +0100
commitb4b9731b02c3ce859d85dec17ec63f4bf3140bf4 (patch)
treeaecfa6ed9de8951da90fd80dda145a005c356c87 /drivers/gpu/drm/i915/display/intel_dpll_mgr.c
parentdrm/i915/selftests: Reorder tasklet_disable vs local_bh_disable (diff)
downloadlinux-dev-b4b9731b02c3ce859d85dec17ec63f4bf3140bf4.tar.xz
linux-dev-b4b9731b02c3ce859d85dec17ec63f4bf3140bf4.zip
drm/i915: Simplify userptr locking
Use an rwlock instead of spinlock for the global notifier lock to reduce risk of contention in execbuf. Protect object state with the object lock whenever possible rather than with the global notifier lock Don't take an explicit page_ref in userptr_submit_init() but rather call get_pages() after obtaining the page list so that get_pages() holds the page_ref. This means we don't need to call userptr_submit_fini(), which is needed to avoid awkward locking in our upcoming VM_BIND code. Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210610143525.624677-1-thomas.hellstrom@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dpll_mgr.c')
0 files changed, 0 insertions, 0 deletions