public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Govindapillai, Vinod" <vinod.govindapillai@intel.com>
To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 6/9] drm/i915/wm: Extract skl_ddb_entry_verify()
Date: Wed, 8 Apr 2026 11:57:22 +0000	[thread overview]
Message-ID: <73affe1c9618fc715a148453360d12ad1780ee07.camel@intel.com> (raw)
In-Reply-To: <20260324134843.2364-7-ville.syrjala@linux.intel.com>

On Tue, 2026-03-24 at 15:48 +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Extract the DDB entry verification to a helper function.
> We'll have another caller soon.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>  drivers/gpu/drm/i915/display/skl_watermark.c | 32 ++++++++++++------
> --
>  1 file changed, 20 insertions(+), 12 deletions(-)
> 

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>

> diff --git a/drivers/gpu/drm/i915/display/skl_watermark.c
> b/drivers/gpu/drm/i915/display/skl_watermark.c
> index 3e323e434bfb..17faf090a154 100644
> --- a/drivers/gpu/drm/i915/display/skl_watermark.c
> +++ b/drivers/gpu/drm/i915/display/skl_watermark.c
> @@ -3934,6 +3934,23 @@ static void skl_wm_level_verify(struct
> intel_plane *plane,
>  		hw_wm_level->enable, hw_wm_level->blocks,
> hw_wm_level->lines);
>  }
>  
> +static void skl_ddb_entry_verify(struct intel_plane *plane,
> +				 const char *ddb_name,
> +				 const struct skl_ddb_entry
> *hw_ddb_entry,
> +				 const struct skl_ddb_entry
> *sw_ddb_entry)
> +{
> +	struct intel_display *display = to_intel_display(plane);
> +
> +	if (skl_ddb_entry_equal(hw_ddb_entry, sw_ddb_entry))
> +		return;
> +
> +	drm_err(display->drm,
> +		"[PLANE:%d:%s] mismatch in %s (expected (%u,%u),
> found (%u,%u))\n",
> +		plane->base.base.id, plane->base.name, ddb_name,
> +		sw_ddb_entry->start, sw_ddb_entry->end,
> +		hw_ddb_entry->start, hw_ddb_entry->end);
> +}
> +
>  void intel_wm_state_verify(struct intel_atomic_state *state,
>  			   struct intel_crtc *crtc)
>  {
> @@ -3977,7 +3994,6 @@ void intel_wm_state_verify(struct
> intel_atomic_state *state,
>  			&hw->wm.planes[plane->id];
>  		const struct skl_plane_wm *sw_plane_wm =
>  			&sw_wm->planes[plane->id];
> -		const struct skl_ddb_entry *hw_ddb_entry,
> *sw_ddb_entry;
>  
>  		for (level = 0; level < display->wm.num_levels;
> level++) {
>  			char wm_name[16];
> @@ -4003,17 +4019,9 @@ void intel_wm_state_verify(struct
> intel_atomic_state *state,
>  					    &sw_plane_wm-
> >sagv.trans_wm);
>  		}
>  
> -		/* DDB */
> -		hw_ddb_entry = &hw->ddb[plane->id];
> -		sw_ddb_entry = &new_crtc_state-
> >wm.skl.plane_ddb[plane->id];
> -
> -		if (!skl_ddb_entry_equal(hw_ddb_entry,
> sw_ddb_entry)) {
> -			drm_err(display->drm,
> -				"[PLANE:%d:%s] mismatch in DDB
> (expected (%u,%u), found (%u,%u))\n",
> -				plane->base.base.id, plane-
> >base.name,
> -				sw_ddb_entry->start, sw_ddb_entry-
> >end,
> -				hw_ddb_entry->start, hw_ddb_entry-
> >end);
> -		}
> +		skl_ddb_entry_verify(plane, "DDB",
> +				     &hw->ddb[plane->id],
> +				     &new_crtc_state-
> >wm.skl.plane_ddb[plane->id]);
>  	}
>  
>  	kfree(hw);


  reply	other threads:[~2026-04-08 11:57 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-24 13:48 [PATCH 0/9] drm/i915/wm: Watermark/SAGV fixes/cleanups/etc Ville Syrjala
2026-03-24 13:48 ` [PATCH 1/9] drm/i915/wm: Reject SAGV consistently when block_time_us==0 Ville Syrjala
2026-04-08  9:56   ` Govindapillai, Vinod
2026-03-24 13:48 ` [PATCH 2/9] drm/i915/wm: Don't compute separate SAGV watermarks for RKL Ville Syrjala
2026-04-08 11:48   ` Govindapillai, Vinod
2026-03-24 13:48 ` [PATCH 3/9] drm/i915/wm: Consolidate SAGV pipe active/interlace checks to common code Ville Syrjala
2026-04-08 11:49   ` Govindapillai, Vinod
2026-03-24 13:48 ` [PATCH 4/9] drm/i915/wm: Verify the correct plane DDB entry Ville Syrjala
2026-04-08 11:53   ` Govindapillai, Vinod
2026-03-24 13:48 ` [PATCH 5/9] drm/i915/wm: Extract skl_wm_level_verify() Ville Syrjala
2026-04-08 11:55   ` Govindapillai, Vinod
2026-03-24 13:48 ` [PATCH 6/9] drm/i915/wm: Extract skl_ddb_entry_verify() Ville Syrjala
2026-04-08 11:57   ` Govindapillai, Vinod [this message]
2026-03-24 13:48 ` [PATCH 7/9] drm/i915/wm: Verify 'ddb_y' as well as 'ddb' Ville Syrjala
2026-04-08 11:59   ` Govindapillai, Vinod
2026-03-24 13:48 ` [PATCH 8/9] drm/i915/wm: Reduce copy-pasta in skl_print_plane_wm_changes() Ville Syrjala
2026-04-08 12:04   ` Govindapillai, Vinod
2026-03-24 13:48 ` [PATCH 9/9] drm/i915/wm: Allow SAGV with multiple pipes on pre-icl Ville Syrjala
2026-04-08 12:10   ` Govindapillai, Vinod
2026-03-24 13:58 ` ✗ CI.checkpatch: warning for drm/i915/wm: Watermark/SAGV fixes/cleanups/etc Patchwork
2026-03-24 14:00 ` ✓ CI.KUnit: success " Patchwork
2026-03-24 14:40 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-25  2:08 ` ✓ Xe.CI.FULL: " 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=73affe1c9618fc715a148453360d12ad1780ee07.camel@intel.com \
    --to=vinod.govindapillai@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@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