Kaynağa Gözat

Merge "disp: msm: sde: fix bandwidth voting in resume usecase"

qctecmdr 5 yıl önce
ebeveyn
işleme
707ce010fe
2 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 2 0
      msm/sde/sde_core_perf.c
  2. 3 0
      msm/sde/sde_crtc.c

+ 2 - 0
msm/sde/sde_core_perf.c

@@ -666,6 +666,8 @@ static void _sde_core_perf_crtc_update_bus(struct sde_kms *kms,
 	}
 
 	bus_ab_quota = max(bw_sum_of_intfs, kms->perf.perf_tune.min_bus_vote);
+	bus_ab_quota = min(bus_ab_quota,
+			kms->catalog->perf.max_bw_high*1000ULL);
 	bus_ib_quota = perf.max_per_pipe_ib[bus_id];
 
 	if (kms->perf.perf_tune.mode == SDE_PERF_MODE_FIXED) {

+ 3 - 0
msm/sde/sde_crtc.c

@@ -5614,6 +5614,9 @@ int sde_crtc_helper_reset_custom_properties(struct drm_crtc *crtc,
 		}
 	}
 
+	/* disable clk and bw control until clk & bw properties are set */
+	cstate->bw_control = false;
+	cstate->bw_split_vote = false;
 	return 0;
 }