Merge "disp: msm: sde: update uidle wd timer load value and fal1 threshold"

Šī revīzija ir iekļauta:
qctecmdr
2020-07-13 02:05:31 -07:00
revīziju iesūtīja Gerrit - the friendly Code Review server
revīzija 47918b2ba5
3 mainīti faili ar 6 papildinājumiem un 4 dzēšanām

Parādīt failu

@@ -2861,6 +2861,7 @@ static void _sde_plane_setup_uidle(struct drm_crtc *crtc,
{
struct sde_hw_pipe_uidle_cfg cfg;
struct sde_crtc *sde_crtc = to_sde_crtc(crtc);
u32 fal1_threshold_max = 15;
u32 line_time = sde_get_linetime(&crtc->mode,
sde_crtc->src_bpp, sde_crtc->target_bpp); /* nS */
@@ -2876,8 +2877,9 @@ static void _sde_plane_setup_uidle(struct drm_crtc *crtc,
cfg.enable = _sde_plane_allow_uidle(psde, src, dst);
cfg.fal10_threshold = fal10_threshold;
cfg.fal10_exit_threshold = fal10_threshold + 2;
cfg.fal1_threshold = 1 +
(fal1_target_idle_time_ns*1000/line_time*2)/1000;
cfg.fal1_threshold = min(1 +
(fal1_target_idle_time_ns*1000/line_time*2)/1000,
fal1_threshold_max);
cfg.fal_allowed_threshold = fal10_threshold +
(fal10_target_idle_time_ns*1000/line_time*2)/1000;
} else {