* [PATCH] rockchip: puma-rk3399: increase Ethernet PHY timeout to 30s
@ 2024-06-19 9:55 Quentin Schulz
2024-06-19 15:22 ` Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: Quentin Schulz @ 2024-06-19 9:55 UTC (permalink / raw)
To: Klaus Goger, Tom Rini; +Cc: u-boot, Quentin Schulz
From: Quentin Schulz <quentin.schulz@cherry.de>
On Puma v2.1 with a KSZ9031, the Ethernet PHY often doesn't detect the
link in the 4-second default timeout.
After some boot-loop test for about a thousand boots, 70% were below
10s, 90% below 15s and 100% below 30s. Let's play it safe and make it
30s so that hopefully all links that should be detected are.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
include/configs/puma_rk3399.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/configs/puma_rk3399.h b/include/configs/puma_rk3399.h
index 969acc89b93..2056a5eb2e4 100644
--- a/include/configs/puma_rk3399.h
+++ b/include/configs/puma_rk3399.h
@@ -6,6 +6,9 @@
#ifndef __PUMA_RK3399_H
#define __PUMA_RK3399_H
+/* Highly variable timeout in getting a link on Puma v2.1 with KSZ9031 */
+#define PHY_ANEG_TIMEOUT 30000
+
#include <configs/rk3399_common.h>
#endif
---
base-commit: fe2ce09a0753634543c32cafe85eb87a625f76ca
change-id: 20240619-puma-eth-timeout-41be9c243ed7
Best regards,
--
Quentin Schulz <quentin.schulz@cherry.de>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] rockchip: puma-rk3399: increase Ethernet PHY timeout to 30s
2024-06-19 9:55 [PATCH] rockchip: puma-rk3399: increase Ethernet PHY timeout to 30s Quentin Schulz
@ 2024-06-19 15:22 ` Tom Rini
2024-06-19 15:43 ` Quentin Schulz
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2024-06-19 15:22 UTC (permalink / raw)
To: Quentin Schulz; +Cc: Klaus Goger, u-boot, Quentin Schulz
[-- Attachment #1: Type: text/plain, Size: 667 bytes --]
On Wed, Jun 19, 2024 at 11:55:52AM +0200, Quentin Schulz wrote:
> From: Quentin Schulz <quentin.schulz@cherry.de>
>
> On Puma v2.1 with a KSZ9031, the Ethernet PHY often doesn't detect the
> link in the 4-second default timeout.
>
> After some boot-loop test for about a thousand boots, 70% were below
> 10s, 90% below 15s and 100% below 30s. Let's play it safe and make it
> 30s so that hopefully all links that should be detected are.
>
> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
> ---
> include/configs/puma_rk3399.h | 3 +++
> 1 file changed, 3 insertions(+)
Please rebase on -next where this is now in Kconfig.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] rockchip: puma-rk3399: increase Ethernet PHY timeout to 30s
2024-06-19 15:22 ` Tom Rini
@ 2024-06-19 15:43 ` Quentin Schulz
0 siblings, 0 replies; 3+ messages in thread
From: Quentin Schulz @ 2024-06-19 15:43 UTC (permalink / raw)
To: Tom Rini, Quentin Schulz; +Cc: Klaus Goger, u-boot, Michal Simek
Hi Tom,
On 6/19/24 5:22 PM, Tom Rini wrote:
> On Wed, Jun 19, 2024 at 11:55:52AM +0200, Quentin Schulz wrote:
>
>> From: Quentin Schulz <quentin.schulz@cherry.de>
>>
>> On Puma v2.1 with a KSZ9031, the Ethernet PHY often doesn't detect the
>> link in the 4-second default timeout.
>>
>> After some boot-loop test for about a thousand boots, 70% were below
>> 10s, 90% below 15s and 100% below 30s. Let's play it safe and make it
>> 30s so that hopefully all links that should be detected are.
>>
>> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
>> ---
>> include/configs/puma_rk3399.h | 3 +++
>> 1 file changed, 3 insertions(+)
>
> Please rebase on -next where this is now in Kconfig.
>
It's technically a bug fix, but well... we've had it forever so one more
release is probably not gonna hurt us :) Thanks for the heads up.
BTW, I believe
https://source.denx.de/u-boot/u-boot/-/commit/40f5046c221a7b2719c49b51acefe12914b213e5?page=2
made it through this net and should be migrated to defconfig as well in
next? SO adding Michal in Cc here to trigger something if required :)
Cheers,
Quentin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-19 15:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 9:55 [PATCH] rockchip: puma-rk3399: increase Ethernet PHY timeout to 30s Quentin Schulz
2024-06-19 15:22 ` Tom Rini
2024-06-19 15:43 ` Quentin Schulz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox