diff options
| author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2025-10-10 00:13:06 +0300 |
|---|---|---|
| committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2025-10-28 22:59:51 +0200 |
| commit | 369c8f97fbf90a1a90b109e23e4e8c3474651bcb (patch) | |
| tree | 49ce39c9b4cfe2d87def16a7d43d7004cf119d61 | |
| parent | 0e64ee70ed8fb25e1a66502cf940017b9b2cc703 (diff) | |
| download | linux-369c8f97fbf90a1a90b109e23e4e8c3474651bcb.tar.gz linux-369c8f97fbf90a1a90b109e23e4e8c3474651bcb.zip | |
drm/i915: Drop the min plane width w/a adl+
ADL+ no longer need the plane min width w/a (Wa_14011264657 or
Wa_14011050563). Don't apply it there. DG2 still needs it.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251009211313.30234-3-ville.syrjala@linux.intel.com
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
| -rw-r--r-- | drivers/gpu/drm/i915/display/skl_universal_plane.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/skl_universal_plane.c b/drivers/gpu/drm/i915/display/skl_universal_plane.c index e16e42baf86c..a50d9c48b8ca 100644 --- a/drivers/gpu/drm/i915/display/skl_universal_plane.c +++ b/drivers/gpu/drm/i915/display/skl_universal_plane.c @@ -390,6 +390,13 @@ static int glk_plane_max_width(const struct drm_framebuffer *fb, } } +static int adl_plane_min_width(const struct drm_framebuffer *fb, + int color_plane, + unsigned int rotation) +{ + return 16 / fb->format->cpp[color_plane]; +} + static int icl_plane_min_width(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) @@ -2816,7 +2823,10 @@ skl_universal_plane_create(struct intel_display *display, plane->max_height = icl_plane_max_height; plane->min_cdclk = icl_plane_min_cdclk; } else if (DISPLAY_VER(display) >= 11) { - plane->min_width = icl_plane_min_width; + if (DISPLAY_VER(display) >= 14 || display->platform.alderlake_p) + plane->min_width = adl_plane_min_width; + else + plane->min_width = icl_plane_min_width; if (icl_is_hdr_plane(display, plane_id)) plane->max_width = icl_hdr_plane_max_width; else |
