Re: imx-drm: vblank wait timed out

2017-04-05 Thread Christian Gmeiner
2017-04-05 12:05 GMT+02:00 Philipp Zabel :
> On Tue, 2017-04-04 at 14:50 +0200, Christian Gmeiner wrote:
> [...]
>> > Is this on a non-plus i.MX6? Maybe are missing the LDB DI clock glitch
>> > fixes (commits 5d283b083800, 03d576f202e8, and f13abeff2cde)?
>>
>> Yes it is a non-plus i.MX6D and all those three patches are included in
>> 4.9.20 (which I am using right now), But maybe my dts is not that good as I
>> used it for a longer time without any changes to it. It is really time to get
>> those upstream.
>
> Which device tree is this? Can I see it?
>

sure: https://hastebin.com/ekiyiticac.cpp

>> At the moment I have this artifact in it:
>>
>>  {
>> assigned-clocks = < IMX6QDL_CLK_LDB_DI0_SEL>,
>>   < IMX6QDL_CLK_LDB_DI1_SEL>;
>> assigned-clock-parents = < IMX6QDL_CLK_PLL5_VIDEO_DIV>,
>>  < IMX6QDL_CLK_PLL5_VIDEO_DIV>;
>> };
>>
>> I am not to 100% sure if PLL5 is what I want - need.
>
> I'd use PLL5 for LVDS only if there is no other clock that can provide
> the required rate, or if thee is no other display. Is LVDS the only user
> of PLL5 or does this maybe conflict with HDMI?
>

No HDMI - here is clk_summary output: https://hastebin.com/ugesivojep.rb

greets
--
Christian Gmeiner, MSc

https://www.youtube.com/user/AloryOFFICIAL
https://soundcloud.com/christian-gmeiner


Re: imx-drm: vblank wait timed out

2017-04-05 Thread Christian Gmeiner
2017-04-05 12:05 GMT+02:00 Philipp Zabel :
> On Tue, 2017-04-04 at 14:50 +0200, Christian Gmeiner wrote:
> [...]
>> > Is this on a non-plus i.MX6? Maybe are missing the LDB DI clock glitch
>> > fixes (commits 5d283b083800, 03d576f202e8, and f13abeff2cde)?
>>
>> Yes it is a non-plus i.MX6D and all those three patches are included in
>> 4.9.20 (which I am using right now), But maybe my dts is not that good as I
>> used it for a longer time without any changes to it. It is really time to get
>> those upstream.
>
> Which device tree is this? Can I see it?
>

sure: https://hastebin.com/ekiyiticac.cpp

>> At the moment I have this artifact in it:
>>
>>  {
>> assigned-clocks = < IMX6QDL_CLK_LDB_DI0_SEL>,
>>   < IMX6QDL_CLK_LDB_DI1_SEL>;
>> assigned-clock-parents = < IMX6QDL_CLK_PLL5_VIDEO_DIV>,
>>  < IMX6QDL_CLK_PLL5_VIDEO_DIV>;
>> };
>>
>> I am not to 100% sure if PLL5 is what I want - need.
>
> I'd use PLL5 for LVDS only if there is no other clock that can provide
> the required rate, or if thee is no other display. Is LVDS the only user
> of PLL5 or does this maybe conflict with HDMI?
>

No HDMI - here is clk_summary output: https://hastebin.com/ugesivojep.rb

greets
--
Christian Gmeiner, MSc

https://www.youtube.com/user/AloryOFFICIAL
https://soundcloud.com/christian-gmeiner


Re: imx-drm: vblank wait timed out

2017-04-05 Thread Philipp Zabel
On Tue, 2017-04-04 at 14:50 +0200, Christian Gmeiner wrote:
[...]
> > Is this on a non-plus i.MX6? Maybe are missing the LDB DI clock glitch
> > fixes (commits 5d283b083800, 03d576f202e8, and f13abeff2cde)?
> 
> Yes it is a non-plus i.MX6D and all those three patches are included in
> 4.9.20 (which I am using right now), But maybe my dts is not that good as I
> used it for a longer time without any changes to it. It is really time to get
> those upstream.

Which device tree is this? Can I see it?

> At the moment I have this artifact in it:
> 
>  {
> assigned-clocks = < IMX6QDL_CLK_LDB_DI0_SEL>,
>   < IMX6QDL_CLK_LDB_DI1_SEL>;
> assigned-clock-parents = < IMX6QDL_CLK_PLL5_VIDEO_DIV>,
>  < IMX6QDL_CLK_PLL5_VIDEO_DIV>;
> };
> 
> I am not to 100% sure if PLL5 is what I want - need.

