diff options
author | Sean Paul <seanpaul@chromium.org> | 2016-08-18 15:01:46 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2016-09-21 09:55:47 -0400 |
commit | b883c9ba18a4d527fddc952a35565e34a5d22e15 (patch) | |
tree | 95c633828ad4820f668515525b4d5ee12e04419c /drivers/gpu/drm/rockchip/rockchip_drm_fb.c | |
parent | 52f13a02b7d5f26feb69bf955bef10fbfaafbd7c (diff) |
drm/rockchip: Don't key off vblank for psr
Instead of keying off vblank for psr, just flush every time
we get an atomic update. This ensures that cursor updates
will properly disable psr (without turning vblank on/off),
and unifies the paths between fb_dirty and atomic psr
enable/disable.
Reviewed-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_fb.c')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c index 60bcc48f84b9..9890eccadd3b 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c | |||
@@ -70,7 +70,7 @@ static int rockchip_drm_fb_dirty(struct drm_framebuffer *fb, | |||
70 | struct drm_clip_rect *clips, | 70 | struct drm_clip_rect *clips, |
71 | unsigned int num_clips) | 71 | unsigned int num_clips) |
72 | { | 72 | { |
73 | rockchip_drm_psr_flush(fb->dev); | 73 | rockchip_drm_psr_flush_all(fb->dev); |
74 | return 0; | 74 | return 0; |
75 | } | 75 | } |
76 | 76 | ||