mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drm/rockchip: vop2: set config done critical time to lase 1/8 frame
According to test, 1/4 frame will cost a wait for 4ms, 1/8 frame cost a wait for 1~2ms, I think 1~2ms is enough for a config done write. Change-Id: I6ba46a8a2cb97434998376e85e5b5fc7a53a9616 Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
This commit is contained in:
@@ -789,8 +789,8 @@ static inline void vop2_cfg_done(struct drm_crtc *crtc)
|
||||
done_vp = &vop2->vps[vp_id];
|
||||
adjusted_mode = &done_vp->crtc.state->adjusted_mode;
|
||||
vcnt = vop2_read_vcnt(done_vp);
|
||||
/* if close to the last 1/4 frame, wait to next frame */
|
||||
if (vcnt > (adjusted_mode->crtc_vtotal * 3 >> 2)) {
|
||||
/* if close to the last 1/8 frame, wait to next frame */
|
||||
if (vcnt > (adjusted_mode->crtc_vtotal * 7 >> 3)) {
|
||||
vop2_wait_for_fs_by_vcnt(done_vp, vcnt);
|
||||
done_bits = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user