Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1266377 > unrolled thread
| Started by | Mark Yao <mark.yao@rock-chips.com> |
|---|---|
| First post | 2015-11-10 11:10 +0100 |
| Last post | 2015-11-11 01:40 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] drm/rockchip: vop: fix window origin calculation Mark Yao <mark.yao@rock-chips.com> - 2015-11-10 11:10 +0100
Re: [PATCH] drm/rockchip: vop: fix window origin calculation Heiko Stuebner <heiko@sntech.de> - 2015-11-10 12:50 +0100
Re: [PATCH] drm/rockchip: vop: fix window origin calculation Heiko Stuebner <heiko@sntech.de> - 2015-11-10 16:00 +0100
Re: [PATCH] drm/rockchip: vop: fix window origin calculation Mark yao <mark.yao@rock-chips.com> - 2015-11-11 01:40 +0100
| From | Mark Yao <mark.yao@rock-chips.com> |
|---|---|
| Date | 2015-11-10 11:10 +0100 |
| Subject | [PATCH] drm/rockchip: vop: fix window origin calculation |
| Message-ID | <qte2e-3Ga-33@gated-at.bofh.it> |
From: Dominik Behr <dbehr@chromium.org> VOP_WINx_DSP_ST does not require subtracting 1 from the values written to it. It actually causes the screen to be shifted by one pixel. Signed-off-by: Mark Yao <mark.yao@rock-chips.com> --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 48719df..4730ae4 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -959,8 +959,8 @@ static int vop_update_plane_event(struct drm_plane *plane, val = (dest.y2 - dest.y1 - 1) << 16; val |= (dest.x2 - dest.x1 - 1) & 0xffff; VOP_WIN_SET(vop, win, dsp_info, val); - val = (dsp_sty - 1) << 16; - val |= (dsp_stx - 1) & 0xffff; + val = dsp_sty << 16; + val |= dsp_stx & 0xffff; VOP_WIN_SET(vop, win, dsp_st, val); VOP_WIN_SET(vop, win, rb_swap, rb_swap); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Heiko Stuebner <heiko@sntech.de> |
|---|---|
| Date | 2015-11-10 12:50 +0100 |
| Message-ID | <qtfAZ-4wQ-5@gated-at.bofh.it> |
| In reply to | #1266377 |
Am Dienstag, 10. November 2015, 17:59:10 schrieb Mark Yao: > From: Dominik Behr <dbehr@chromium.org> > > VOP_WINx_DSP_ST does not require subtracting 1 from the values written to > it. It actually causes the screen to be shifted by one pixel. > > Signed-off-by: Mark Yao <mark.yao@rock-chips.com> funny I never noticed that shift, but now that you mention it, I see it too on my Chromebook and the patch fixes this. I've also looked up the matching data in the TRM, so Reviewed-by: Heiko Stuebner <heiko@sntech.de> Tested-by: Heiko Stuebner <heiko@sntech.de> Heiko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Heiko Stuebner <heiko@sntech.de> |
|---|---|
| Date | 2015-11-10 16:00 +0100 |
| Message-ID | <qtiyS-6mw-25@gated-at.bofh.it> |
| In reply to | #1266377 |
Am Dienstag, 10. November 2015, 17:59:10 schrieb Mark Yao: > From: Dominik Behr <dbehr@chromium.org> > > VOP_WINx_DSP_ST does not require subtracting 1 from the values written to > it. It actually causes the screen to be shifted by one pixel. > > Signed-off-by: Mark Yao <mark.yao@rock-chips.com> One thing I noticed, the original patch [0] had a Signed-off from Dominik already and you should keep that as he is the author, and then add your Signed-off below that, as you are the submitter, So it would look like: Signed-off-by: Dominik Behr <dbehr@chromium.org> Signed-off-by: Mark Yao <mark.yao@rock-chips.com> That may not need a repost, but should probably be corrected when applying the patch. Heiko [0] https://chromium-review.googlesource.com/#/c/233251/ > --- > drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > index 48719df..4730ae4 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > @@ -959,8 +959,8 @@ static int vop_update_plane_event(struct drm_plane *plane, > val = (dest.y2 - dest.y1 - 1) << 16; > val |= (dest.x2 - dest.x1 - 1) & 0xffff; > VOP_WIN_SET(vop, win, dsp_info, val); > - val = (dsp_sty - 1) << 16; > - val |= (dsp_stx - 1) & 0xffff; > + val = dsp_sty << 16; > + val |= dsp_stx & 0xffff; > VOP_WIN_SET(vop, win, dsp_st, val); > VOP_WIN_SET(vop, win, rb_swap, rb_swap); > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Mark yao <mark.yao@rock-chips.com> |
|---|---|
| Date | 2015-11-11 01:40 +0100 |
| Message-ID | <qtrCa-3Ub-19@gated-at.bofh.it> |
| In reply to | #1266559 |
On 2015年11月10日 22:57, Heiko Stuebner wrote: > Am Dienstag, 10. November 2015, 17:59:10 schrieb Mark Yao: >> From: Dominik Behr <dbehr@chromium.org> >> >> VOP_WINx_DSP_ST does not require subtracting 1 from the values written to >> it. It actually causes the screen to be shifted by one pixel. >> >> Signed-off-by: Mark Yao <mark.yao@rock-chips.com> > One thing I noticed, the original patch [0] had a Signed-off from > Dominik already and you should keep that as he is the author, and then > add your Signed-off below that, as you are the submitter, > > So it would look like: > > Signed-off-by: Dominik Behr <dbehr@chromium.org> > Signed-off-by: Mark Yao <mark.yao@rock-chips.com> > > > That may not need a repost, but should probably be corrected when applying > the patch. > > Heiko > > [0] https://chromium-review.googlesource.com/#/c/233251/ > Got it, thanks. >> --- >> drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c >> index 48719df..4730ae4 100644 >> --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c >> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c >> @@ -959,8 +959,8 @@ static int vop_update_plane_event(struct drm_plane *plane, >> val = (dest.y2 - dest.y1 - 1) << 16; >> val |= (dest.x2 - dest.x1 - 1) & 0xffff; >> VOP_WIN_SET(vop, win, dsp_info, val); >> - val = (dsp_sty - 1) << 16; >> - val |= (dsp_stx - 1) & 0xffff; >> + val = dsp_sty << 16; >> + val |= dsp_stx & 0xffff; >> VOP_WIN_SET(vop, win, dsp_st, val); >> VOP_WIN_SET(vop, win, rb_swap, rb_swap); >> >> > > > -- Mark Yao -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web