[OpenWrt-Devel] ar8216: phy_init and bug report 18415

Heiner Kallweit hkallweit1 at gmail.com
Sun Jan 25 13:05:52 EST 2015


To me it doesn't look like an issue with the AR8216 driver. All related output is ok.
The hardware is quite common and in case of a driver issue I would expect much more
people to complain.

What looks a little strange to me is that there seem to be two interfaces (modem + wan)
fiddling with eth0.2

Heiner


Am 25.01.2015 um 18:17 schrieb Weedy:
> On Wed, Dec 17, 2014 at 1:48 PM, Heiner Kallweit <hkallweit1 at gmail.com> wrote:
>> Ticket 18415 was closed as it was confirmed that as at least version >=43419 is ok.
>> (I assume 43410 fixed the issue.) Therefore current trunk should be ok.
>>
>> However if you want to check further what the actual root cause was:
>> -> Re-enable the additional reset by reverting 43410
>> -> Issue there?
>> -> If yes, check whether inserting a mdiobus_write(bus, i, MII_BMCR, BMCR_ANENABLE);
>>    before mdiobus_write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE); in
>>    ar8xxx_phy_init fixes it.
>>
>> Heiner
>>
> 
> So I'm shitty and I forgot about this.
> Today I reapplied 43332 (so my checkout should be "virgin"), and made a image.
> My WAN port broke again. Should I still go back to 43410?
> I saw how many commits you have made since then which is why I flashed r44119.
> 
> # dmesg |grep Atheros
> [    0.000000] SoC: Atheros AR9344 rev 2
> [    0.630000] switch0: Atheros AR8327 rev. 2 switch registered on ag71xx-mdio.0
> [    1.300000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00
> [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
> [    1.310000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
> [   11.760000] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
> [   11.810000] ieee80211 phy1: Atheros AR9300 Rev:4 mem=0xb0000000, irq=40
> [   24.820000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 2 is up
> [   24.820000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 4 is up
> [  423.900000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 3 is up
> [  447.900000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 2 is down
> [  453.900000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
> 
> 
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'wan' has
> link connectivity loss
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'modem' is now down
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'modem' is disabled
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'modem' is enabled
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'modem' is
> setting up now
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'modem' is now up
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:49:21 2015 daemon.notice netifd: Interface 'wan' has
> link connectivity
> Sun Jan 25 10:49:22 2015 user.notice firewall: Reloading firewall due
> to ifup of modem (eth0.2)
> Sun Jan 25 10:49:24 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:49:24 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:49:24 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:49:24 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:49:24 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:49:24 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:49:24 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:49:25 2015 user.notice firewall: Reloading firewall due
> to ifup of wan (eth0.2)
> Sun Jan 25 10:49:28 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:49:30 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:49:30 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:49:31 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:49:31 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:49:31 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:49:31 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:49:31 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:49:31 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:49:31 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:49:32 2015 user.notice firewall: Reloading firewall due
> to ifup of wan (eth0.2)
> Sun Jan 25 10:49:41 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:49:43 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:49:43 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:49:44 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:49:44 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:49:44 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:49:44 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:49:44 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:49:44 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:49:44 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:49:44 2015 user.notice firewall: Reloading firewall due
> to ifup of wan (eth0.2)
> Sun Jan 25 10:49:53 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:49:55 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:49:55 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:49:56 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:49:56 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:49:56 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:49:56 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:49:56 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:49:56 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:49:56 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:49:56 2015 user.notice firewall: Reloading firewall due
> to ifup of wan (eth0.2)
> Sun Jan 25 10:50:05 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:50:07 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:50:07 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:50:08 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:50:08 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:50:08 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:50:08 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:50:08 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:50:08 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:50:08 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:50:09 2015 user.notice firewall: Reloading firewall due
> to ifup of wan (eth0.2)
> Sun Jan 25 10:50:18 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:50:20 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:50:20 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:50:21 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:50:21 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:50:21 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:50:21 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:50:21 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:50:21 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:50:21 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:50:21 2015 user.notice firewall: Reloading firewall due
> to ifup of wan (eth0.2)
> Sun Jan 25 10:50:30 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:50:32 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:50:32 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:50:33 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:50:33 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:50:33 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:50:33 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:50:33 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:50:33 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:50:33 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:50:33 2015 user.notice firewall: Reloading firewall due
> to ifup of wan (eth0.2)
> Sun Jan 25 10:50:40 2015 kern.info kernel: [  423.900000] Atheros
> AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 3 is up <---- moving
> cables around
> Sun Jan 25 10:50:45 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:50:45 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:50:45 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:50:45 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:50:45 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:50:45 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:50:45 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:50:55 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:50:57 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:50:57 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:50:58 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:50:58 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:50:58 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:50:58 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:50:58 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:50:58 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:50:58 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:50:58 2015 user.notice firewall: Reloading firewall due
> to ifup of wan (eth0.2)
> Sun Jan 25 10:51:04 2015 kern.info kernel: [  447.900000] Atheros
> AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 2 is down <---- moving
> cables around
> Sun Jan 25 10:51:07 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:51:09 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:51:09 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:51:10 2015 kern.info kernel: [  453.900000] Atheros
> AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up <---- connected
> modem through a gigabit switch here
> Sun Jan 25 10:51:10 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:51:10 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:51:10 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:51:10 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:51:10 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:51:10 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:51:10 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:51:19 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:51:21 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:51:21 2015 daemon.notice netifd: Interface 'wan' is now up
> Sun Jan 25 10:51:22 2015 user.err syslog: module is already loaded - cls_u32
> Sun Jan 25 10:51:22 2015 user.err syslog: module is already loaded - em_u32
> Sun Jan 25 10:51:22 2015 user.err syslog: module is already loaded -
> act_connmark
> Sun Jan 25 10:51:22 2015 user.err syslog: module is already loaded - act_mirred
> Sun Jan 25 10:51:22 2015 user.err syslog: module is already loaded - sch_ingress
> Sun Jan 25 10:51:22 2015 user.err syslog: module is already loaded - cls_fw
> Sun Jan 25 10:51:22 2015 user.err syslog: module is already loaded - sch_hfsc
> Sun Jan 25 10:51:37 2015 daemon.notice netifd: Interface 'wan' is now down
> Sun Jan 25 10:51:37 2015 daemon.notice netifd: Interface 'wan' has
> link connectivity loss
> Sun Jan 25 10:51:37 2015 daemon.notice netifd: Interface 'wan' has
> link connectivity
> Sun Jan 25 10:51:37 2015 daemon.notice netifd: Interface 'wan' is setting up now
> Sun Jan 25 10:51:37 2015 daemon.info pppd[9400]: Plugin rp-pppoe.so loaded.
> 
> As an aside, why is netifd trying so hard when the port status hasn't changed?
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list