From: Ville Syrjälä Date: Tue, 20 Oct 2020 19:43:29 +0000 (+0300) Subject: drm/i915: Reject 90/270 degree rotated initial fbs X-Git-Tag: accepted/tizen/unified/20230118.172025~6402^2~29^2~739 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a40a8305a732f4ecc2186ac7ca132ba062ed770d;p=platform%2Fkernel%2Flinux-rpi.git drm/i915: Reject 90/270 degree rotated initial fbs We don't currently handle the initial fb readout correctly for 90/270 degree rotated scanout. Reject it. Cc: stable@vger.kernel.org Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20201020194330.28568-1-ville.syrjala@linux.intel.com Reviewed-by: Chris Wilson --- diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index d2e37ab..bce5a0d 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -10802,6 +10802,10 @@ skl_get_initial_plane_config(struct intel_crtc *crtc, val & PLANE_CTL_FLIP_HORIZONTAL) plane_config->rotation |= DRM_MODE_REFLECT_X; + /* 90/270 degree rotation would require extra work */ + if (drm_rotation_90_or_270(plane_config->rotation)) + goto error; + base = intel_de_read(dev_priv, PLANE_SURF(pipe, plane_id)) & 0xfffff000; plane_config->base = base;