linux-amlogic.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* odroidc1 eth0 problem with 250HZ
@ 2019-01-24 14:22 Piero
  2019-01-28 10:08 ` Neil Armstrong
  0 siblings, 1 reply; 5+ messages in thread
From: Piero @ 2019-01-24 14:22 UTC (permalink / raw)
  To: linux-amlogic

Hi,

    I tested armbian distribution on my odroid C1+ using kernel
4.19.17 and later.
I observed that with 250HZ kernel eth0 is non-functional giving the
following error:

[   14.853086] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   14.853367] meson8b-dwmac c9410000.ethernet eth0: device MAC
address b6:e8:26:b6:da:4a
[   14.853378] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
[   14.853386] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
Cannot attach to PHY (error: -19)
[   15.064433] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.084471] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
[   15.084486] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
Cannot attach to PHY (error: -19)
[   15.193033] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.225926] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
[   15.225958] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
Cannot attach to PHY (error: -19)
[   15.239227] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.293190] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
[   15.293213] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
Cannot attach to PHY (error: -19)
[   15.306038] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.352091] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
[   15.352111] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
Cannot attach to PHY (error: -19)
[   15.370056] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Only changing 250HZ to 100HZ is enough to fix this problem.
Some more details on armbian forum[1].
Can you check it please?
I can provide more logs and details if requested. If needed I can test fixes.

Thanks in advance
**Bye
Piero
[1]https://forum.armbian.com/topic/9138-odroid-c0c1c1-please-update-the-mainline-kernel-version/

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: odroidc1 eth0 problem with 250HZ
  2019-01-24 14:22 odroidc1 eth0 problem with 250HZ Piero
@ 2019-01-28 10:08 ` Neil Armstrong
  2019-02-12 13:21   ` Piero
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Armstrong @ 2019-01-28 10:08 UTC (permalink / raw)
  To: Piero, linux-amlogic

Hi,

On 24/01/2019 15:22, Piero wrote:
> Hi,
> 
>     I tested armbian distribution on my odroid C1+ using kernel
> 4.19.17 and later.
> I observed that with 250HZ kernel eth0 is non-functional giving the
> following error:
> 
> [   14.853086] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   14.853367] meson8b-dwmac c9410000.ethernet eth0: device MAC
> address b6:e8:26:b6:da:4a
> [   14.853378] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> [   14.853386] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> Cannot attach to PHY (error: -19)
> [   15.064433] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   15.084471] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> [   15.084486] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> Cannot attach to PHY (error: -19)
> [   15.193033] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   15.225926] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> [   15.225958] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> Cannot attach to PHY (error: -19)
> [   15.239227] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   15.293190] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> [   15.293213] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> Cannot attach to PHY (error: -19)
> [   15.306038] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   15.352091] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> [   15.352111] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> Cannot attach to PHY (error: -19)
> [   15.370056] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> 
> Only changing 250HZ to 100HZ is enough to fix this problem.
> Some more details on armbian forum[1].
> Can you check it please?
> I can provide more logs and details if requested. If needed I can test fixes.

This is weird, it could be a sleep not long enough with the changed HZ, can you test other values ?

Do you have other failures ?

Neil

> 
> Thanks in advance
> **Bye
> Piero
> [1]https://forum.armbian.com/topic/9138-odroid-c0c1c1-please-update-the-mainline-kernel-version/
> 
> _______________________________________________
> linux-amlogic mailing list
> linux-amlogic@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-amlogic
> 



_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: odroidc1 eth0 problem with 250HZ
  2019-01-28 10:08 ` Neil Armstrong
@ 2019-02-12 13:21   ` Piero
  2019-02-12 13:57     ` Neil Armstrong
  0 siblings, 1 reply; 5+ messages in thread
From: Piero @ 2019-02-12 13:21 UTC (permalink / raw)
  To: Neil Armstrong; +Cc: linux-amlogic

Hi,

  in an old thread[1] there is this sentence: " - enable Ethernet on
the Odroid-C1 (according to your last thest a TX delay of 4ns is
required to make it work properly)".
So it looks that timing is important to make eth0 of odroidc1
functional and this correlate well with my observations on kernel HZ.
I just tested with 200hz (simply only this change...nothing more) and
odroidc1 eth0 is not working again.

*Ciao
Piero

[1]https://lists.infradead.org/pipermail/linux-amlogic/2018-January/006164.html

