]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/wm: don't use method1 in Xe3p_LPD onwards
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 5 Nov 2025 14:07:03 +0000 (11:07 -0300)
committerGustavo Sousa <gustavo.sousa@intel.com>
Thu, 6 Nov 2025 21:23:15 +0000 (18:23 -0300)
Starting from display version 35, we don't need to use method1 to
calculate the watermark values anymore, so skip it.

Bspec: 68985
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Reviewed-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
Link: https://patch.msgid.link/20251103-xe3p_lpd-basic-enabling-v3-14-00e87b510ae7@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
drivers/gpu/drm/i915/display/skl_watermark.c

index 6d050408618c63f22471c10a76ddff29db2454b2..c888b0896d89c1760b34b8926145923026c77a41 100644 (file)
@@ -1812,6 +1812,8 @@ static void skl_compute_plane_wm(const struct intel_crtc_state *crtc_state,
 
        if (wp->y_tiled) {
                selected_result = max_fixed16(method2, wp->y_tile_minimum);
+       } else if (DISPLAY_VER(display) >= 35) {
+               selected_result = method2;
        } else {
                if ((wp->cpp * crtc_state->hw.pipe_mode.crtc_htotal /
                     wp->dbuf_block_size < 1) &&