Commit 46fc66be authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Make ilk+ pfit regiser unlocked

The ilk+ panel fitter register are sitting nicely on their own
cacheline, so no need for global serialization via uncore.lock.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220224165103.15682-3-ville.syrjala@linux.intel.comReviewed-by: default avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
parent e0c603ef
...@@ -1117,13 +1117,13 @@ static void ilk_pfit_enable(const struct intel_crtc_state *crtc_state) ...@@ -1117,13 +1117,13 @@ static void ilk_pfit_enable(const struct intel_crtc_state *crtc_state)
* e.g. x201. * e.g. x201.
*/ */
if (IS_IVYBRIDGE(dev_priv) || IS_HASWELL(dev_priv)) if (IS_IVYBRIDGE(dev_priv) || IS_HASWELL(dev_priv))
intel_de_write(dev_priv, PF_CTL(pipe), PF_ENABLE | intel_de_write_fw(dev_priv, PF_CTL(pipe), PF_ENABLE |
PF_FILTER_MED_3x3 | PF_PIPE_SEL_IVB(pipe)); PF_FILTER_MED_3x3 | PF_PIPE_SEL_IVB(pipe));
else else
intel_de_write(dev_priv, PF_CTL(pipe), PF_ENABLE | intel_de_write_fw(dev_priv, PF_CTL(pipe), PF_ENABLE |
PF_FILTER_MED_3x3); PF_FILTER_MED_3x3);
intel_de_write(dev_priv, PF_WIN_POS(pipe), x << 16 | y); intel_de_write_fw(dev_priv, PF_WIN_POS(pipe), x << 16 | y);
intel_de_write(dev_priv, PF_WIN_SZ(pipe), width << 16 | height); intel_de_write_fw(dev_priv, PF_WIN_SZ(pipe), width << 16 | height);
} }
static void intel_crtc_dpms_overlay_disable(struct intel_crtc *crtc) static void intel_crtc_dpms_overlay_disable(struct intel_crtc *crtc)
...@@ -2023,9 +2023,9 @@ void ilk_pfit_disable(const struct intel_crtc_state *old_crtc_state) ...@@ -2023,9 +2023,9 @@ void ilk_pfit_disable(const struct intel_crtc_state *old_crtc_state)
if (!old_crtc_state->pch_pfit.enabled) if (!old_crtc_state->pch_pfit.enabled)
return; return;
intel_de_write(dev_priv, PF_CTL(pipe), 0); intel_de_write_fw(dev_priv, PF_CTL(pipe), 0);
intel_de_write(dev_priv, PF_WIN_POS(pipe), 0); intel_de_write_fw(dev_priv, PF_WIN_POS(pipe), 0);
intel_de_write(dev_priv, PF_WIN_SZ(pipe), 0); intel_de_write_fw(dev_priv, PF_WIN_SZ(pipe), 0);
} }
static void ilk_crtc_disable(struct intel_atomic_state *state, static void ilk_crtc_disable(struct intel_atomic_state *state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment