Forráskód Böngészése

Merge "disp: msm: sde: allow fence signalling during crtc disable"

qctecmdr 6 éve
szülő
commit
3f9677f2a5
2 módosított fájl, 4 hozzáadás és 4 törlés
  1. 3 3
      msm/sde/sde_fence.c
  2. 1 1
      msm/sde/sde_kms.c

+ 3 - 3
msm/sde/sde_fence.c

@@ -370,13 +370,13 @@ void sde_fence_signal(struct sde_fence_context *ctx, ktime_t ts,
 	spin_lock_irqsave(&ctx->lock, flags);
 	if (fence_event == SDE_FENCE_RESET_TIMELINE) {
 		if ((int)(ctx->done_count - ctx->commit_count) < 0) {
-			SDE_ERROR(
-				"timeline reset attempt! done count:%d commit:%d\n",
+			SDE_DEBUG(
+			  "timeline reset attempt! done count:%d commit:%d\n",
 				ctx->done_count, ctx->commit_count);
 			ctx->done_count = ctx->commit_count;
 			SDE_EVT32(ctx->drm_id, ctx->done_count,
 				ctx->commit_count, ktime_to_us(ts),
-				fence_event, SDE_EVTLOG_FATAL);
+				fence_event, SDE_EVTLOG_FUNC_CASE1);
 		} else {
 			spin_unlock_irqrestore(&ctx->lock, flags);
 			return;

+ 1 - 1
msm/sde/sde_kms.c

@@ -1060,7 +1060,7 @@ retry:
 
 	/* old_state actually contains updated crtc pointers */
 	for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) {
-		if (crtc->state->active)
+		if (crtc->state->active || crtc->state->active_changed)
 			sde_crtc_prepare_commit(crtc, old_crtc_state);
 	}