disp: msm: sde: add vsync count in virtual encoder

Introduce vsync count variable in virtual encoder structure
to keep the vsync count variable value in sync while performing
the poms. Consequently, this prevents the blocking of
drm_vblank_put and the invocation of
drm_crtc_funcs.disable_vblank.

Change-Id: I74903a89b17a8f46fb1b21338500553f36771dd0
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
Šī revīzija ir iekļauta:
Akash Gajjar
2023-05-30 13:59:50 +05:30
vecāks 1bb44a8184
revīzija 3e3c2b50a2
2 mainīti faili ar 10 papildinājumiem un 2 dzēšanām

Parādīt failu

@@ -181,6 +181,7 @@ enum sde_sim_qsync_event {
* @rsc_state_init: boolean to indicate rsc config init
* @disp_info: local copy of msm_display_info struct
* @misr_enable: misr enable/disable status
* @vsync_cnt: Vsync count for the physical encoder
* @misr_reconfigure: boolean entry indicates misr reconfigure status
* @misr_frame_count: misr frame count before start capturing the data
* @idle_pc_enabled: indicate if idle power collapse is enabled
@@ -262,6 +263,7 @@ struct sde_encoder_virt {
bool rsc_state_init;
struct msm_display_info disp_info;
atomic_t misr_enable;
atomic_t vsync_cnt;
bool misr_reconfigure;
u32 misr_frame_count;