Message ID | 2034204.MktLeOeYPv@bentobox |
---|---|
State | Not Applicable |
Headers | show |
On Fri, Apr 10, 2015 at 05:58:04PM +0200, Sven Eckelmann wrote: > I don't know the nanostation loco m5 xw. But this is at least not what I see > here. The link would be stable (at least the PHY thinks that it is stable) but > no frames/not all fames are transfered from the device to its link-partner. Ok, that's really a different thing then (-> changing the subject of the thread) > I had problems in the past with some optimization by from Felix which caused > situations like that. For some reason the device was not correctly reseted on > errors. This looked like it was caused by his reset optimizations. When this > device uses the ag71xx driver, is a ar724x device and you suspect that this is > a partial reset problem then you may try something like this I flashed the affected device (turns out to be a non-XW nanostation) with your testing patch applied. I'll see how it goes, I'll let you know in the next days if the ethernet link is more stable now. Cheers Daniel
On Fri, Apr 10, 2015 at 07:06:24PM +0200, Daniel Golle wrote: > On Fri, Apr 10, 2015 at 05:58:04PM +0200, Sven Eckelmann wrote: > > I had problems in the past with some optimization by from Felix which caused > > situations like that. For some reason the device was not correctly reseted on > > errors. This looked like it was caused by his reset optimizations. When this > > device uses the ag71xx driver, is a ar724x device and you suspect that this is > > a partial reset problem then you may try something like this > > I flashed the affected device (turns out to be a non-XW nanostation) > with your testing patch applied. I'll see how it goes, I'll let you > know in the next days if the ethernet link is more stable now. Result: the problem persists also with your patch applied...
On 11/04/15 11:25, Daniel Golle wrote: > On Fri, Apr 10, 2015 at 07:06:24PM +0200, Daniel Golle wrote: >> On Fri, Apr 10, 2015 at 05:58:04PM +0200, Sven Eckelmann wrote: >>> I had problems in the past with some optimization by from Felix which caused >>> situations like that. For some reason the device was not correctly reseted on >>> errors. This looked like it was caused by his reset optimizations. When this >>> device uses the ag71xx driver, is a ar724x device and you suspect that this is >>> a partial reset problem then you may try something like this >> >> I flashed the affected device (turns out to be a non-XW nanostation) >> with your testing patch applied. I'll see how it goes, I'll let you >> know in the next days if the ethernet link is more stable now. > > Result: the problem persists also with your patch applied... > I am seeing trouble like this on an OM2P. I suspect it is due to pause frames.
--- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -865,12 +865,6 @@ static void ag71xx_restart_work_func(struct work_struct *work) { struct ag71xx *ag = container_of(work, struct ag71xx, restart_work); - if (ag71xx_get_pdata(ag)->is_ar724x) { - ag->link = 0; - ag71xx_link_adjust(ag); - return; - } - ag71xx_stop(ag->dev); ag71xx_open(ag->dev); }