diff options
author | Dave Airlie <airlied@redhat.com> | 2017-12-20 20:09:36 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-12-20 20:09:36 -0500 |
commit | 5e9748cb4b1c4f15e549e3fc970e9727f027de49 (patch) | |
tree | a485524e2dcd535c7b5792295ba9577c407a4d0b | |
parent | 2480ee716ae43d76d0c9ec0a2e0c1299c475f350 (diff) | |
parent | a4ffdc2b6726958c07d535318400124e3a3bc19b (diff) |
Merge tag 'drm-intel-fixes-2017-12-20' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
drm/i915 fixes for v4.15-rc5
* tag 'drm-intel-fixes-2017-12-20' of git://anongit.freedesktop.org/drm/drm-intel:
drm/i915: Protect DDI port to DPLL map from theoretical race.
drm/i915/lpe: Remove double-encapsulation of info string
-rw-r--r-- | drivers/gpu/drm/i915/intel_ddi.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_lpe_audio.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index e0843bb99169..58a3755544b2 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c | |||
@@ -2128,6 +2128,8 @@ static void intel_ddi_clk_select(struct intel_encoder *encoder, | |||
2128 | if (WARN_ON(!pll)) | 2128 | if (WARN_ON(!pll)) |
2129 | return; | 2129 | return; |
2130 | 2130 | ||
2131 | mutex_lock(&dev_priv->dpll_lock); | ||
2132 | |||
2131 | if (IS_CANNONLAKE(dev_priv)) { | 2133 | if (IS_CANNONLAKE(dev_priv)) { |
2132 | /* Configure DPCLKA_CFGCR0 to map the DPLL to the DDI. */ | 2134 | /* Configure DPCLKA_CFGCR0 to map the DPLL to the DDI. */ |
2133 | val = I915_READ(DPCLKA_CFGCR0); | 2135 | val = I915_READ(DPCLKA_CFGCR0); |
@@ -2157,6 +2159,8 @@ static void intel_ddi_clk_select(struct intel_encoder *encoder, | |||
2157 | } else if (INTEL_INFO(dev_priv)->gen < 9) { | 2159 | } else if (INTEL_INFO(dev_priv)->gen < 9) { |
2158 | I915_WRITE(PORT_CLK_SEL(port), hsw_pll_to_ddi_pll_sel(pll)); | 2160 | I915_WRITE(PORT_CLK_SEL(port), hsw_pll_to_ddi_pll_sel(pll)); |
2159 | } | 2161 | } |
2162 | |||
2163 | mutex_unlock(&dev_priv->dpll_lock); | ||
2160 | } | 2164 | } |
2161 | 2165 | ||
2162 | static void intel_ddi_clk_disable(struct intel_encoder *encoder) | 2166 | static void intel_ddi_clk_disable(struct intel_encoder *encoder) |
diff --git a/drivers/gpu/drm/i915/intel_lpe_audio.c b/drivers/gpu/drm/i915/intel_lpe_audio.c index 3bf65288ffff..5809b29044fc 100644 --- a/drivers/gpu/drm/i915/intel_lpe_audio.c +++ b/drivers/gpu/drm/i915/intel_lpe_audio.c | |||
@@ -193,7 +193,7 @@ static bool lpe_audio_detect(struct drm_i915_private *dev_priv) | |||
193 | }; | 193 | }; |
194 | 194 | ||
195 | if (!pci_dev_present(atom_hdaudio_ids)) { | 195 | if (!pci_dev_present(atom_hdaudio_ids)) { |
196 | DRM_INFO("%s\n", "HDaudio controller not detected, using LPE audio instead\n"); | 196 | DRM_INFO("HDaudio controller not detected, using LPE audio instead\n"); |
197 | lpe_present = true; | 197 | lpe_present = true; |
198 | } | 198 | } |
199 | } | 199 | } |