* [PATCH 4.4.y 1/2] drm: rcar-du: Use the VBK interrupt for vblank events
@ 2018-02-06 6:37 Nhan Nguyen
2018-02-06 20:31 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Nhan Nguyen @ 2018-02-06 6:37 UTC (permalink / raw)
To: greg
Cc: yasushi.onishi.xc, binh.nguyen.uw, Laurent Pinchart, stable,
thongsyho, Nhan Nguyen
From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
commit cbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0 upstream.
When implementing support for interlaced modes, the driver switched from
reporting vblank events on the vertical blanking (VBK) interrupt to the
frame end interrupt (FRM). This incorrectly divided the reported refresh
rate by two. Fix it by moving back to the VBK interrupt.
Fixes: 906eff7fcada ("drm: rcar-du: Implement support for interlaced modes")
Cc: stable@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: thongsyho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
---
drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
index 9befd62..25bdab6 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
@@ -531,7 +531,7 @@ static irqreturn_t rcar_du_crtc_irq(int irq, void *arg)
status = rcar_du_crtc_read(rcrtc, DSSR);
rcar_du_crtc_write(rcrtc, DSRCR, status & DSRCR_MASK);
- if (status & DSSR_FRM) {
+ if (status & DSSR_VBK) {
drm_handle_vblank(rcrtc->crtc.dev, rcrtc->index);
rcar_du_crtc_finish_page_flip(rcrtc);
ret = IRQ_HANDLED;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 4.4.y 1/2] drm: rcar-du: Use the VBK interrupt for vblank events
2018-02-06 6:37 [PATCH 4.4.y 1/2] drm: rcar-du: Use the VBK interrupt for vblank events Nhan Nguyen
@ 2018-02-06 20:31 ` Greg KH
2018-02-07 4:34 ` Nhan Ngoc. Nguyen
2018-02-07 4:35 ` Nhan Ngoc. Nguyen
0 siblings, 2 replies; 4+ messages in thread
From: Greg KH @ 2018-02-06 20:31 UTC (permalink / raw)
To: Nhan Nguyen
Cc: yasushi.onishi.xc, binh.nguyen.uw, Laurent Pinchart, stable,
thongsyho
On Tue, Feb 06, 2018 at 01:37:08PM +0700, Nhan Nguyen wrote:
> From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>
> commit cbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0 upstream.
>
> When implementing support for interlaced modes, the driver switched from
> reporting vblank events on the vertical blanking (VBK) interrupt to the
> frame end interrupt (FRM). This incorrectly divided the reported refresh
> rate by two. Fix it by moving back to the VBK interrupt.
>
> Fixes: 906eff7fcada ("drm: rcar-du: Implement support for interlaced modes")
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> Signed-off-by: thongsyho <thong.ho.px@rvc.renesas.com>
> Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
> ---
> drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Are you going to send a series for 4.9 for these patches?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 4.4.y 1/2] drm: rcar-du: Use the VBK interrupt for vblank events
2018-02-06 20:31 ` Greg KH
@ 2018-02-07 4:34 ` Nhan Ngoc. Nguyen
2018-02-07 4:35 ` Nhan Ngoc. Nguyen
1 sibling, 0 replies; 4+ messages in thread
From: Nhan Ngoc. Nguyen @ 2018-02-07 4:34 UTC (permalink / raw)
To: Greg KH
Cc: yasushi.onishi.xc, binh.nguyen.uw, Laurent Pinchart, stable,
thongsyho
On 2/7/2018 3:31 AM, Greg KH wrote:
> On Tue, Feb 06, 2018 at 01:37:08PM +0700, Nhan Nguyen wrote:
>> From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>>
>> commit cbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0 upstream.
>>
>> When implementing support for interlaced modes, the driver switched from
>> reporting vblank events on the vertical blanking (VBK) interrupt to the
>> frame end interrupt (FRM). This incorrectly divided the reported refresh
>> rate by two. Fix it by moving back to the VBK interrupt.
>>
>> Fixes: 906eff7fcada ("drm: rcar-du: Implement support for interlaced modes")
>>
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>> Signed-off-by: thongsyho <thong.ho.px@rvc.renesas.com>
>> Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
>> ---
>> drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
> Are you going to send a series for 4.9 for these patches?
>
> thanks,
>
> greg k-h
>
Sorry, I'm late. I've just send you!
Thanks,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 4.4.y 1/2] drm: rcar-du: Use the VBK interrupt for vblank events
2018-02-06 20:31 ` Greg KH
2018-02-07 4:34 ` Nhan Ngoc. Nguyen
@ 2018-02-07 4:35 ` Nhan Ngoc. Nguyen
1 sibling, 0 replies; 4+ messages in thread
From: Nhan Ngoc. Nguyen @ 2018-02-07 4:35 UTC (permalink / raw)
To: Greg KH
Cc: yasushi.onishi.xc, binh.nguyen.uw, Laurent Pinchart, stable,
thongsyho
On 2/7/2018 3:31 AM, Greg KH wrote:
> On Tue, Feb 06, 2018 at 01:37:08PM +0700, Nhan Nguyen wrote:
>> From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>>
>> commit cbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0 upstream.
>>
>> When implementing support for interlaced modes, the driver switched from
>> reporting vblank events on the vertical blanking (VBK) interrupt to the
>> frame end interrupt (FRM). This incorrectly divided the reported refresh
>> rate by two. Fix it by moving back to the VBK interrupt.
>>
>> Fixes: 906eff7fcada ("drm: rcar-du: Implement support for interlaced modes")
>>
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>> Signed-off-by: thongsyho <thong.ho.px@rvc.renesas.com>
>> Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
>> ---
>> drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
> Are you going to send a series for 4.9 for these patches?
>
> thanks,
>
> greg k-h
>
Sorry, I'm late. I've just sent you!
Thanks,
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-07 4:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-06 6:37 [PATCH 4.4.y 1/2] drm: rcar-du: Use the VBK interrupt for vblank events Nhan Nguyen
2018-02-06 20:31 ` Greg KH
2018-02-07 4:34 ` Nhan Ngoc. Nguyen
2018-02-07 4:35 ` Nhan Ngoc. Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).