Explorar o código

disp: msm: sde: fix panel mode check during secure transition

During transition from sui to non-secure if concurrent
writeback is enabled, it is incorrectly assumed as
video-mode panel. This leads to wrong video-mode
validations and false errors. Fix the check to get the
panel mode only from the primary display.

Change-Id: I3da3076d17cfe2314118b947133cbfc55581a195
Signed-off-by: Veera Sundaram Sankaran <[email protected]>
Veera Sundaram Sankaran %!s(int64=5) %!d(string=hai) anos
pai
achega
c24da68432
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      msm/sde/sde_crtc.c

+ 4 - 2
msm/sde/sde_crtc.c

@@ -4272,9 +4272,11 @@ static int _sde_crtc_check_secure_state_smmu_translation(struct drm_crtc *crtc,
 	struct drm_encoder *encoder;
 	int is_video_mode = false;
 
-	drm_for_each_encoder_mask(encoder, crtc->dev, state->encoder_mask)
-		is_video_mode |= sde_encoder_check_curr_mode(encoder,
+	drm_for_each_encoder_mask(encoder, crtc->dev, state->encoder_mask) {
+		if (sde_encoder_is_primary_display(encoder))
+			is_video_mode |= sde_encoder_check_curr_mode(encoder,
 						MSM_DISPLAY_VIDEO_MODE);
+	}
 
 	/*
 	 * In video mode check for null commit before transition