]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/wm: Verify the correct plane DDB entry
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 24 Mar 2026 13:48:38 +0000 (15:48 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Apr 2026 15:07:06 +0000 (18:07 +0300)
Actually verify the DDB entry for the plane we're looking
at instead of always verifying the cursor DDB.

Fixes: 7d4561722c3b ("drm/i915: Tweak plane ddb allocation tracking")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260324134843.2364-5-ville.syrjala@linux.intel.com
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
drivers/gpu/drm/i915/display/skl_watermark.c

index e37fde9f765db27b15f62a54e30ffa7bc580a5a9..cbc03938442d030f4d87b5296211bece08d059f1 100644 (file)
@@ -4026,8 +4026,8 @@ void intel_wm_state_verify(struct intel_atomic_state *state,
                }
 
                /* DDB */
-               hw_ddb_entry = &hw->ddb[PLANE_CURSOR];
-               sw_ddb_entry = &new_crtc_state->wm.skl.plane_ddb[PLANE_CURSOR];
+               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,