aparcar / openwrt

Staging tree of Paul Spooren
Other
8 stars 1 forks source link

FS#1298 - dsa driver fails to create slave phy for mv88e6161 #1284

Closed aparcar closed 6 years ago

aparcar commented 6 years ago

youxiaojie:

Supply the following if possible:

hello, I am compiling kernel for 88f6281 with 88e6161 switch for 4.9.73.but the dsa does not work correctly.I think it is a bug because 4.4 and 4.14 works fine. both two bindings get the same result (port uninitialized, could not setup slave phy -19). thanks this it the log I think this is a upstream code problem.

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.73 (allan@debian000) (gcc version 7.2.0 (OpenWrt GCC 7.2.0 r5681+3-4e800716ac) ) #0 Sat Jan 20 07:07:06 2018 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt:Machine model: QiZhiTong 501M V2 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 [ 0.000000] Kernel command line: rootdelay=1 root=/dev/mmcblk0p1 console=ttyS0,9600 [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 513240K/524288K available (4450K kernel code, 282K rwdata, 1212K rodata, 244K init, 225K bss, 11048K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0460bb8 (4451 kB) [ 0.000000] .init : 0xc0591000 - 0xc05ce000 ( 244 kB) [ 0.000000] .data : 0xc05ce000 - 0xc0614b78 ( 283 kB) [ 0.000000] .bss : 0xc0614b78 - 0xc064cfd0 ( 226 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000090] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584) [ 0.090096] pid_max: default: 32768 minimum: 301 [ 0.090227] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.090247] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.090807] CPU: Testing write buffer coherency: ok [ 0.091128] Setting up static identity map for 0x81e0 - 0x821c [ 0.091382] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3 [ 0.096402] VFP support v0.3: not present [ 0.096598] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.096624] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.096714] pinctrl core: initialized pinctrl subsystem [ 0.097697] NET: Registered protocol family 16 [ 0.098065] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.099438] cpuidle: using governor ladder [ 0.099819] Feroceon L2: Enabling L2 [ 0.099861] Feroceon L2: Cache support initialised. [ 0.100167] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.100277] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set [ 0.105030] No ATAGs? [ 0.122520] SCSI subsystem initialized [ 0.123294] usbcore: registered new interface driver usbfs [ 0.123380] usbcore: registered new interface driver hub [ 0.123445] usbcore: registered new device driver usb [ 0.125617] clocksource: Switched to clocksource orion_clocksource [ 0.141617] NET: Registered protocol family 2 [ 0.142241] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.142300] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.142352] TCP: Hash tables configured (established 4096 bind 4096) [ 0.142413] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.142435] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.142600] NET: Registered protocol family 1 [ 0.145537] Crashlog allocated RAM at address 0x3f00000 [ 0.146064] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 0.155258] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.155271] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.163441] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.163457] io scheduler noop registered [ 0.163466] io scheduler deadline registered (default) [ 0.164727] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 0.166290] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00 [ 0.166310] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] [ 0.166324] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff] [ 0.166338] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.166627] PCI: bus0: Fast back to back transfers disabled [ 0.166644] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.167149] PCI: bus1: Fast back to back transfers disabled [ 0.167294] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff] [ 0.167316] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit] [ 0.167337] pci 0000:00:01.0: PCI bridge to [bus 01] [ 0.167353] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff] [ 0.201616] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.202684] console [ttyS0] disabled [ 0.202755] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A [ 6.147954] console [ttyS0] enabled [ 6.190815] sata_mv f1080000.sata: slots 32 ports 1 [ 6.251354] scsi host0: sata_mv [ 6.289260] ata1: SATA max UDMA/133 irq 32 [ 6.338834] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76 [ 6.414912] nand: ST Micro NAND 64MiB 3,3V 8-bit [ 6.470212] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16 [ 6.557815] Scanning device for bad blocks [ 6.825021] 3 ofpart partitions found on MTD device orion_nand [ 6.894872] Creating 3 MTD partitions on "orion_nand": [ 6.956434] 0x000000000000-0x000000100000 : "u-boot" [ 7.017623] 0x000000100000-0x000000400000 : "kernel" [ 7.078498] 0x000000400000-0x000004000000 : "ubi" [ 7.140045] libphy: Fixed MDIO Bus: probed [ 7.189698] libphy: mdio_driver_register: mv88e6085 [ 7.248389] libphy: orion_mdio_bus: probed [ 7.300089] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 7.383044] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:1f:bb:6c [ 7.487449] ata1: SATA link down (SStatus 0 SControl F300) [ 8.585629] random: fast init done [ 8.626752] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:1f:bb:6d [ 8.731060] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.809228] ehci-pci: EHCI PCI platform driver [ 8.862532] ehci-orion: EHCI orion driver [ 8.910649] orion-ehci f1050000.ehci: EHCI Host Controller [ 8.976339] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 9.068194] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000 [ 9.165637] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 9.238336] hub 1-0:1.0: USB hub found [ 9.283371] hub 1-0:1.0: 1 port detected [ 9.330831] usbcore: registered new interface driver usb-storage [ 9.403184] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 [ 9.485603] i2c /dev entries driver [ 9.527993] orion_wdt: Initial timeout 21 sec [ 9.580736] mvsdio f1090000.mvsdio: Got CD GPIO [ 9.691301] marvell-cesa f1030000.crypto: CESA device successfully registered [ 9.777637] NET: Registered protocol family 10 [ 9.832662] NET: Registered protocol family 17 [ 9.886000] Distributed Switch Architecture driver version 0.1 [ 9.959462] dsa dsa@0: switch 0x161 detected: Marvell 88E6161, revision 3 [ 10.040955] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 10.125463] libphy: mv88e6xxx SMI: probed [ 10.173444] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Marvell 88E6161 switch [ 10.282033] mmc0: host does not support reading read-only switch, assuming write-enable [ 10.379712] mmc0: new high speed SD card at address 0002 [ 10.443922] mmcblk0: mmc0:0002 SD256 245 MiB [ 10.497598] mmcblk0: p1 [ 10.528253] hub 1-1:1.0: USB hub found [ 10.574009] hub 1-1:1.0: 2 ports detected [ 10.731913] dsa dsa@0 lan1 (uninitialized): no phy at 0 [ 10.794534] dsa dsa@0 lan1 (uninitialized): failed to connect to port 0: -19 [ 10.879012] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy [ 10.971811] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 0(lan1): -19 [ 11.091708] dsa dsa@0 lan2 (uninitialized): no phy at 1 [ 11.154290] dsa dsa@0 lan2 (uninitialized): failed to connect to port 1: -19 [ 11.238765] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy [ 11.331574] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 1(lan2): -19 [ 11.451472] dsa dsa@0 lan3 (uninitialized): no phy at 2 [ 11.514059] dsa dsa@0 lan3 (uninitialized): failed to connect to port 2: -19 [ 11.598535] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy [ 11.691349] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 2(lan3): -19 [ 11.811246] dsa dsa@0 lan4 (uninitialized): no phy at 3 [ 11.873828] dsa dsa@0 lan4 (uninitialized): failed to connect to port 3: -19 [ 11.958303] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy [ 12.051112] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 3(lan4): -19 [ 12.171011] dsa dsa@0 aux (uninitialized): no phy at 4 [ 12.232555] dsa dsa@0 aux (uninitialized): failed to connect to port 4: -19 [ 12.315989] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy [ 12.408798] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 4(aux): -19 [ 12.527705] 8021q: 802.1Q VLAN Support v1.8 [ 12.580488] UBI error: no valid UBI magic found inside mtd2 [ 12.647473] rtc-mv f1010300.rtc: setting system clock to 2018-01-24 19:53:14 UTC (1516823594) [ 12.750399] Waiting 1 sec before mounting root device... [ 13.846254] EXT4-fs (mmcblk0p1): mounting ext3 file system using the ext4 subsystem [ 13.943314] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null) [ 14.040303] VFS: Mounted root (ext3 filesystem) readonly on device 179:1. [ 14.122298] Freeing unused kernel memory: 244K [ 14.175459] This architecture does not have kernel memory protection. [ 14.379279] init: Console is alive [ 14.420186] init: - watchdog - [ 14.467272] init: - preinit - Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 17.895752] mount_root: mounting /dev/root [ 17.946014] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null) [ 18.010790] mount_root: loading kmods from internal overlay [ 18.083392] mount_root: failed to launch kmodloader from internal overlay [ 18.490088] block: attempting to load /etc/config/fstab [ 18.553872] block: extroot: not configured [ 18.604901] urandom-seed: Seeding with /etc/urandom.seed [ 18.688940] procd: - early - [ 18.723963] procd: - watchdog - [ 19.605586] procd: - watchdog - [ 19.643351] procd: - ubus - [ 19.728971] procd: - init - Please press Enter to activate this console. [ 24.270780] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 108.065665] random: crng init done

