Explorar o código

disp: msm: sde: fix logging in crtc and kms

Fix the crtc status to print the formatted src
rect for all the planes and log the true inline
rotation flag. Move the event log in splash cleanup,
so that it is not logged for every frame.

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

+ 4 - 3
msm/sde/sde_crtc.c

@@ -5374,8 +5374,8 @@ static int _sde_debugfs_status_show(struct seq_file *s, void *data)
 		if (!pstate || !state)
 			continue;
 
-		seq_printf(s, "\tplane:%u stage:%d\n", plane->base.id,
-			pstate->stage);
+		seq_printf(s, "\tplane:%u stage:%d rotation:%d\n",
+			plane->base.id, pstate->stage, pstate->rotation);
 
 		if (plane->state->fb) {
 			fb = plane->state->fb;
@@ -5405,7 +5405,8 @@ static int _sde_debugfs_status_show(struct seq_file *s, void *data)
 		}
 
 		seq_printf(s, "\tsrc_x:%4d src_y:%4d src_w:%4d src_h:%4d\n",
-			state->src_x, state->src_y, state->src_w, state->src_h);
+			state->src_x >> 16, state->src_y >> 16,
+			state->src_w >> 16, state->src_h >> 16);
 
 		seq_printf(s, "\tdst x:%4d dst_y:%4d dst_w:%4d dst_h:%4d\n",
 			state->crtc_x, state->crtc_y, state->crtc_w,

+ 3 - 2
msm/sde/sde_kms.c

@@ -881,11 +881,12 @@ static void _sde_kms_release_splash_resource(struct sde_kms *sde_kms,
 
 	priv = sde_kms->dev->dev_private;
 
-	SDE_EVT32(crtc->base.id, crtc->state->active,
-			sde_kms->splash_data.num_splash_displays);
 	if (!crtc->state->active || !sde_kms->splash_data.num_splash_displays)
 		return;
 
+	SDE_EVT32(DRMID(crtc), crtc->state->active,
+			sde_kms->splash_data.num_splash_displays);
+
 	for (i = 0; i < MAX_DSI_DISPLAYS; i++) {
 		splash_display = &sde_kms->splash_data.splash_display[i];
 		if (splash_display->encoder &&