mbox series

[PATCHv2,0/7] drm/bridge: tc358767: small fixes

Message ID 20190103115954.12785-1-tomi.valkeinen@ti.com (mailing list archive)
Headers show
Series drm/bridge: tc358767: small fixes | expand

Message

Tomi Valkeinen Jan. 3, 2019, 11:59 a.m. UTC
Hi,

We have TC358867 on our board, which I believe is almost identical to
TC358767. We're using it with a DP connector instead of eDP with a fixed
panel.

I have tested these patches only on TI's 4.14 based kernel, as
unfortunately we don't have all the necessary support in mainline yet.
These patches fix various bugs, but I'm still seeing at least two
issues:

* Sync with some videomodes is not correct, resulting in a jumping and
  skewed display
* Link training fails sometimes

I would appreciate if someone is able to verify these patches with
TC358767.

Changes in v2:
- Addressed the comments
- Added reviewed bys

 Tomi

Tomi Valkeinen (7):
  drm/bridge: tc358767: add bus flags
  drm/bridge: tc358767: add defines for DP1_SRCCTRL & PHY_2LANE
  drm/bridge: tc358767: fix single lane configuration
  drm/bridge: tc358767: fix initial DP0/1_SRCCTRL value
  drm/bridge: tc358767: reject modes which require too much BW
  drm/bridge: tc358767: fix output H/V syncs
  drm/bridge: tc358767: use DP connector if no panel set

 drivers/gpu/drm/bridge/tc358767.c | 48 ++++++++++++++++++++++++-------
 1 file changed, 38 insertions(+), 10 deletions(-)

Comments

Andrzej Hajda Jan. 9, 2019, 8:22 a.m. UTC | #1
Hi Tomi,

On 03.01.2019 12:59, Tomi Valkeinen wrote:
> Hi,
>
> We have TC358867 on our board, which I believe is almost identical to
> TC358767. We're using it with a DP connector instead of eDP with a fixed
> panel.
>
> I have tested these patches only on TI's 4.14 based kernel, as
> unfortunately we don't have all the necessary support in mainline yet.
> These patches fix various bugs, but I'm still seeing at least two
> issues:
>
> * Sync with some videomodes is not correct, resulting in a jumping and
>   skewed display
> * Link training fails sometimes
>
> I would appreciate if someone is able to verify these patches with
> TC358767.


Do you want to wait for testers or shall I queue this patchset?


Regards

Andrzej


>
> Changes in v2:
> - Addressed the comments
> - Added reviewed bys
>
>  Tomi
>
> Tomi Valkeinen (7):
>   drm/bridge: tc358767: add bus flags
>   drm/bridge: tc358767: add defines for DP1_SRCCTRL & PHY_2LANE
>   drm/bridge: tc358767: fix single lane configuration
>   drm/bridge: tc358767: fix initial DP0/1_SRCCTRL value
>   drm/bridge: tc358767: reject modes which require too much BW
>   drm/bridge: tc358767: fix output H/V syncs
>   drm/bridge: tc358767: use DP connector if no panel set
>
>  drivers/gpu/drm/bridge/tc358767.c | 48 ++++++++++++++++++++++++-------
>  1 file changed, 38 insertions(+), 10 deletions(-)
>
Tomi Valkeinen Jan. 9, 2019, 9:12 a.m. UTC | #2
Hi Andrzej,

On 09/01/19 10:22, Andrzej Hajda wrote:
> Hi Tomi,
> 
> On 03.01.2019 12:59, Tomi Valkeinen wrote:
>> Hi,
>>
>> We have TC358867 on our board, which I believe is almost identical to
>> TC358767. We're using it with a DP connector instead of eDP with a fixed
>> panel.
>>
>> I have tested these patches only on TI's 4.14 based kernel, as
>> unfortunately we don't have all the necessary support in mainline yet.
>> These patches fix various bugs, but I'm still seeing at least two
>> issues:
>>
>> * Sync with some videomodes is not correct, resulting in a jumping and
>>   skewed display
>> * Link training fails sometimes
>>
>> I would appreciate if someone is able to verify these patches with
>> TC358767.
> 
> 
> Do you want to wait for testers or shall I queue this patchset?

