Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Lisovskiy, Stanislav" <stanislav.lisovskiy@intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 2/4] drm/i915: Make ilk+ pfit regiser unlocked
Date: Tue, 29 Mar 2022 12:28:56 +0300	[thread overview]
Message-ID: <20220329092856.GB1336@intel.com> (raw)
In-Reply-To: <20220224165103.15682-3-ville.syrjala@linux.intel.com>

On Thu, Feb 24, 2022 at 06:51:01PM +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> The ilk+ panel fitter register are sitting nicely on their own
> cacheline, so no need for global serialization via uncore.lock.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_display.c | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 7bf24df20b14..705f23be409c 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -1114,13 +1114,13 @@ static void ilk_pfit_enable(const struct intel_crtc_state *crtc_state)
>  	 * e.g. x201.
>  	 */
>  	if (IS_IVYBRIDGE(dev_priv) || IS_HASWELL(dev_priv))
> -		intel_de_write(dev_priv, PF_CTL(pipe), PF_ENABLE |
> -			       PF_FILTER_MED_3x3 | PF_PIPE_SEL_IVB(pipe));
> +		intel_de_write_fw(dev_priv, PF_CTL(pipe), PF_ENABLE |
> +				  PF_FILTER_MED_3x3 | PF_PIPE_SEL_IVB(pipe));
>  	else
> -		intel_de_write(dev_priv, PF_CTL(pipe), PF_ENABLE |
> -			       PF_FILTER_MED_3x3);
> -	intel_de_write(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_CTL(pipe), PF_ENABLE |
> +				  PF_FILTER_MED_3x3);
> +	intel_de_write_fw(dev_priv, PF_WIN_POS(pipe), x << 16 | y);
> +	intel_de_write_fw(dev_priv, PF_WIN_SZ(pipe), width << 16 | height);
>  }
>  
>  static void intel_crtc_dpms_overlay_disable(struct intel_crtc *crtc)
> @@ -2022,9 +2022,9 @@ void ilk_pfit_disable(const struct intel_crtc_state *old_crtc_state)
>  	if (!old_crtc_state->pch_pfit.enabled)
>  		return;
>  
> -	intel_de_write(dev_priv, PF_CTL(pipe), 0);
> -	intel_de_write(dev_priv, PF_WIN_POS(pipe), 0);
> -	intel_de_write(dev_priv, PF_WIN_SZ(pipe), 0);
> +	intel_de_write_fw(dev_priv, PF_CTL(pipe), 0);
> +	intel_de_write_fw(dev_priv, PF_WIN_POS(pipe), 0);
> +	intel_de_write_fw(dev_priv, PF_WIN_SZ(pipe), 0);
>  }
>  
>  static void ilk_crtc_disable(struct intel_atomic_state *state,
> -- 
> 2.34.1
> 

  reply	other threads:[~2022-03-29  9:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-24 16:50 [Intel-gfx] [PATCH 0/4] drm/i915: Optimize CSC updates for ilk+ Ville Syrjala
2022-02-24 16:51 ` [Intel-gfx] [PATCH 1/4] drm/i915: Remove locks around skl+ scaler programming Ville Syrjala
2022-03-29  9:28   ` Lisovskiy, Stanislav
2022-02-24 16:51 ` [Intel-gfx] [PATCH 2/4] drm/i915: Make ilk+ pfit regiser unlocked Ville Syrjala
2022-03-29  9:28   ` Lisovskiy, Stanislav [this message]
2022-02-24 16:51 ` [Intel-gfx] [PATCH 3/4] drm/i915: Split color_commit() into noarm+arm pair Ville Syrjala
2022-03-29  9:29   ` Lisovskiy, Stanislav
2022-02-24 16:51 ` [Intel-gfx] [PATCH 4/4] drm/i915: Split pipe+output CSC programming to " Ville Syrjala
2022-03-29  9:29   ` Lisovskiy, Stanislav
2022-02-25  3:34 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Optimize CSC updates for ilk+ Patchwork
2022-02-25 19:27 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220329092856.GB1336@intel.com \
    --to=stanislav.lisovskiy@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox