public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Vinod Govindapillai <vinod.govindapillai@intel.com>,
	intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: vinod.govindapillai@intel.com, ville.syrjala@intel.com,
	jani.saarinen@intel.com
Subject: Re: [PATCH 5/8] drm/i915/display: update skl_plane_wm_equals to use intel_display
Date: Tue, 05 Nov 2024 11:09:27 +0200	[thread overview]
Message-ID: <87plnagi7s.fsf@intel.com> (raw)
In-Reply-To: <20241105071600.235338-6-vinod.govindapillai@intel.com>

On Tue, 05 Nov 2024, Vinod Govindapillai <vinod.govindapillai@intel.com> wrote:
> Use intel_display object instead of struct drm_i915_private in
> skl_plane_wm_equals(). This is in preparation for the rest of
> the patches in this series where hw support for the minimum and
> interim ddb allocations for async flip is added
>
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
> ---
>  drivers/gpu/drm/i915/display/skl_watermark.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/skl_watermark.c b/drivers/gpu/drm/i915/display/skl_watermark.c
> index 2018abc35c8a..a01b1dc01348 100644
> --- a/drivers/gpu/drm/i915/display/skl_watermark.c
> +++ b/drivers/gpu/drm/i915/display/skl_watermark.c
> @@ -2384,13 +2384,13 @@ static bool skl_wm_level_equals(const struct skl_wm_level *l1,
>  		l1->blocks == l2->blocks;
>  }
>  
> -static bool skl_plane_wm_equals(struct drm_i915_private *i915,
> +static bool skl_plane_wm_equals(struct intel_display *display,
>  				const struct skl_plane_wm *wm1,
>  				const struct skl_plane_wm *wm2)
>  {
>  	int level;
>  
> -	for (level = 0; level < i915->display.wm.num_levels; level++) {
> +	for (level = 0; level < display->wm.num_levels; level++) {
>  		/*
>  		 * We don't check uv_wm as the hardware doesn't actually
>  		 * use it. It only gets used for calculating the required
> @@ -2650,7 +2650,7 @@ skl_print_wm_changes(struct intel_atomic_state *state)
>  			old_wm = &old_pipe_wm->planes[plane_id];
>  			new_wm = &new_pipe_wm->planes[plane_id];
>  
> -			if (skl_plane_wm_equals(i915, old_wm, new_wm))
> +			if (skl_plane_wm_equals(&i915->display, old_wm, new_wm))

Please don't use "&i915->display" inline.c

>  				continue;
>  
>  			drm_dbg_kms(&i915->drm,

-- 
Jani Nikula, Intel

  reply	other threads:[~2024-11-05  9:09 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-05  7:15 [PATCH 0/8] use hw support for min/interim ddb allocation for async flip Vinod Govindapillai
2024-11-05  7:15 ` [PATCH 1/8] drm/i915/display: update intel_enabled_dbuf_slices_mask to use intel_display Vinod Govindapillai
2024-11-05  8:52   ` Jani Nikula
2024-11-05  9:07     ` Govindapillai, Vinod
2024-11-05  7:15 ` [PATCH 2/8] drm/i9i5/display: use intel_display in intel_de_read calls of skl_watermark.c Vinod Govindapillai
2024-11-05  8:58   ` Jani Nikula
2024-11-05  9:03   ` Jani Nikula
2024-11-05  7:15 ` [PATCH 3/8] drm/i915/display: update use_minimal_wm0_only to use intel_display Vinod Govindapillai
2024-11-05  9:08   ` Jani Nikula
2024-11-06 14:06     ` Ville Syrjälä
2024-11-06 15:49       ` Govindapillai, Vinod
2024-11-05  7:15 ` [PATCH 4/8] drm/i915/display: update use_min_ddb " Vinod Govindapillai
2024-11-05  7:15 ` [PATCH 5/8] drm/i915/display: update skl_plane_wm_equals " Vinod Govindapillai
2024-11-05  9:09   ` Jani Nikula [this message]
2024-11-05  7:15 ` [PATCH 6/8] drm/i915/display: update to plane_wm register access function Vinod Govindapillai
2024-11-05  7:15 ` [PATCH 7/8] drm/i915/xe3: Use hw support for min/interim ddb allocations for async flip Vinod Govindapillai
2024-11-06 22:45   ` Ville Syrjälä
2024-11-20 22:26     ` Govindapillai, Vinod
2024-11-05  7:16 ` [PATCH 8/8] drm/i915/debugfs: add dbuf alloc status as part of i915_ddb_info Vinod Govindapillai
2024-11-06 22:46   ` Ville Syrjälä
2024-11-20 22:30     ` Govindapillai, Vinod
2024-11-05  8:17 ` ✗ Fi.CI.CHECKPATCH: warning for use hw support for min/interim ddb allocation for async flip Patchwork
2024-11-05  8:17 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-11-05  9:11 ` ✗ Fi.CI.BAT: failure " 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=87plnagi7s.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.saarinen@intel.com \
    --cc=ville.syrjala@intel.com \
    --cc=vinod.govindapillai@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