Il giorno lun 28 gen 2019 alle ore 11:08 Neil Armstrong
<narmstrong@baylibre.com> ha scritto:
>
> Hi,
>
> On 24/01/2019 15:22, Piero wrote:
> > Hi,
> >
> >     I tested armbian distribution on my odroid C1+ using kernel
> > 4.19.17 and later.
> > I observed that with 250HZ kernel eth0 is non-functional giving the
> > following error:
> >
> > [   14.853086] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> > [   14.853367] meson8b-dwmac c9410000.ethernet eth0: device MAC
> > address b6:e8:26:b6:da:4a
> > [   14.853378] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> > [   14.853386] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> > Cannot attach to PHY (error: -19)
> > [   15.064433] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> > [   15.084471] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> > [   15.084486] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> > Cannot attach to PHY (error: -19)
> > [   15.193033] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> > [   15.225926] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> > [   15.225958] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> > Cannot attach to PHY (error: -19)
> > [   15.239227] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> > [   15.293190] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> > [   15.293213] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> > Cannot attach to PHY (error: -19)
> > [   15.306038] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> > [   15.352091] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> > [   15.352111] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> > Cannot attach to PHY (error: -19)
> > [   15.370056] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >
> > Only changing 250HZ to 100HZ is enough to fix this problem.
> > Some more details on armbian forum[1].
> > Can you check it please?
> > I can provide more logs and details if requested. If needed I can test fixes.
>
> This is weird, it could be a sleep not long enough with the changed HZ, can you test other values ?
>
> Do you have other failures ?
>
> Neil
>
> >
> > Thanks in advance
> > **Bye
> > Piero
> > [1]https://forum.armbian.com/topic/9138-odroid-c0c1c1-please-update-the-mainline-kernel-version/
> >
> > _______________________________________________
> > linux-amlogic mailing list
> > linux-amlogic@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-amlogic
> >
>
>


-- 
Stupid is as stupid does.
Forrest Gump

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: odroidc1 eth0 problem with 250HZ
  2019-02-12 13:21   ` Piero
@ 2019-02-12 13:57     ` Neil Armstrong
  2019-02-12 15:07       ` Piero
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Armstrong @ 2019-02-12 13:57 UTC (permalink / raw)
  To: Piero; +Cc: linux-amlogic

Hi Piero,

On 12/02/2019 14:21, Piero wrote:
> Hi,
> 
>   in an old thread[1] there is this sentence: " - enable Ethernet on
> the Odroid-C1 (according to your last thest a TX delay of 4ns is
> required to make it work properly)".

This delay is a setting in HW, and it not correlated at all with the HZ setting.

> So it looks that timing is important to make eth0 of odroidc1
> functional and this correlate well with my observations on kernel HZ.
> I just tested with 200hz (simply only this change...nothing more) and
> odroidc1 eth0 is not working again.

You mean *is working* again ?

You should test a whole range of values, up to 1000Hz.

Neil

> 
> *Ciao
> Piero
> 
> [1]https://lists.infradead.org/pipermail/linux-amlogic/2018-January/006164.html
> 
> Il giorno lun 28 gen 2019 alle ore 11:08 Neil Armstrong
> <narmstrong@baylibre.com> ha scritto:
>>
>> Hi,
>>
>> On 24/01/2019 15:22, Piero wrote:
>>> Hi,
>>>
>>>     I tested armbian distribution on my odroid C1+ using kernel
>>> 4.19.17 and later.
>>> I observed that with 250HZ kernel eth0 is non-functional giving the
>>> following error:
>>>
>>> [   14.853086] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   14.853367] meson8b-dwmac c9410000.ethernet eth0: device MAC
>>> address b6:e8:26:b6:da:4a
>>> [   14.853378] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
>>> [   14.853386] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
>>> Cannot attach to PHY (error: -19)
>>> [   15.064433] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   15.084471] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
>>> [   15.084486] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
>>> Cannot attach to PHY (error: -19)
>>> [   15.193033] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   15.225926] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
>>> [   15.225958] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
>>> Cannot attach to PHY (error: -19)
>>> [   15.239227] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   15.293190] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
>>> [   15.293213] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
>>> Cannot attach to PHY (error: -19)
>>> [   15.306038] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   15.352091] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
>>> [   15.352111] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
>>> Cannot attach to PHY (error: -19)
>>> [   15.370056] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>
>>> Only changing 250HZ to 100HZ is enough to fix this problem.
>>> Some more details on armbian forum[1].
>>> Can you check it please?
>>> I can provide more logs and details if requested. If needed I can test fixes.
>>
>> This is weird, it could be a sleep not long enough with the changed HZ, can you test other values ?
>>
>> Do you have other failures ?
>>
>> Neil
>>
>>>
>>> Thanks in advance
>>> **Bye
>>> Piero
>>> [1]https://forum.armbian.com/topic/9138-odroid-c0c1c1-please-update-the-mainline-kernel-version/
>>>
>>> _______________________________________________
>>> linux-amlogic mailing list
>>> linux-amlogic@lists.infradead.org
>>> http://lists.infradead.org/mailman/listinfo/linux-amlogic
>>>
>>
>>
> 
> 


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: odroidc1 eth0 problem with 250HZ
  2019-02-12 13:57     ` Neil Armstrong
