|
|
有木有大佬遇到过这种情况,MT7621在启动的时候有一定几率会卡死,是什么问题呢?具体卡死在内核启动3s左右 libphy: Fixed MDIO Bus: probed 。
对比了下正常启动的日志 在3s左右 这行日志后会 打印libphy: mdio: probed,出错则不会,然后CPU一直进入挂起。
附串口kernel启动日志:
Starting kernel ...
[ 0.000000] Linux version 4.14.172 (root@router) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r12486-1bbdc6a)) #0 SMP Fri Sep 4 02:31:59 2020
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is CPE-W2
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 10000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2,2} total 4
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x9c/0x4d8 with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu s26096 r8192 d23056 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Writing ErrCtl register=00000dd1
[ 0.000000] Readback ErrCtl register=00000dd1
[ 0.000000] Memory: 251236K/262144K available (5138K kernel code, 269K rwdata, 1128K rodata, 1260K init, 267K bss, 10908K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 256
[ 0.000000] CPU Clock: 880MHz
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.015537] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.087864] pid_max: default: 32768 minimum: 301
[ 0.097248] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.110271] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.126778] Hierarchical SRCU implementation.
[ 0.136460] smp: Bringing up secondary CPUs ...
[ 0.147029] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.147039] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.147053] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.147220] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.205689] Synchronize counters for CPU 1: done.
[ 0.277135] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.277144] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.277153] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.277240] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.326829] Synchronize counters for CPU 2: done.
[ 0.387988] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.387996] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.388003] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.388091] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.446407] Synchronize counters for CPU 3: done.
[ 0.506014] smp: Brought up 1 node, 4 CPUs
[ 0.518603] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.538120] futex hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.550751] pinctrl core: initialized pinctrl subsystem
[ 0.562828] NET: Registered protocol family 16
[ 0.584751] pull PCIe RST: RALINK_RSTCTRL = 4000000
[ 0.894785] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.904852] ***** Xtal 40MHz *****
[ 0.911578] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.921789] Port 0 N_FTS = 1b102800
[ 0.928685] Port 1 N_FTS = 1b102800
[ 0.935614] Port 2 N_FTS = 1b102800
[ 2.094365] PCIE1 no card, disable it(RST&CLK)
[ 2.103059] PCIE2 no card, disable it(RST&CLK)
[ 2.111857] -> 21007f2
[ 2.116710] PCIE0 enabled
[ 2.121888] PCI host bridge /pcie@1e140000 ranges:
[ 2.131416] MEM 0x0000000060000000..0x000000006fffffff
[ 2.141777] IO 0x000000001e160000..0x000000001e16ffff
[ 2.152135] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[ 2.179583] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 2.190956] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 2.202200] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 2.213423] mt7621 watchdog timer start.
[ 2.222253] usbcore: registered new interface driver usbfs
[ 2.233187] usbcore: registered new interface driver hub
[ 2.243790] usbcore: registered new device driver usb
[ 2.254370] PCI host bridge to bus 0000:00
[ 2.262402] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 2.276061] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 2.287801] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 2.301274] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 2.317537] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.334143] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 2.347206] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.360999] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 2.374474] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[ 2.387969] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[ 2.401434] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.411265] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.426606] clocksource: Switched to clocksource GIC
[ 2.439001] NET: Registered protocol family 2
[ 2.448513] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 2.462291] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 2.475071] TCP: Hash tables configured (established 2048 bind 2048)
[ 2.487815] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.499344] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.512069] NET: Registered protocol family 1
[ 2.756542] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 2.768448] Crashlog allocated RAM at address 0x3f00000
[ 2.779031] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 2.802032] random: fast init done
[ 2.804227] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.820274] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.848568] io scheduler noop registered
[ 2.856224] io scheduler deadline registered (default)
[ 2.867886] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 2.882213] console [ttyS0] disabled
[ 2.889324] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 2.907233] console [ttyS0] enabled
[ 2.907233] console [ttyS0] enabled
[ 2.921008] bootconsole [early0] disabled
[ 2.921008] bootconsole [early0] disabled
[ 2.937898] 1e000e00.uartlite3: ttyS1 at MMIO 0x1e000e00 (irq = 20, base_baud = 3125000) is a 16550A
[ 2.958641] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 2.973085] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[ 2.984973] m25p80 spi0.0: mx25l25635f (32768 Kbytes)
[ 2.995136] 4 fixed-partitions partitions found on MTD device spi0.0
[ 3.007812] Creating 4 MTD partitions on "spi0.0":
[ 3.017368] 0x000000000000-0x000000030000 : "u-boot"
[ 3.028693] 0x000000030000-0x000000040000 : "u-boot-env"
[ 3.040668] 0x000000040000-0x000000050000 : "factory"
[ 3.052144] 0x000000050000-0x000002000000 : "firmware"
[ 3.064055] 2 uimage-fw partitions found on MTD device firmware
[ 3.075911] Creating 2 MTD partitions on "firmware":
[ 3.085810] 0x000000000000-0x00000020ff4c : "kernel"
[ 3.097207] 0x00000020ff4c-0x000001fb0000 : "rootfs"
[ 3.108403] mtd: device 5 (rootfs) set to be root filesystem
[ 3.119838] 1 squashfs-split partitions found on MTD device rootfs
[ 3.132172] 0x000000f80000-0x000001fb0000 : "rootfs_data"
[ 3.145276] libphy: Fixed MDIO Bus: probed
[ 5.392140] random: crng init done
[ 63.156638] INFO: rcu_sched self-detected stall on CPU
[ 63.166868] 0-...: (5999 ticks this GP) idle=a22/140000000000002/0 softirq=26/26 fqs=2824
[ 63.183468] (t=6000 jiffies g=-287 c=-288 q=132)
[ 63.192996] NMI backtrace for cpu 0
[ 63.199928] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.172 #0
[ 63.212039] Stack : 00000000 80630000 00000000 800782bc 80660000 805f8178 00000000 00000000
[ 63.228665] 805bd57c 8fc09bf4 8fc3838c 80635d47 805b7f4c 00000001 8fc09b98 5326164d
[ 63.245291] 00000000 00000000 807b0000 00000000 807a84c0 000000a1 00000007 00000000
[ 63.261915] 00000000 00000000 00030cf8 ffffffff 00000000 80660000 00000000 00000000
[ 63.278540] 8063c240 806330ec 000000e0 80630000 00000000 802e36f8 00000000 807a0000
[ 63.295165] ...
[ 63.300021] Call Trace:
[ 63.304908] [<8000c4d4>] show_stack+0x58/0x100
[ 63.313770] [<804e7214>] dump_stack+0xa4/0xe0
[ 63.322439] [<804ee254>] nmi_cpu_backtrace+0xe4/0x108
[ 63.332477] [<804ee34c>] nmi_trigger_cpumask_backtrace+0xd4/0x178
[ 63.344621] [<8008cc84>] rcu_dump_cpu_stacks+0xc4/0x140
[ 63.355008] [<8008c268>] rcu_check_callbacks+0x3b4/0x8c0
[ 63.365573] [<8008fc4c>] update_process_times+0x34/0x78
[ 63.375971] [<800a0ea8>] tick_handle_periodic+0x34/0xd0
[ 63.386375] [<80380624>] gic_compare_interrupt+0x70/0x8c
[ 63.396959] [<8007fa3c>] handle_percpu_devid_irq+0xbc/0x1a8
[ 63.408036] [<80079d90>] generic_handle_irq+0x40/0x58
[ 63.418099] [<80293728>] gic_handle_local_int+0x9c/0xe8
[ 63.428485] [<802938e8>] gic_irq_dispatch+0x10/0x20
[ 63.438178] [<80079d90>] generic_handle_irq+0x40/0x58
[ 63.448239] [<8050449c>] do_IRQ+0x1c/0x2c
[ 63.456204] [<80292f84>] plat_irq_dispatch+0xf0/0x13c
[ 63.466244] [<800074c8>] except_vec_vi_end+0xb8/0xc4
[ 63.476137] [<80035250>] irq_exit+0xa8/0xc4
|
|