* [PATCH] drm/rockchip: vop: make vop register setting take effect
@ 2016-08-27 3:39 Chris Zhong
2016-08-29 2:51 ` Mark yao
0 siblings, 1 reply; 4+ messages in thread
From: Chris Zhong @ 2016-08-27 3:39 UTC (permalink / raw)
To: linux-arm-kernel
The setting of vop registers need a reg_done writing to take effect.
In vop_enable the vop return to work by by restoring registers, but the
registers do not take effect immediately, it should a vop_cfg_done
after it. The same thing is needed by windows_disabled in
vop_crtc_disable.
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index efbc41a..a0bfcff 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -464,6 +464,8 @@ static int vop_enable(struct drm_crtc *crtc)
}
memcpy(vop->regs, vop->regsbak, vop->len);
+ vop_cfg_done(vop);
+
/*
* At here, vop clock & iommu is enable, R/W vop regs would be safe.
*/
@@ -513,6 +515,8 @@ static void vop_crtc_disable(struct drm_crtc *crtc)
spin_unlock(&vop->reg_lock);
}
+ vop_cfg_done(vop);
+
drm_crtc_vblank_off(crtc);
/*
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] drm/rockchip: vop: make vop register setting take effect
2016-08-27 3:39 [PATCH] drm/rockchip: vop: make vop register setting take effect Chris Zhong
@ 2016-08-29 2:51 ` Mark yao
2017-01-17 9:32 ` Tomasz Figa
0 siblings, 1 reply; 4+ messages in thread
From: Mark yao @ 2016-08-29 2:51 UTC (permalink / raw)
To: linux-arm-kernel
On 2016?08?27? 11:39, Chris Zhong wrote:
> The setting of vop registers need a reg_done writing to take effect.
> In vop_enable the vop return to work by by restoring registers, but the
> registers do not take effect immediately, it should a vop_cfg_done
> after it. The same thing is needed by windows_disabled in
> vop_crtc_disable.
>
> Signed-off-by: Chris Zhong <zyw@rock-chips.com>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++++
> 1 file changed, 4 insertions(+)
Thanks for your fix.
applied to my drm-fixes.
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
> index efbc41a..a0bfcff 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
> @@ -464,6 +464,8 @@ static int vop_enable(struct drm_crtc *crtc)
> }
>
> memcpy(vop->regs, vop->regsbak, vop->len);
> + vop_cfg_done(vop);
> +
> /*
> * At here, vop clock & iommu is enable, R/W vop regs would be safe.
> */
> @@ -513,6 +515,8 @@ static void vop_crtc_disable(struct drm_crtc *crtc)
> spin_unlock(&vop->reg_lock);
> }
>
> + vop_cfg_done(vop);
> +
> drm_crtc_vblank_off(crtc);
>
> /*
--
?ark Yao
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] drm/rockchip: vop: make vop register setting take effect
2016-08-29 2:51 ` Mark yao
@ 2017-01-17 9:32 ` Tomasz Figa
2017-01-17 10:06 ` Mark yao
0 siblings, 1 reply; 4+ messages in thread
From: Tomasz Figa @ 2017-01-17 9:32 UTC (permalink / raw)
To: linux-arm-kernel
Hi Mark,
On Mon, Aug 29, 2016 at 11:51 AM, Mark yao <mark.yao@rock-chips.com> wrote:
> On 2016?08?27? 11:39, Chris Zhong wrote:
>>
>> The setting of vop registers need a reg_done writing to take effect.
>> In vop_enable the vop return to work by by restoring registers, but the
>> registers do not take effect immediately, it should a vop_cfg_done
>> after it. The same thing is needed by windows_disabled in
>> vop_crtc_disable.
>>
>> Signed-off-by: Chris Zhong <zyw@rock-chips.com>
>> ---
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>
> Thanks for your fix.
>
> applied to my drm-fixes.
This patch seems to have been lost in action. I don't see it in linux-next.
Best regards,
Tomasz
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] drm/rockchip: vop: make vop register setting take effect
2017-01-17 9:32 ` Tomasz Figa
@ 2017-01-17 10:06 ` Mark yao
0 siblings, 0 replies; 4+ messages in thread
From: Mark yao @ 2017-01-17 10:06 UTC (permalink / raw)
To: linux-arm-kernel
Hi Tomasz
I had sent to Dave, but maybe something is wrong, it miss.
the patch is on this pull-request:
https://lists.freedesktop.org/archives/dri-devel/2016-September/118505.html
I forgot to double check it, I will resend to Dave soon.
Thanks.
On 2017?01?17? 17:32, Tomasz Figa wrote:
> Hi Mark,
>
> On Mon, Aug 29, 2016 at 11:51 AM, Mark yao <mark.yao@rock-chips.com> wrote:
>> On 2016?08?27? 11:39, Chris Zhong wrote:
>>> The setting of vop registers need a reg_done writing to take effect.
>>> In vop_enable the vop return to work by by restoring registers, but the
>>> registers do not take effect immediately, it should a vop_cfg_done
>>> after it. The same thing is needed by windows_disabled in
>>> vop_crtc_disable.
>>>
>>> Signed-off-by: Chris Zhong <zyw@rock-chips.com>
>>> ---
>>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++++
>>> 1 file changed, 4 insertions(+)
>> Thanks for your fix.
>>
>> applied to my drm-fixes.
> This patch seems to have been lost in action. I don't see it in linux-next.
>
> Best regards,
> Tomasz
>
>
>
--
?ark Yao
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-01-17 10:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-27 3:39 [PATCH] drm/rockchip: vop: make vop register setting take effect Chris Zhong
2016-08-29 2:51 ` Mark yao
2017-01-17 9:32 ` Tomasz Figa
2017-01-17 10:06 ` Mark yao
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).