@ 2019-02-12 15:07       ` Piero
  0 siblings, 0 replies; 5+ messages in thread
From: Piero @ 2019-02-12 15:07 UTC (permalink / raw)
  To: Neil Armstrong; +Cc: linux-amlogic

Hi,

   odroidc1 eth0 is working *only* with 100Hz.
The issue started on armbian since all kernel config were switched to
250hz for performance reasons[1] and odroidc1 had issues on eth0.
Then I observed 100HZ was working.
Today I tested 200HZ and still eth0 is not working.
So... even if I did not tested all possible combinations it looks like
there is something wrong somewhere :)
Please ask if you need more logs or insight.

*Ciao
Piero

[1]https://github.com/armbian/build/commit/73341048187f4e9698c8f42b7c3ee022e19ef0b0

Il giorno mar 12 feb 2019 alle ore 14:57 Neil Armstrong
<narmstrong@baylibre.com> ha scritto:
>
> Hi Piero,
>
> On 12/02/2019 14:21, Piero wrote:
> > Hi,
> >
> >   in an old thread[1] there is this sentence: " - enable Ethernet on
> > the Odroid-C1 (according to your last thest a TX delay of 4ns is
> > required to make it work properly)".
>
> This delay is a setting in HW, and it not correlated at all with the HZ setting.
>
> > So it looks that timing is important to make eth0 of odroidc1
> > functional and this correlate well with my observations on kernel HZ.
> > I just tested with 200hz (simply only this change...nothing more) and
> > odroidc1 eth0 is not working again.
>
> You mean *is working* again ?
>
> You should test a whole range of values, up to 1000Hz.
>
> Neil
>
> >
> > *Ciao
> > Piero
> >
> > [1]https://lists.infradead.org/pipermail/linux-amlogic/2018-January/006164.html
> >
> > Il giorno lun 28 gen 2019 alle ore 11:08 Neil Armstrong
> > <narmstrong@baylibre.com> ha scritto:
> >>
> >> Hi,
> >>
> >> On 24/01/2019 15:22, Piero wrote:
> >>> Hi,
> >>>
> >>>     I tested armbian distribution on my odroid C1+ using kernel
> >>> 4.19.17 and later.
> >>> I observed that with 250HZ kernel eth0 is non-functional giving the
> >>> following error:
> >>>
> >>> [   14.853086] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>> [   14.853367] meson8b-dwmac c9410000.ethernet eth0: device MAC
> >>> address b6:e8:26:b6:da:4a
> >>> [   14.853378] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> >>> [   14.853386] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> >>> Cannot attach to PHY (error: -19)
> >>> [   15.064433] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>> [   15.084471] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> >>> [   15.084486] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> >>> Cannot attach to PHY (error: -19)
> >>> [   15.193033] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>> [   15.225926] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> >>> [   15.225958] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> >>> Cannot attach to PHY (error: -19)
> >>> [   15.239227] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>> [   15.293190] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> >>> [   15.293213] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> >>> Cannot attach to PHY (error: -19)
> >>> [   15.306038] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>> [   15.352091] meson8b-dwmac c9410000.ethernet eth0: Could not attach to PHY
> >>> [   15.352111] meson8b-dwmac c9410000.ethernet eth0: stmmac_open:
> >>> Cannot attach to PHY (error: -19)
> >>> [   15.370056] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>>
> >>> Only changing 250HZ to 100HZ is enough to fix this problem.
> >>> Some more details on armbian forum[1].
> >>> Can you check it please?
> >>> I can provide more logs and details if requested. If needed I can test fixes.
> >>
> >> This is weird, it could be a sleep not long enough with the changed HZ, can you test other values ?
> >>
> >> Do you have other failures ?
> >>
> >> Neil
> >>
> >>>
> >>> Thanks in advance
> >>> **Bye
> >>> Piero
> >>> [1]https://forum.armbian.com/topic/9138-odroid-c0c1c1-please-update-the-mainline-kernel-version/
> >>>
> >>> _______________________________________________
> >>> linux-amlogic mailing list
> >>> linux-amlogic@lists.infradead.org
> >>> http://lists.infradead.org/mailman/listinfo/linux-amlogic
> >>>
> >>
> >>
> >
> >
>


-- 
Stupid is as stupid does.
Forrest Gump

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-12 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24 14:22 odroidc1 eth0 problem with 250HZ Piero
2019-01-28 10:08 ` Neil Armstrong
2019-02-12 13:21   ` Piero
2019-02-12 13:57     ` Neil Armstrong
2019-02-12 15:07       ` Piero

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).