Re: [PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout

2021-06-03 Thread Andreas Rehn
Am Do., 3. Juni 2021 um 16:43 Uhr schrieb Heinrich Schuchardt < xypron.g...@gmx.de>: > On 6/3/21 3:56 PM, Andre Przywara wrote: > > On Fri, 21 May 2021 22:14:00 +0200 > > Andreas Rehn wrote: > > > > Hi, > > > >> sorry for the late response. > > > > same ;-) > > > >> I run some test runs and maybe

Re: [PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout

2021-06-03 Thread Heinrich Schuchardt
On 6/3/21 3:56 PM, Andre Przywara wrote: On Fri, 21 May 2021 22:14:00 +0200 Andreas Rehn wrote: Hi, sorry for the late response. same ;-) I run some test runs and maybe there is something with the phy itself or something is missing on sun8i_emac_eth_stop/start? if you have any patches/id

Re: [PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout

2021-06-03 Thread Andre Przywara
On Fri, 21 May 2021 22:14:00 +0200 Andreas Rehn wrote: Hi, > sorry for the late response. same ;-) > I run some test runs and maybe there is something with the phy itself > or something is missing on sun8i_emac_eth_stop/start? > > if you have any patches/ideas to test - let me know! > maybe s

Re: [PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout

2021-05-21 Thread Andreas Rehn
sorry for the late response. I run some test runs and maybe there is something with the phy itself or something is missing on sun8i_emac_eth_stop/start? if you have any patches/ideas to test - let me know! maybe someone has an idea how I can try to force the Linux mainline driver in the same situ

Re: [PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout

2021-05-19 Thread Andre Przywara
On Thu, 20 May 2021 00:10:47 +0200 Andreas Rehn wrote: > hey, > > sure. I give it a try tomorrow. > with 250 ms, for example, I ran into timeouts after the first tftp download. > after a manual retry, it works fine but retry is not a valid production > behavior. Just read the arch timer after t

Re: [PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout

2021-05-19 Thread Andre Przywara
On Thu, 20 May 2021 00:10:47 +0200 Andreas Rehn wrote: Hi, > sure. I give it a try tomorrow. > with 250 ms, for example, I ran into timeouts after the first tftp download. > after a manual retry, it works fine but retry is not a valid production > behavior. Well, I see occasional TFTP hiccups a

Re: [PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout

2021-05-19 Thread Andreas Rehn
hey, sure. I give it a try tomorrow. with 250 ms, for example, I ran into timeouts after the first tftp download. after a manual retry, it works fine but retry is not a valid production behavior. greetings Andreas Am Mi., 19. Mai 2021 um 23:45 Uhr schrieb Andre Przywara < andre.przyw...@arm.com>

Re: [PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout

2021-05-19 Thread Andre Przywara
On Wed, 19 May 2021 21:42:08 +0200 Andreas Rehn wrote: Hi, > v3s emac soft reset tooks quit longer if autonegation is active > on 100 Mbit full duplex pairs what can result in > `sun8i_emac_eth_start: Timeout` error Mmmh, why the 500ms? Can you figure out how long it typically takes for you? By

[PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout

2021-05-19 Thread Andreas Rehn
v3s emac soft reset tooks quit longer if autonegation is active on 100 Mbit full duplex pairs what can result in `sun8i_emac_eth_start: Timeout` error wait_for_bit_le32 polls register value each ms. Increasing the timeout for setup do not effect current behavior but reduces unexpected behaviors (e