I'd use PLL5 for LVDS only if there is no other clock that can provide
the required rate, or if thee is no other display. Is LVDS the only user
of PLL5 or does this maybe conflict with HDMI?

regards
Philipp



Re: imx-drm: vblank wait timed out

2017-04-05 Thread Philipp Zabel
On Tue, 2017-04-04 at 14:50 +0200, Christian Gmeiner wrote:
[...]
> > Is this on a non-plus i.MX6? Maybe are missing the LDB DI clock glitch
> > fixes (commits 5d283b083800, 03d576f202e8, and f13abeff2cde)?
> 
> Yes it is a non-plus i.MX6D and all those three patches are included in
> 4.9.20 (which I am using right now), But maybe my dts is not that good as I
> used it for a longer time without any changes to it. It is really time to get
> those upstream.

Which device tree is this? Can I see it?

> At the moment I have this artifact in it:
> 
>  {
> assigned-clocks = < IMX6QDL_CLK_LDB_DI0_SEL>,
>   < IMX6QDL_CLK_LDB_DI1_SEL>;
> assigned-clock-parents = < IMX6QDL_CLK_PLL5_VIDEO_DIV>,
>  < IMX6QDL_CLK_PLL5_VIDEO_DIV>;
> };
> 
> I am not to 100% sure if PLL5 is what I want - need.

I'd use PLL5 for LVDS only if there is no other clock that can provide
the required rate, or if thee is no other display. Is LVDS the only user
of PLL5 or does this maybe conflict with HDMI?

regards
Philipp



Re: imx-drm: vblank wait timed out

2017-04-04 Thread Christian Gmeiner
2017-04-04 10:14 GMT+02:00 Philipp Zabel :
> Hi Christian,
>
> On Mon, 2017-04-03 at 17:16 +0200, Christian Gmeiner wrote:
>> 2017-03-31 14:57 GMT+02:00 Philipp Zabel :
>> > Hi Christian,
>> >
>> > On Fri, 2017-03-31 at 12:44 +0200, Christian Gmeiner wrote:
>> >> Hi
>> >>
>> >> I get this from time to time on a 4.9.17 kernel:
>> >>
>> >> [3.353387] [ cut here ]
>> >> [3.353408] WARNING: CPU: 0 PID: 1 at
>> >> drivers/gpu/drm/drm_atomic_helper.c:1140
>> >> drm_atomic_helper_wait_for_vblanks+0x240/0x244
>> >> [3.353412] [CRTC:24] vblank wait timed out
>> > [...]
>> >
>> > Do the four patches in
>> >  git://git.pengutronix.de/git/pza/linux.git tags/v4.9-ipu-dp-plane-fix
>> > fix this?
>> >
>>
>> Sadly no - this is what I get after a warm-reboot:
>
> Is this on a non-plus i.MX6? Maybe are missing the LDB DI clock glitch
> fixes (commits 5d283b083800, 03d576f202e8, and f13abeff2cde)?
>

Yes it is a non-plus i.MX6D and all those three patches are included in
4.9.20 (which I am using right now), But maybe my dts is not that good as I
used it for a longer time without any changes to it. It is really time to get
those upstream.

At the moment I have this artifact in it:

 {
assigned-clocks = < IMX6QDL_CLK_LDB_DI0_SEL>,
  < IMX6QDL_CLK_LDB_DI1_SEL>;
assigned-clock-parents = < IMX6QDL_CLK_PLL5_VIDEO_DIV>,
 < IMX6QDL_CLK_PLL5_VIDEO_DIV>;
};

I am not to 100% sure if PLL5 is what I want - need.

greets
--
Christian Gmeiner, MSc

https://www.youtube.com/user/AloryOFFICIAL
https://soundcloud.com/christian-gmeiner


Re: imx-drm: vblank wait timed out

2017-04-04 Thread Christian Gmeiner
2017-04-04 10:14 GMT+02:00 Philipp Zabel :
> Hi Christian,
>
> On Mon, 2017-04-03 at 17:16 +0200, Christian Gmeiner wrote:
>> 2017-03-31 14:57 GMT+02:00 Philipp Zabel :
>> > Hi Christian,
>> >
>> > On Fri, 2017-03-31 at 12:44 +0200, Christian Gmeiner wrote:
>> >> Hi
>> >>
>> >> I get this from time to time on a 4.9.17 kernel:
>> >>
>> >> [3.353387] [ cut here ]
>> >> [3.353408] WARNING: CPU: 0 PID: 1 at
>> >> drivers/gpu/drm/drm_atomic_helper.c:1140
>> >> drm_atomic_helper_wait_for_vblanks+0x240/0x244
>> >> [3.353412] [CRTC:24] vblank wait timed out
>> > [...]
>> >
>> > Do the four patches in
>> >  git://git.pengutronix.de/git/pza/linux.git tags/v4.9-ipu-dp-plane-fix
>> > fix this?
>> >
>>
>> Sadly no - this is what I get after a warm-reboot:
>
> Is this on a non-plus i.MX6? Maybe are missing the LDB DI clock glitch
> fixes (commits 5d283b083800, 03d576f202e8, and f13abeff2cde)?
>

