disp: msm: sde: update kickoff timeout for CMD panel

While transition from very low fps (1Hz) to higher fps (120Hz)
there will be a delay on first frame to take effect on
mode switch. In such cases if kickoff_timeout value is programmed
based on newer high fps wr_ptr_timeout can happen. To avoid this
update the kickoff timeout with respect to lower fps and reset
it back according to present fps once the mode switch commit is
done.

Change-Id: I08e1a68bb1e388a1bda8ef61d47e9eb4b2fc97fe
Signed-off-by: Mahadevan <quic_mahap@quicinc.com>
This commit is contained in:
Mahadevan
2023-10-18 20:21:21 +05:30
rodzic 36710bd6c6
commit eb84d660f1
4 zmienionych plików z 27 dodań i 1 usunięć

Wyświetl plik

@@ -386,6 +386,12 @@ int sde_encoder_prepare_for_kickoff(struct drm_encoder *encoder,
*/
void sde_encoder_trigger_kickoff_pending(struct drm_encoder *encoder);
/**
* sde_encoder_reset_kickoff_timeout_ms - Reset the kickoff_timout after modeset
* commit for command mode display.
* @encoder: encoder pointer
*/
void sde_encoder_reset_kickoff_timeout_ms(struct drm_encoder *encoder);
/**
* sde_encoder_kickoff - trigger a double buffer flip of the ctl path
* (i.e. ctl flush and start) immediately.