int width, const struct drm_format_info *format,
                                 u64 modifier, unsigned int rotation,
                                 u32 plane_pixel_rate, struct skl_wm_params *wp,
-                                int color_plane);
+                                int color_plane, unsigned int pan_x);
 
 static void skl_compute_plane_wm(const struct intel_crtc_state *crtc_state,
                                 struct intel_plane *plane,
                                    drm_format_info(DRM_FORMAT_ARGB8888),
                                    DRM_FORMAT_MOD_LINEAR,
                                    DRM_MODE_ROTATE_0,
-                                   crtc_state->pixel_rate, &wp, 0);
+                                   crtc_state->pixel_rate, &wp, 0, 0);
        drm_WARN_ON(&i915->drm, ret);
 
        for (level = 0; level < i915->display.wm.num_levels; level++) {
                      int width, const struct drm_format_info *format,
                      u64 modifier, unsigned int rotation,
                      u32 plane_pixel_rate, struct skl_wm_params *wp,
-                     int color_plane)
+                     int color_plane, unsigned int pan_x)
 {
        struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
        struct drm_i915_private *i915 = to_i915(crtc->base.dev);
                                           wp->y_min_scanlines,
                                           wp->dbuf_block_size);
 
-               if (DISPLAY_VER(i915) >= 10)
+               if (DISPLAY_VER(i915) >= 30)
+                       interm_pbpl += (pan_x != 0);
+               else if (DISPLAY_VER(i915) >= 10)
                        interm_pbpl++;
 
                wp->plane_blocks_per_line = div_fixed16(interm_pbpl,
                                     fb->format, fb->modifier,
                                     plane_state->hw.rotation,
                                     intel_plane_pixel_rate(crtc_state, plane_state),
-                                    wp, color_plane);
+                                    wp, color_plane,
+                                    plane_state->uapi.src.x1);
 }
 
 static bool skl_wm_has_lines(struct drm_i915_private *i915, int level)
                }
        }
 
-       blocks = fixed16_to_u32_round_up(selected_result) + 1;
+       blocks = fixed16_to_u32_round_up(selected_result);
+       if (DISPLAY_VER(i915) < 30)
+               blocks++;
+
        /*
         * Lets have blocks at minimum equivalent to plane_blocks_per_line
         * as there will be at minimum one line for lines configuration. This