Yes it is a non-plus i.MX6D and all those three patches are included in
4.9.20 (which I am using right now), But maybe my dts is not that good as I
used it for a longer time without any changes to it. It is really time to get
those upstream.

At the moment I have this artifact in it:

 {
assigned-clocks = < IMX6QDL_CLK_LDB_DI0_SEL>,
  < IMX6QDL_CLK_LDB_DI1_SEL>;
assigned-clock-parents = < IMX6QDL_CLK_PLL5_VIDEO_DIV>,
 < IMX6QDL_CLK_PLL5_VIDEO_DIV>;
};

I am not to 100% sure if PLL5 is what I want - need.

greets
--
Christian Gmeiner, MSc

https://www.youtube.com/user/AloryOFFICIAL
https://soundcloud.com/christian-gmeiner


Re: imx-drm: vblank wait timed out

2017-04-04 Thread Philipp Zabel
Hi Christian,

On Mon, 2017-04-03 at 17:16 +0200, Christian Gmeiner wrote:
> 2017-03-31 14:57 GMT+02:00 Philipp Zabel :
> > Hi Christian,
> >
> > On Fri, 2017-03-31 at 12:44 +0200, Christian Gmeiner wrote:
> >> Hi
> >>
> >> I get this from time to time on a 4.9.17 kernel:
> >>
> >> [3.353387] [ cut here ]
> >> [3.353408] WARNING: CPU: 0 PID: 1 at
> >> drivers/gpu/drm/drm_atomic_helper.c:1140
> >> drm_atomic_helper_wait_for_vblanks+0x240/0x244
> >> [3.353412] [CRTC:24] vblank wait timed out
> > [...]
> >
> > Do the four patches in
> >  git://git.pengutronix.de/git/pza/linux.git tags/v4.9-ipu-dp-plane-fix
> > fix this?
> >
> 
> Sadly no - this is what I get after a warm-reboot:

Is this on a non-plus i.MX6? Maybe are missing the LDB DI clock glitch
fixes (commits 5d283b083800, 03d576f202e8, and f13abeff2cde)?

regards
Philipp



Re: imx-drm: vblank wait timed out

2017-04-04 Thread Philipp Zabel
Hi Christian,

On Mon, 2017-04-03 at 17:16 +0200, Christian Gmeiner wrote:
> 2017-03-31 14:57 GMT+02:00 Philipp Zabel :
> > Hi Christian,
> >
> > On Fri, 2017-03-31 at 12:44 +0200, Christian Gmeiner wrote:
> >> Hi
> >>
> >> I get this from time to time on a 4.9.17 kernel:
> >>
> >> [3.353387] [ cut here ]
> >> [3.353408] WARNING: CPU: 0 PID: 1 at
> >> drivers/gpu/drm/drm_atomic_helper.c:1140
> >> drm_atomic_helper_wait_for_vblanks+0x240/0x244
> >> [3.353412] [CRTC:24] vblank wait timed out
> > [...]
> >
> > Do the four patches in
> >  git://git.pengutronix.de/git/pza/linux.git tags/v4.9-ipu-dp-plane-fix
> > fix this?
> >
> 
> Sadly no - this is what I get after a warm-reboot:

Is this on a non-plus i.MX6? Maybe are missing the LDB DI clock glitch
fixes (commits 5d283b083800, 03d576f202e8, and f13abeff2cde)?

regards
Philipp



Re: imx-drm: vblank wait timed out

2017-04-03 Thread Christian Gmeiner
2017-03-31 14:57 GMT+02:00 Philipp Zabel :
> Hi Christian,
>
> On Fri, 2017-03-31 at 12:44 +0200, Christian Gmeiner wrote:
>> Hi
>>
>> I get this from time to time on a 4.9.17 kernel:
>>
>> [3.353387] [ cut here ]
>> [3.353408] WARNING: CPU: 0 PID: 1 at
>> drivers/gpu/drm/drm_atomic_helper.c:1140
>> drm_atomic_helper_wait_for_vblanks+0x240/0x244
>> [3.353412] [CRTC:24] vblank wait timed out
> [...]
>
> Do the four patches in
>  git://git.pengutronix.de/git/pza/linux.git tags/v4.9-ipu-dp-plane-fix
> fix this?
>