I haven't heard from anyone, so I'm ok with pushing these.

 Tomi
Lucas Stach Jan. 9, 2019, 9:51 a.m. UTC | #3
Am Mittwoch, den 09.01.2019, 11:12 +0200 schrieb Tomi Valkeinen:
> Hi Andrzej,
> 
> On 09/01/19 10:22, Andrzej Hajda wrote:
> > Hi Tomi,
> > 
> > On 03.01.2019 12:59, Tomi Valkeinen wrote:
> > > Hi,
> > > 
> > > We have TC358867 on our board, which I believe is almost identical to
> > > TC358767. We're using it with a DP connector instead of eDP with a fixed
> > > panel.
> > > 
> > > I have tested these patches only on TI's 4.14 based kernel, as
> > > unfortunately we don't have all the necessary support in mainline yet.
> > > These patches fix various bugs, but I'm still seeing at least two
> > > issues:
> > > 
> > > * Sync with some videomodes is not correct, resulting in a jumping and
> > >   skewed display
> > > * Link training fails sometimes
> > > 
> > > I would appreciate if someone is able to verify these patches with
> > > TC358767.
> > 
> > 
> > Do you want to wait for testers or shall I queue this patchset?
> 
> I haven't heard from anyone, so I'm ok with pushing these.

For the series:

Tested-by: Lucas Stach <l.stach@pengutronix.de>

on a device with TC358767 and a 4.20 based kernel.

Regards,
Lucas
Andrzej Hajda Jan. 9, 2019, 10:12 a.m. UTC | #4
On 09.01.2019 10:51, Lucas Stach wrote:
> Am Mittwoch, den 09.01.2019, 11:12 +0200 schrieb Tomi Valkeinen:
>> Hi Andrzej,
>>
>> On 09/01/19 10:22, Andrzej Hajda wrote:
>>> Hi Tomi,
>>>
>>> On 03.01.2019 12:59, Tomi Valkeinen wrote:
>>>> Hi,
>>>>
>>>> We have TC358867 on our board, which I believe is almost identical to
>>>> TC358767. We're using it with a DP connector instead of eDP with a fixed
>>>> panel.
>>>>
>>>> I have tested these patches only on TI's 4.14 based kernel, as
>>>> unfortunately we don't have all the necessary support in mainline yet.
>>>> These patches fix various bugs, but I'm still seeing at least two
>>>> issues:
>>>>
>>>> * Sync with some videomodes is not correct, resulting in a jumping and
>>>>   skewed display
>>>> * Link training fails sometimes
>>>>
>>>> I would appreciate if someone is able to verify these patches with
>>>> TC358767.
>>>
>>> Do you want to wait for testers or shall I queue this patchset?
>> I haven't heard from anyone, so I'm ok with pushing these.
> For the series:
>
> Tested-by: Lucas Stach <l.stach@pengutronix.de>
>
> on a device with TC358767 and a 4.20 based kernel.


Already queued :)


Regards

Andrzej


>
> Regards,
> Lucas
>
>
>
>
Tomi Valkeinen Jan. 9, 2019, 2:55 p.m. UTC | #5
On 09/01/19 11:51, Lucas Stach wrote:

> For the series:
> 
> Tested-by: Lucas Stach <l.stach@pengutronix.de>
> 
> on a device with TC358767 and a 4.20 based kernel.

Thanks Lucas.

Does the device use TC358767 as eDP+panel, or as full DP with an
external connector? We have the latter, and I think there are some
missing pieces in the driver which I'll be working on some time in the
near future.

 Tomi
Lucas Stach Jan. 9, 2019, 2:58 p.m. UTC | #6
Hi Tomi,

