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

+5 -1
+4
drivers/gpu/drm/i915/intel_ddi.c
··· 2128 if (WARN_ON(!pll)) 2129 return; 2130 2131 if (IS_CANNONLAKE(dev_priv)) { 2132 /* Configure DPCLKA_CFGCR0 to map the DPLL to the DDI. */ 2133 val = I915_READ(DPCLKA_CFGCR0); ··· 2159 } else if (INTEL_INFO(dev_priv)->gen < 9) { 2160 I915_WRITE(PORT_CLK_SEL(port), hsw_pll_to_ddi_pll_sel(pll)); 2161 } 2162 } 2163 2164 static void intel_ddi_clk_disable(struct intel_encoder *encoder)
··· 2128 if (WARN_ON(!pll)) 2129 return; 2130 2131 + mutex_lock(&dev_priv->dpll_lock); 2132 + 2133 if (IS_CANNONLAKE(dev_priv)) { 2134 /* Configure DPCLKA_CFGCR0 to map the DPLL to the DDI. */ 2135 val = I915_READ(DPCLKA_CFGCR0); ··· 2157 } else if (INTEL_INFO(dev_priv)->gen < 9) { 2158 I915_WRITE(PORT_CLK_SEL(port), hsw_pll_to_ddi_pll_sel(pll)); 2159 } 2160 + 2161 + mutex_unlock(&dev_priv->dpll_lock); 2162 } 2163 2164 static void intel_ddi_clk_disable(struct intel_encoder *encoder)
+1 -1
drivers/gpu/drm/i915/intel_lpe_audio.c
··· 193 }; 194 195 if (!pci_dev_present(atom_hdaudio_ids)) { 196 - DRM_INFO("%s\n", "HDaudio controller not detected, using LPE audio instead\n"); 197 lpe_present = true; 198 } 199 }
··· 193 }; 194 195 if (!pci_dev_present(atom_hdaudio_ids)) { 196 + DRM_INFO("HDaudio controller not detected, using LPE audio instead\n"); 197 lpe_present = true; 198 } 199 }