* cpsw fails to come up once in a while
@ 2013-08-14 17:54 Sebastian Andrzej Siewior
2013-08-15 9:59 ` Mugunthan V N
0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-08-14 17:54 UTC (permalink / raw)
To: Mugunthan V N; +Cc: netdev
Hi,
So I have this test where my am335x-evm boots over NFS and once it
completes it does it again. It works most of the time :) However once it
like 100 attempts it does not. After the reset u-boot complains about
ethernet timeout and linux has also no luck:
| U-Boot 2013.04-00274-ga71d45d (May 27 2013 - 12:41:57)
|
|…
| Net: Phy not found
| PHY reset timed out
| cpsw, usb_ether
| Hit any key to stop autoboot: 1 ^H^H^H 0
| link up on port 0, speed 1000, full duplex
| Using cpsw device
| TFTP from server 172.123.10.10; our IP address is 172.123.10.3
| Filename 'am335x/zImage'.
| Load address: 0x80200000
| Loading: *^H#################################################################
| #################################################################
| #######################################
| 509.8 KiB/s
So the PHY was not found but somehow it managed to fetch the kernel over
network and boot it. The linux driver did not want to continue:
| omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
| davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
| davinci_mdio 4a101000.mdio: no live phy, scanning all
| davinci_mdio: probe of 4a101000.mdio failed with error -5
| Random MACID = 16:74:44:51:f1:0f
| gpio-keys volume_keys.6: Unable to claim irq 0; error -22
| gpio-keys: probe of volume_keys.6 failed with error -22
| omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 03:22:52 UTC (946696972)
| net eth0: initializing cpsw version 1.12 (0)
| libphy: PHY 4a101000.mdio:00 not found
| net eth0: phy 4a101000.mdio:00 not found on slave 0
| libphy: PHY 4a101000.mdio:01 not found
| net eth0: phy 4a101000.mdio:01 not found on slave 1
| Waiting up to 110 more seconds for network.
so the driver also failed to find a PHY and gave up.
Is this something known?
Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cpsw fails to come up once in a while
2013-08-14 17:54 cpsw fails to come up once in a while Sebastian Andrzej Siewior
@ 2013-08-15 9:59 ` Mugunthan V N
2013-08-15 10:12 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 4+ messages in thread
From: Mugunthan V N @ 2013-08-15 9:59 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: netdev
On Wednesday 14 August 2013 11:24 PM, Sebastian Andrzej Siewior wrote:
> Hi,
>
> So I have this test where my am335x-evm boots over NFS and once it
> completes it does it again. It works most of the time :) However once it
> like 100 attempts it does not. After the reset u-boot complains about
> ethernet timeout and linux has also no luck:
>
> | U-Boot 2013.04-00274-ga71d45d (May 27 2013 - 12:41:57)
> |
> |…
> | Net: Phy not found
> | PHY reset timed out
> | cpsw, usb_ether
> | Hit any key to stop autoboot: 1 ^H^H^H 0
> | link up on port 0, speed 1000, full duplex
> | Using cpsw device
> | TFTP from server 172.123.10.10; our IP address is 172.123.10.3
> | Filename 'am335x/zImage'.
> | Load address: 0x80200000
> | Loading: *^H#################################################################
> | #################################################################
> | #######################################
> | 509.8 KiB/s
>
> So the PHY was not found but somehow it managed to fetch the kernel over
> network and boot it. The linux driver did not want to continue:
>
> | omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
> | davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
> | davinci_mdio 4a101000.mdio: no live phy, scanning all
> | davinci_mdio: probe of 4a101000.mdio failed with error -5
> | Random MACID = 16:74:44:51:f1:0f
> | gpio-keys volume_keys.6: Unable to claim irq 0; error -22
> | gpio-keys: probe of volume_keys.6 failed with error -22
> | omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 03:22:52 UTC (946696972)
> | net eth0: initializing cpsw version 1.12 (0)
> | libphy: PHY 4a101000.mdio:00 not found
> | net eth0: phy 4a101000.mdio:00 not found on slave 0
> | libphy: PHY 4a101000.mdio:01 not found
> | net eth0: phy 4a101000.mdio:01 not found on slave 1
> | Waiting up to 110 more seconds for network.
>
> so the driver also failed to find a PHY and gave up.
> Is this something known?
>
> Sebastian
This is a unknown issue. Will arrange a setup to test this scenario and
fix the issue.
Regards
Mugunthan V N
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cpsw fails to come up once in a while
2013-08-15 9:59 ` Mugunthan V N
@ 2013-08-15 10:12 ` Sebastian Andrzej Siewior
2013-08-15 10:36 ` Mugunthan V N
0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-08-15 10:12 UTC (permalink / raw)
To: Mugunthan V N; +Cc: netdev
On 08/15/2013 11:59 AM, Mugunthan V N wrote:
> This is a unknown issue. Will arrange a setup to test this scenario and
> fix the issue.
Ah, cool. Once in this state I tried various things but nothing helped.
I tried to reset the HW phy and see if this helped but it ended while I
looking for schematics and I though maybe it is easier to ask first.
One think I noticed in __davinci_mdio_reset() is that
data->access_time is set via usecs_to_jiffies() and then used by
msleep(). Since msleep() expects ms and not jiffies, this is wrong.
>
> Regards
> Mugunthan V N
Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cpsw fails to come up once in a while
2013-08-15 10:12 ` Sebastian Andrzej Siewior
@ 2013-08-15 10:36 ` Mugunthan V N
0 siblings, 0 replies; 4+ messages in thread
From: Mugunthan V N @ 2013-08-15 10:36 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: netdev
On Thursday 15 August 2013 03:42 PM, Sebastian Andrzej Siewior wrote:
> On 08/15/2013 11:59 AM, Mugunthan V N wrote:
>> This is a unknown issue. Will arrange a setup to test this scenario and
>> fix the issue.
> Ah, cool. Once in this state I tried various things but nothing helped.
> I tried to reset the HW phy and see if this helped but it ended while I
> looking for schematics and I though maybe it is easier to ask first.
In AM335x EVM, you need to probe a wire if you need to reset phy manually.
>
> One think I noticed in __davinci_mdio_reset() is that
> data->access_time is set via usecs_to_jiffies() and then used by
> msleep(). Since msleep() expects ms and not jiffies, this is wrong.
>
Yeah, just reviewed that code and you are correct. No need to convert as
it is already in ms value.
Regards
Mugunthan V N
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-15 10:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-14 17:54 cpsw fails to come up once in a while Sebastian Andrzej Siewior
2013-08-15 9:59 ` Mugunthan V N
2013-08-15 10:12 ` Sebastian Andrzej Siewior
2013-08-15 10:36 ` Mugunthan V N
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).