Am Mittwoch, den 09.01.2019, 16:55 +0200 schrieb Tomi Valkeinen:
> On 09/01/19 11:51, Lucas Stach wrote:
> 
> > For the series:
> > 
> > > > Tested-by: Lucas Stach <l.stach@pengutronix.de>
> > 
> > on a device with TC358767 and a 4.20 based kernel.
> 
> Thanks Lucas.
> 
> Does the device use TC358767 as eDP+panel, or as full DP with an
> external connector? We have the latter, and I think there are some
> missing pieces in the driver which I'll be working on some time in the
> near future.

It's eDP + panel.

Regards,
Lucas
Tomi Valkeinen Jan. 23, 2019, 12:52 p.m. UTC | #7
Hi Andrzej,

On 09/01/19 12:12, Andrzej Hajda wrote:
> On 09.01.2019 10:51, Lucas Stach wrote:
>> Am Mittwoch, den 09.01.2019, 11:12 +0200 schrieb Tomi Valkeinen:
>>> Hi Andrzej,
>>>
>>> On 09/01/19 10:22, Andrzej Hajda wrote:
>>>> Hi Tomi,
>>>>
>>>> On 03.01.2019 12:59, Tomi Valkeinen wrote:
>>>>> Hi,
>>>>>
>>>>> We have TC358867 on our board, which I believe is almost identical to
>>>>> TC358767. We're using it with a DP connector instead of eDP with a fixed
>>>>> panel.
>>>>>
>>>>> I have tested these patches only on TI's 4.14 based kernel, as
>>>>> unfortunately we don't have all the necessary support in mainline yet.
>>>>> These patches fix various bugs, but I'm still seeing at least two
>>>>> issues:
>>>>>
>>>>> * Sync with some videomodes is not correct, resulting in a jumping and
>>>>>   skewed display
>>>>> * Link training fails sometimes
>>>>>
>>>>> I would appreciate if someone is able to verify these patches with
>>>>> TC358767.
>>>>
>>>> Do you want to wait for testers or shall I queue this patchset?
>>> I haven't heard from anyone, so I'm ok with pushing these.
>> For the series:
>>
>> Tested-by: Lucas Stach <l.stach@pengutronix.de>
>>
>> on a device with TC358767 and a 4.20 based kernel.
> 
> 
> Already queued :)

Did you push these somewhere? What's the route for these patches, drm-misc?

 Tomi
Andrzej Hajda Jan. 23, 2019, 2:39 p.m. UTC | #8
Hi Tomi,

śr., 23 sty 2019, 13:52: Tomi Valkeinen <tomi.valkeinen@ti.com> napisał(a):

> Hi Andrzej,
>
> On 09/01/19 12:12, Andrzej Hajda wrote:
> > On 09.01.2019 10:51, Lucas Stach wrote:
> >> Am Mittwoch, den 09.01.2019, 11:12 +0200 schrieb Tomi Valkeinen:
> >>> Hi Andrzej,
> >>>
> >>> On 09/01/19 10:22, Andrzej Hajda wrote:
> >>>> Hi Tomi,
> >>>>
> >>>> On 03.01.2019 12:59, Tomi Valkeinen wrote:
> >>>>> Hi,
> >>>>>
> >>>>> We have TC358867 on our board, which I believe is almost identical to
> >>>>> TC358767. We're using it with a DP connector instead of eDP with a
> fixed
> >>>>> panel.
> >>>>>
> >>>>> I have tested these patches only on TI's 4.14 based kernel, as
> >>>>> unfortunately we don't have all the necessary support in mainline
> yet.
> >>>>> These patches fix various bugs, but I'm still seeing at least two
> >>>>> issues:
> >>>>>
> >>>>> * Sync with some videomodes is not correct, resulting in a jumping
> and
> >>>>>   skewed display
> >>>>> * Link training fails sometimes
> >>>>>
> >>>>> I would appreciate if someone is able to verify these patches with
> >>>>> TC358767.
> >>>>
> >>>> Do you want to wait for testers or shall I queue this patchset?
> >>> I haven't heard from anyone, so I'm ok with pushing these.
> >> For the series:
> >>
> >> Tested-by: Lucas Stach <l.stach@pengutronix.de>
> >>
> >> on a device with TC358767 and a 4.20 based kernel.
> >
> >
> > Already queued :)
>
> Did you push these somewhere? What's the route for these patches, drm-misc?
>

