All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v29 3/6] drm/i915: Make active_pipes check skl specific
Date: Wed, 13 May 2020 16:34:18 +0300	[thread overview]
Message-ID: <20200513133418.GE6112@intel.com> (raw)
In-Reply-To: <20200513093816.11466-4-stanislav.lisovskiy@intel.com>

On Wed, May 13, 2020 at 12:38:13PM +0300, Stanislav Lisovskiy wrote:
> Seems that only skl needs to have SAGV turned off
> for multipipe scenarios, so lets do it this way.

Commit msg still a bit misleading, but meh, pushed 1-3 anyway. Thanks.

> 
> If anything blows up - we can always revert this patch.
> 
> v2: Changed if condition to look better (Ville).
> 
> Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_pm.c | 13 ++++++++-----
>  drivers/gpu/drm/i915/intel_pm.h |  3 ++-
>  2 files changed, 10 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 6a212d47aec8..de0f8cede59c 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
<snip>
> @@ -3901,7 +3904,7 @@ static int intel_compute_sagv_mask(struct intel_atomic_state *state)
>  			return ret;
>  	}
>  
> -	if (intel_can_enable_sagv(new_bw_state) != intel_can_enable_sagv(old_bw_state)) {
> +	if (intel_can_enable_sagv(dev_priv, new_bw_state) != intel_can_enable_sagv(dev_priv, old_bw_state)) {

I did wrap this line while applying since it was trivial and made
checkpatch happy.

I see one other valid checkpatch complaint in the report (some alignment
fail in one of the later patches). The wm debug >80col warnings we can't
really fix without some refactoring or making the code look evem uglier
so imo ignore those.

>  		ret = intel_atomic_serialize_global_state(&new_bw_state->base);
>  		if (ret)
>  			return ret;
> diff --git a/drivers/gpu/drm/i915/intel_pm.h b/drivers/gpu/drm/i915/intel_pm.h
> index fd1dc422e6c5..614ac7f8d4cc 100644
> --- a/drivers/gpu/drm/i915/intel_pm.h
> +++ b/drivers/gpu/drm/i915/intel_pm.h
> @@ -42,7 +42,8 @@ void skl_pipe_wm_get_hw_state(struct intel_crtc *crtc,
>  			      struct skl_pipe_wm *out);
>  void g4x_wm_sanitize(struct drm_i915_private *dev_priv);
>  void vlv_wm_sanitize(struct drm_i915_private *dev_priv);
> -bool intel_can_enable_sagv(const struct intel_bw_state *bw_state);
> +bool intel_can_enable_sagv(struct drm_i915_private *dev_priv,
> +			   const struct intel_bw_state *bw_state);
>  int intel_enable_sagv(struct drm_i915_private *dev_priv);
>  int intel_disable_sagv(struct drm_i915_private *dev_priv);
>  void intel_sagv_pre_plane_update(struct intel_atomic_state *state);
> -- 
> 2.24.1.485.gad05a3d8e5

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2020-05-13 13:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-13  9:38 [Intel-gfx] [PATCH v29 0/6] SAGV support for Gen12+ Stanislav Lisovskiy
2020-05-13  9:38 ` [Intel-gfx] [PATCH v29 1/6] drm/i915: Introduce skl_plane_wm_level accessor Stanislav Lisovskiy
2020-05-13  9:38 ` [Intel-gfx] [PATCH v29 2/6] drm/i915: Extract skl SAGV checking Stanislav Lisovskiy
2020-05-13  9:38 ` [Intel-gfx] [PATCH v29 3/6] drm/i915: Make active_pipes check skl specific Stanislav Lisovskiy
2020-05-13 13:34   ` Ville Syrjälä [this message]
2020-05-13  9:38 ` [Intel-gfx] [PATCH v29 4/6] drm/i915: Add TGL+ SAGV support Stanislav Lisovskiy
2020-05-13 13:41   ` Ville Syrjälä
2020-05-13  9:38 ` [Intel-gfx] [PATCH v29 5/6] drm/i915: Restrict qgv points which don't have enough bandwidth Stanislav Lisovskiy
2020-05-13 13:44   ` Ville Syrjälä
2020-05-13  9:38 ` [Intel-gfx] [PATCH v29 6/6] drm/i915: Enable SAGV support for Gen12 Stanislav Lisovskiy
2020-05-13 10:09 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for SAGV support for Gen12+ (rev37) Patchwork
2020-05-13 10:35 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-05-13 11:44 ` [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=20200513133418.GE6112@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=stanislav.lisovskiy@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.