[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.4.39 (Wacke@HOME-Server) (gcc version 6.3.0 (LEDE GCC 6.3.0 r2699-939ef15) ) #0 Mon Jan 2 20:06:14 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine model: QiZhiTong 501M V2 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 131072 [ 0.000000] free_area_init_node: node 0, pgdat c0740a1c, node_mem_map dfbfa000 [ 0.000000] Normal zone: 1024 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 131072 pages, LIFO batch:31 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 [ 0.000000] Kernel command line: rootdelay=1 root=/dev/mmcblk0p1 console=ttyS0,9600 [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 512032K/524288K available (4879K kernel code, 281K rwdata, 2012K rodata, 236K init, 217K bss, 12256K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc06c2e2c (6892 kB) .init : 0xc06c3000 - 0xc06fe000 ( 236 kB) .data : 0xc06fe000 - 0xc0744720 ( 282 kB) .bss : 0xc0744720 - 0xc077ac38 ( 218 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000084] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584) [ 0.090093] pid_max: default: 32768 minimum: 301 [ 0.090216] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.090235] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.090755] CPU: Testing write buffer coherency: ok [ 0.091107] Setting up static identity map for 0x81e0 - 0x821c [ 0.091399] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3 [ 0.096395] VFP support v0.3: not present [ 0.096630] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.096816] pinctrl core: initialized pinctrl subsystem [ 0.097955] NET: Registered protocol family 16 [ 0.098329] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.099325] cpuidle: using governor ladder [ 0.099703] Feroceon L2: Enabling L2 [ 0.099745] Feroceon L2: Cache support initialised. [ 0.100012] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.100153] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set [ 0.122629] SCSI subsystem initialized [ 0.123121] libata version 3.00 loaded. [ 0.123492] usbcore: registered new interface driver usbfs [ 0.123576] usbcore: registered new interface driver hub [ 0.123642] usbcore: registered new device driver usb [ 0.124654] clocksource: Switched to clocksource orion_clocksource [ 0.140268] NET: Registered protocol family 2 [ 0.140918] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.140976] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.141028] TCP: Hash tables configured (established 4096 bind 4096) [ 0.141088] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.141111] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.141290] NET: Registered protocol family 1 [ 0.141340] PCI: CLS 0 bytes, default 32 [ 0.145635] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.145734] Crashlog allocated RAM at address 0x3f00000 [ 0.160530] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.160580] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.167582] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 0.167602] io scheduler noop registered [ 0.167615] io scheduler deadline registered (default) [ 0.168981] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 0.169659] irq: Cannot allocate irq_descs @ IRQ35, assuming pre-allocated [ 0.170059] irq: Cannot allocate irq_descs @ IRQ67, assuming pre-allocated [ 0.170663] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00 [ 0.170681] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] [ 0.170693] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff] [ 0.170705] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.170738] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400 [ 0.171013] PCI: bus0: Fast back to back transfers disabled [ 0.171029] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.171183] pci 0000:01:00.0: [168c:002b] type 00 class 0x028000 [ 0.171234] pci 0000:01:00.0: reg 0x10: [mem 0x40000000-0x4000ffff 64bit] [ 0.171342] pci 0000:01:00.0: supports D1 [ 0.171355] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold [ 0.171556] PCI: bus1: Fast back to back transfers disabled [ 0.171573] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 [ 0.171651] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff] [ 0.171671] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit] [ 0.171692] pci 0000:00:01.0: PCI bridge to [bus 01] [ 0.171707] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff] [ 0.205521] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.206582] console [ttyS0] disabled [ 0.206652] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A [ 6.176776] console [ttyS0] enabled [ 6.219581] sata_mv f1080000.sata: version 1.28 [ 6.219783] sata_mv f1080000.sata: slots 32 ports 1 [ 6.280514] scsi host0: sata_mv [ 6.318530] ata1: SATA max UDMA/133 irq 32 [ 6.368113] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76 [ 6.444255] nand: ST Micro NAND 64MiB 3,3V 8-bit [ 6.499555] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16 [ 6.587156] Scanning device for bad blocks [ 6.854552] 3 ofpart partitions found on MTD device orion_nand [ 6.924423] Creating 3 MTD partitions on "orion_nand": [ 6.985988] 0x000000000000-0x000000100000 : "u-boot" [ 7.047214] 0x000000100000-0x000000500000 : "kernel" [ 7.108039] 0x000000500000-0x000004000000 : "rootfs" [ 7.170306] mtd: device 2 (rootfs) set to be root filesystem [ 7.238150] mtdsplit: no squashfs found in "rootfs" [ 7.297225] libphy: orion_mdio_bus: probed [ 7.346294] mdio_bus f1072004.mdio-bu: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1 has invalid PHY address [ 7.462000] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 0 [ 7.543961] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 1 [ 7.625777] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 2 [ 7.707124] ata1: SATA link down (SStatus 0 SControl F300) [ 7.773047] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 3 [ 7.854553] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 4 [ 7.936110] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 5 [ 8.017666] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 6 [ 8.099222] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 7 [ 8.180779] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 8 [ 8.262335] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 9 [ 8.343892] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 10 [ 8.426493] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 11 [ 8.509050] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 12 [ 8.591564] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 13 [ 8.674078] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 14 [ 8.756679] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 15 [ 8.839236] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 16 [ 8.921750] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 17 [ 9.004264] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 18 [ 9.086735] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 19 [ 9.169249] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 20 [ 9.251719] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 21 [ 9.334233] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 22 [ 9.416704] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 23 [ 9.499217] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 24 [ 9.581732] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 25 [ 9.664289] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 26 [ 9.746802] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 27 [ 9.829316] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 28 [ 9.911787] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 29 [ 9.994301] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 30 [ 10.076772] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 31 [ 10.159470] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 10.242219] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:1f:bb:6c [ 10.347984] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:1f:bb:6d [ 10.452291] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 10.530454] ehci-pci: EHCI PCI platform driver [ 10.583750] ehci-platform: EHCI generic platform driver [ 10.646546] ehci-orion: EHCI orion driver [ 10.694694] orion-ehci f1050000.ehci: EHCI Host Controller [ 10.760459] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 10.852324] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000 [ 10.934678] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 11.007412] hub 1-0:1.0: USB hub found [ 11.052506] hub 1-0:1.0: 1 port detected [ 11.099990] usbcore: registered new interface driver usb-storage [ 11.172444] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 [ 11.254848] i2c /dev entries driver [ 11.297413] orion_wdt: Initial timeout 21 sec [ 11.350622] mvsdio f1090000.mvsdio: Got CD GPIO [ 11.449970] marvell-cesa f1030000.crypto: CESA device successfully registered [ 11.535682] nf_conntrack version 0.5.0 (8000 buckets, 32000 max) [ 11.609243] NET: Registered protocol family 10 [ 11.664735] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 11.729455] NET: Registered protocol family 17 [ 11.782713] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 11.933944] Distributed Switch Architecture driver version 0.1 [ 12.007412] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Marvell 88E6161 (A2) switch [ 12.113828] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 12.212061] mmc0: host does not support reading read-only switch, assuming write-enable [ 12.309666] mmc0: new high speed SD card at address 0002 [ 12.373919] mmcblk0: mmc0:0002 SD256 245 MiB [ 12.427265] mmcblk0: p1 [ 12.459144] hub 1-1:1.0: USB hub found [ 12.504282] hub 1-1:1.0: 2 ports detected [ 12.672337] libphy: dsa slave smi: probed [ 12.731211] 8021q: 802.1Q VLAN Support v1.8 [ 12.784270] Key type encrypted registered [ 12.833076] rtc-mv f1010300.rtc: setting system clock to 2018-01-24 14:50:07 UTC (1516805407) [ 12.936923] Waiting 1 sec before mounting root device... [ 14.005284] EXT4-fs (mmcblk0p1): mounting ext3 file system using the ext4 subsystem [ 14.102300] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null) [ 14.199324] VFS: Mounted root (ext3 filesystem) readonly on device 179:1. [ 14.281297] Freeing unused kernel memory: 236K (c06c3000 - c06fe000) [ 14.529869] init: Console is alive [ 14.570781] init: - watchdog - [ 14.617855] init: - preinit - [ 14.776556] random: jshn: uninitialized urandom read (4 bytes read, 40 bits of entropy available) [ 14.911283] random: jshn: uninitialized urandom read (4 bytes read, 40 bits of entropy available) [ 15.046322] random: jshn: uninitialized urandom read (4 bytes read, 40 bits of entropy available) [ 15.179980] random: jshn: uninitialized urandom read (4 bytes read, 40 bits of entropy available) [ 15.311330] random: jshn: uninitialized urandom read (4 bytes read, 40 bits of entropy available) [ 18.586948] mount_root: mounting /dev/root [ 18.637194] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null) [ 18.702078] mount_root: loading kmods from internal overlay [ 18.774738] mount_root: failed to launch kmodloader from internal overlay [ 19.242236] block: attempting to load /etc/config/fstab [ 19.305989] block: extroot: not configured [ 19.356961] urandom-seed: Seeding with /etc/urandom.seed [ 19.447779] procd: - early - [ 19.482828] procd: - watchdog - [ 20.378360] procd: - watchdog - [ 20.416180] procd: - ubus - [ 20.500569] random: ubusd: uninitialized urandom read (4 bytes read, 50 bits of entropy available) [ 20.608253] random: ubusd: uninitialized urandom read (4 bytes read, 50 bits of entropy available) [ 20.715682] random: ubusd: uninitialized urandom read (4 bytes read, 50 bits of entropy available) [ 20.823310] random: ubusd: uninitialized urandom read (4 bytes read, 50 bits of entropy available) [ 20.930755] random: ubusd: uninitialized urandom read (4 bytes read, 50 bits of entropy available) [ 21.038833] procd: - init - [ 24.500767] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 24.640529] device lan1 entered promiscuous mode [ 24.695816] device eth0 entered promiscuous mode [ 24.774381] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 24.865507] device lan2 entered promiscuous mode [ 24.936796] device lan3 entered promiscuous mode [ 25.037090] device lan4 entered promiscuous mode [ 25.140000] device aux entered promiscuous mode [ 25.201030] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 25.847186] dsa dsa@0 lan1: Link is Down [ 26.896750] dsa dsa@0 aux: Link is Down [ 26.996752] dsa dsa@0 lan2: Link is Down [ 27.045794] dsa dsa@0 lan3: Link is Down [ 27.094925] dsa dsa@0 lan4: Link is Down [ 42.984686] random: nonblocking pool is initialized root@OpenWrt:/proc#

aparcar commented 6 years ago

ffainelli:

Can you check if the following patch helps?

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=399ba77a94e1ee01f747b168c429a121164ac962

aparcar commented 6 years ago

asl:

Please try the following patches:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/dsa/mv88e6xxx/chip.c?id=ec8378bb4d8ebfaae035c0e949311f8efefc3a87

and

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/dsa/mv88e6xxx/chip.c?id=0ac64c39490041cb684350823803e6476815a3fb