drm-misc-fixes:

https://github.com/freedesktop/drm-misc/commits/drm-misc-fixes/drivers/gpu/drm/bridge/tc358767.c

Andrzej


>  Tomi
>
> --
> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
>
<div dir="auto"><div>Hi Tomi,<br><br><div class="gmail_quote"><div dir="ltr">śr., 23 sty 2019, 13:52: Tomi Valkeinen &lt;<a href="mailto:tomi.valkeinen@ti.com">tomi.valkeinen@ti.com</a>&gt; napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andrzej,<br>
<br>
On 09/01/19 12:12, Andrzej Hajda wrote:<br>
&gt; On 09.01.2019 10:51, Lucas Stach wrote:<br>
&gt;&gt; Am Mittwoch, den 09.01.2019, 11:12 +0200 schrieb Tomi Valkeinen:<br>
&gt;&gt;&gt; Hi Andrzej,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 09/01/19 10:22, Andrzej Hajda wrote:<br>
&gt;&gt;&gt;&gt; Hi Tomi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On 03.01.2019 12:59, Tomi Valkeinen wrote:<br>
&gt;&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; We have TC358867 on our board, which I believe is almost identical to<br>
&gt;&gt;&gt;&gt;&gt; TC358767. We&#39;re using it with a DP connector instead of eDP with a fixed<br>
&gt;&gt;&gt;&gt;&gt; panel.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I have tested these patches only on TI&#39;s 4.14 based kernel, as<br>
&gt;&gt;&gt;&gt;&gt; unfortunately we don&#39;t have all the necessary support in mainline yet.<br>
&gt;&gt;&gt;&gt;&gt; These patches fix various bugs, but I&#39;m still seeing at least two<br>
&gt;&gt;&gt;&gt;&gt; issues:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; * Sync with some videomodes is not correct, resulting in a jumping and<br>
&gt;&gt;&gt;&gt;&gt;   skewed display<br>
&gt;&gt;&gt;&gt;&gt; * Link training fails sometimes<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I would appreciate if someone is able to verify these patches with<br>
&gt;&gt;&gt;&gt;&gt; TC358767.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Do you want to wait for testers or shall I queue this patchset?<br>
&gt;&gt;&gt; I haven&#39;t heard from anyone, so I&#39;m ok with pushing these.<br>
&gt;&gt; For the series:<br>
&gt;&gt;<br>
&gt;&gt; Tested-by: Lucas Stach &lt;<a href="mailto:l.stach@pengutronix.de" target="_blank" rel="noreferrer">l.stach@pengutronix.de</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; on a device with TC358767 and a 4.20 based kernel.<br>
&gt; <br>
&gt; <br>
&gt; Already queued :)<br>
<br>
Did you push these somewhere? What&#39;s the route for these patches, drm-misc?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">drm-misc-fixes:</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/freedesktop/drm-misc/commits/drm-misc-fixes/drivers/gpu/drm/bridge/tc358767.c">https://github.com/freedesktop/drm-misc/commits/drm-misc-fixes/drivers/gpu/drm/bridge/tc358767.c</a><br></div><div dir="auto"><br></div><div dir="auto">Andrzej</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
 Tomi<br>
<br>
-- <br>
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.<br>
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki<br>
_______________________________________________<br>
dri-devel mailing list<br>
<a href="mailto:dri-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">dri-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/dri-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br>
</blockquote></div></div></div>