drm/i915: Add locking to pll updates, v3.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 23 Mar 2016 13:51:12 +0000 (14:51 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 31 Mar 2016 07:43:11 +0000 (09:43 +0200)
commitfbf6d8798fceb1f64eb0e5fd7cd541becfc376cd
treef6ab5ca84e4b1f99ecdc5d8349586d7db9124310
parent55c561a708eec328822721233b1148119e80f5c3
drm/i915: Add locking to pll updates, v3.

With async modesets this is no longer protected with connection_mutex,
so ensure that each pll has its own lock. The pll configuration state
is still protected; it's only the pll updates that need locking against
concurrency.

Changes since v1:
- Rebased.
- Fix locking to protect all accesses. (Durgadoss)
Changes since v2:
- Make the dpll_lock global to protect concurrent updates to the
  same register, for example DPLL_CTRL1 on skl. (Ander)

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/56F29F50.1090708@linux.intel.com
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_dpll_mgr.c
This page took 0.028166 seconds and 5 git commands to generate.