Sadly no - this is what I get after a warm-reboot:

[2.797368] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops
ipu_crtc_ops)
[2.804985] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops
ipu_crtc_ops)
[2.812574] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops
ipu_crtc_ops)
[2.820170] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops
ipu_crtc_ops)
[2.828119] imx-drm display-subsystem: bound
200.aips-bus:ldb@020e0008 (ops imx_ldb_ops)
[   13.933401] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   24.173399] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   24.175535] Console: switching to colour frame buffer device 80x30
[   34.413391] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   34.460376] imx-drm display-subsystem: fb0:  frame buffer device
[   34.504119] imx-ipuv3 280.ipu: IPUv3H probed
...
[   45.933472] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   56.173522] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   66.413519] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   76.653515] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   87.533556] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   99.053496] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[  109.933532] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[  120.813541] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[  131.053513] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out

greets
--
Christian Gmeiner, MSc

https://www.youtube.com/user/AloryOFFICIAL
https://soundcloud.com/christian-gmeiner


Re: imx-drm: vblank wait timed out

2017-04-03 Thread Christian Gmeiner
2017-03-31 14:57 GMT+02:00 Philipp Zabel :
> Hi Christian,
>
> On Fri, 2017-03-31 at 12:44 +0200, Christian Gmeiner wrote:
>> Hi
>>
>> I get this from time to time on a 4.9.17 kernel:
>>
>> [3.353387] [ cut here ]
>> [3.353408] WARNING: CPU: 0 PID: 1 at
>> drivers/gpu/drm/drm_atomic_helper.c:1140
>> drm_atomic_helper_wait_for_vblanks+0x240/0x244
>> [3.353412] [CRTC:24] vblank wait timed out
> [...]
>
> Do the four patches in
>  git://git.pengutronix.de/git/pza/linux.git tags/v4.9-ipu-dp-plane-fix
> fix this?
>

Sadly no - this is what I get after a warm-reboot:

[2.797368] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops
ipu_crtc_ops)
[2.804985] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops
ipu_crtc_ops)
[2.812574] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops
ipu_crtc_ops)
[2.820170] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops
ipu_crtc_ops)
[2.828119] imx-drm display-subsystem: bound
200.aips-bus:ldb@020e0008 (ops imx_ldb_ops)
[   13.933401] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   24.173399] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   24.175535] Console: switching to colour frame buffer device 80x30
[   34.413391] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   34.460376] imx-drm display-subsystem: fb0:  frame buffer device
[   34.504119] imx-ipuv3 280.ipu: IPUv3H probed
...
[   45.933472] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   56.173522] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   66.413519] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   76.653515] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   87.533556] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[   99.053496] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[  109.933532] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[  120.813541] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out
[  131.053513] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR*
[CRTC:24:crtc-0] flip_done timed out

greets
--
Christian Gmeiner, MSc

https://www.youtube.com/user/AloryOFFICIAL
https://soundcloud.com/christian-gmeiner


Re: imx-drm: vblank wait timed out

2017-03-31 Thread Philipp Zabel
Hi Christian,

On Fri, 2017-03-31 at 12:44 +0200, Christian Gmeiner wrote:
> Hi
> 
> I get this from time to time on a 4.9.17 kernel:
> 
> [3.353387] [ cut here ]
> [3.353408] WARNING: CPU: 0 PID: 1 at
> drivers/gpu/drm/drm_atomic_helper.c:1140
> drm_atomic_helper_wait_for_vblanks+0x240/0x244
> [3.353412] [CRTC:24] vblank wait timed out
[...]

Do the four patches in
 git://git.pengutronix.de/git/pza/linux.git tags/v4.9-ipu-dp-plane-fix
fix this?

regards
Philipp



Re: imx-drm: vblank wait timed out

2017-03-31 Thread Philipp Zabel
Hi Christian,

On Fri, 2017-03-31 at 12:44 +0200, Christian Gmeiner wrote:
> Hi
> 
> I get this from time to time on a 4.9.17 kernel:
> 
> [3.353387] [ cut here ]
> [3.353408] WARNING: CPU: 0 PID: 1 at
> drivers/gpu/drm/drm_atomic_helper.c:1140
> drm_atomic_helper_wait_for_vblanks+0x240/0x244
> [3.353412] [CRTC:24] vblank wait timed out
[...]

Do the four patches in
 git://git.pengutronix.de/git/pza/linux.git tags/v4.9-ipu-dp-plane-fix
fix this?

regards
Philipp