Modify

Opened 2 years ago

Last modified 21 months ago

#21392 new defect

[Ramips MT7621] Witi board kernel panic - kmod-mmc

Reported by: maurer Owned by: developers
Priority: normal Milestone: Designated Driver (Trunk)
Component: kernel Version: Trunk
Keywords: Cc:

Description

if built with kmod-mmc i get at boot:

[ 110.540000] INFO: rcu_sched self-detected stall on CPU
[ 110.540000] 0: (1 GPs behind) idle=42b/2/0 softirq=242/244 fqs=5995
[ 110.540000] (t=6000 jiffies g=-185 c=-186 q=8)
[ 110.540000] Task dump for CPU 0:
[ 110.540000] swapper/0 R running 0 0 0 0x00100004
[ 110.540000] Stack : 00000001 80062ad0 00000000 00000000 803e0000 80062ad0 00000000 00000006

00000006 80061254 00000000 00000000 00000000 00000000 80460000 804d0000
00000000 8045bc18 000000e0 80460000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 dc8ba100 00000000 8045bc18
...

[ 110.540000] Call Trace:
[ 110.540000] [<80016640>] show_stack+0x50/0x84
[ 110.540000] [<8006bc54>] rcu_dump_cpu_stacks+0xa4/0xe8
[ 110.540000] [<8006ec68>] rcu_check_callbacks+0x29c/0x720
[ 110.540000] [<80070af8>] update_process_times+0x34/0x70
[ 110.540000] [<8007fbb4>] tick_sched_timer+0x238/0x29c
[ 110.540000] [<80071b50>] hrtimer_run_queues+0x10c/0x1d4
[ 110.540000] [<80071da8>] hrtimer_interrupt+0xec/0x2ac
[ 110.540000] [<80274cd0>] gic_compare_interrupt+0x2c/0x40
[ 110.540000] [<80067bc8>] handle_percpu_devid_irq+0xac/0xf4
[ 110.540000] [<800639b0>] generic_handle_irq+0x28/0x38
[ 110.540000] [<801e4cd0>] gic_handle_local_int+0x94/0xe8
[ 110.540000] [<801e4ea8>] gic_irq_dispatch+0x10/0x20

If built without and installing it after boot it hangs with:

[ 466.140000] CPU 2 Unable to handle kernel paging request at virtual address 0 000000c, epc == 8008d74c, ra == 8008d734
[ 466.160000] Oops#1:
[ 466.160000] CPU: 2 PID: 3106 Comm: modprobe Not tainted 4.3.0 #6
[ 466.170000] task: 8eaeb1c8 ti: 8da12000 task.ti: 8da12000
[ 466.180000] $ 0 : 00000000 0000006d 00000000 8b871c54
[ 466.190000] $ 4 : 804744a0 8e547cd0 8b871aac 00000000
[ 466.210000] $ 8 : fffffffc 00001226 00000000 00000001
[ 466.220000] $12 : 8f9a0c90 30322054 00000000 61736964
[ 466.230000] $16 : 8b871aa0 8da13ec8 fffffff8 8b871aac
[ 466.240000] $20 : 8b871ae8 80470000 80470000 803ed7e8
[ 466.250000] $24 : 00000000 00000000
[ 466.260000] $28 : 8da12000 8da13de8 00000000 8008d734
[ 466.270000] Hi : 0000001e
[ 466.270000] Lo : 00000008
[ 466.280000] epc : 8008d74c load_module+0x18f4/0x1c94
[ 466.290000] ra : 8008d734 load_module+0x18dc/0x1c94
[ 466.300000] Status: 1100fc03 KERNEL EXL IE
[ 466.310000] Cause : 40800008 (ExcCode 02)
[ 466.320000] BadVA : 0000000c
[ 466.320000] PrId : 0001992f (MIPS 1004Kc)
[ 466.330000] Modules linked in: mmc_core(+) pppoe ppp_async option iptable_nat usb_wwan pppox ppp_mppe ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ ipv4 ipt_REJECT ipt_MASQUERADE huawei_cdc_ncm cdc_ncm xt_time xt_tcpudp xt_tcpms s xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt _length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlim it xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_C LASSIFY vhci_hcd usbserial usbnet usbip_host usbip_core usbhid slhc rtc_pcf8563 nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defr ag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache iptable_raw iptable_mangle iptable_f ilter ipt_ECN ip_tables hid_generic crc_ccitt cdc_wdm act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_ hfsc sch_ingress hid evdev input_core i2c_mt7621 i2c_dev i2c_core mt76pci mac802 11 cfg80211 compat ledtrig_usbdev xt_set ip_set_list_set ip_set_hash_netiface ip _set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_s et_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set _hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap _ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6tab le_raw ip6table_mangle ip6table_filter ip6_tables x_tables ip_gre gre ifb ip_tun nel tun vfat fat cifs dm_crypt dm_mirror dm_region_hash dm_log dm_mod raid456 as ync_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid1 raid 0 linear md_mod sha256_generic sha1_generic md5 md4 hmac ecb des_generic usb_sto rage leds_gpio xhci_plat_hcd xhci_hcd ahci libahci libata sd_mod scsi_mod gpio_b utton_hotplug xfs libcrc32c ext4 jbd2 mbcache usbcore nls_base usb_common export fs mii aead crypto_null crc32c_generic crypto_hash
[ 466.660000] Process modprobe (pid: 3106, threadinfo=8da12000, task=8eaeb1c8, tls=77c34614)
[ 466.670000] Stack : ffffffff 000002d2 8b871604 8fafe100 8b871aac 00007fff 000 00000 8008b0d0
[ 466.670000] 803ed7c8 80470000 00000278 c0ecf238 8b871c54 00402a2c 80470000 803e8ddc
[ 466.670000] 803f0000 80474488 fffcd000 000002d2 8b86ec84 00000033 8b86ee1c 00000020
[ 466.670000] 00000000 00000000 6e72656b 00006c65 00413188 00000002 00400000 800e1a10
[ 466.670000] 0001aff8 0000050a 00000000 0050fe30 000002d2 00000bef 00000000 ffffffff
[ 466.670000] ...
[ 466.740000] Call Trace:
[ 466.750000] [<8008d74c>] load_module+0x18f4/0x1c94
[ 466.760000] [<8008dbe4>] SyS_init_module+0xf8/0x13c
[ 466.770000] [<800077a8>] syscall_common+0x30/0x54
[ 466.780000]
[ 466.780000]
[ 466.780000] Code: 26420008 10620007 02603021 <8e420014> 02802821 0c053a17 8c440088 1000fff6 8e520008
[ 466.800000] ---[ end trace fcc9af6f15c59618 ]---

[ 110.540000] [<800639b0>] generic_handle_irq+0x28/0x38
[ 110.540000] [<80013440>] do_IRQ+0x1c/0x2c
[ 110.540000] [<801e41ec>] plat_irq_dispatch+0x98/0xc4
[ 110.540000]

Attachments (0)

Change History (4)

comment:1 Changed 2 years ago by anonymous

latest build (3.01.2016) fails with the error when loading kmod-mmc module

comment:2 Changed 2 years ago by dema@…

Same thing

Fails with kmod-sdhci-mt7620 enabled

[ 0.000000] Linux version 4.3.4 (*@debian) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r48640) ) #15 SMP Tue Feb 9 00:44:29 UTC 2016
[ 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 ZBT-WG2626
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 1c000000 @ 00000000 (usable)
[ 0.000000] memory: 04000000 @ 20000000 (usable)
..............
[ 2.440000] mtd: device 5 (rootfs) set to be root filesystem
[ 2.450000] 1 squashfs-split partitions found on MTD device rootfs
[ 2.450000] 0x0000003f0000-0x000001000000 : "rootfs_data"
[ 2.460000] netif_napi_add() called with weight 128 on device eth%d
[ 2.480000] libphy: mdio: probed
[ 2.490000] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 2.500000] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 10
[ 2.510000] mt7621_wdt 1e000100.wdt: Initialized
[ 2.510000] MTK MSDC device init.
[ 2.530000] random: nonblocking pool is initialized
[ 62.490000] INFO: rcu_sched self-detected stall on CPU
[ 62.490000] 0: (5999 ticks this GP) idle=12d/140000000000002/0 softirq=32/32 fqs=5998
[ 62.490000] (t=6000 jiffies g=-281 c=-282 q=102)
[ 62.490000] Task dump for CPU 0:
[ 62.490000] swapper/0 R running 0 1 0 0x00100004
[ 62.490000] Stack : 00000001 80062ddc 00000000 00000000 803c0000 80062ddc 00000000 00000006

00000006 80061560 00000000 00000000 00000000 00000000 80430000 804a0000
00000000 8f840000 000000e0 80430000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 dc8ba104 00000000 8f840000
...

[ 62.490000] Call Trace:
[ 62.490000] [<80016654>] show_stack+0x50/0x84
[ 62.490000] [<8006bf60>] rcu_dump_cpu_stacks+0xa4/0xe8
[ 62.490000] [<8006ef74>] rcu_check_callbacks+0x29c/0x720
[ 62.490000] [<80070e04>] update_process_times+0x34/0x70
[ 62.490000] [<8007fec0>] tick_sched_timer+0x238/0x29c
[ 62.490000] [<80071e5c>] hrtimer_run_queues+0x10c/0x1d4
[ 62.490000] [<800720b4>] hrtimer_interrupt+0xec/0x2ac
[ 62.490000] [<8026fb28>] gic_compare_interrupt+0x2c/0x40
[ 62.490000] [<80067ed4>] handle_percpu_devid_irq+0xac/0xf4
[ 62.490000] [<80063cbc>] generic_handle_irq+0x28/0x38
[ 62.490000] [<801d13f0>] gic_handle_local_int+0x94/0xe8
[ 62.490000] [<801d15c8>] gic_irq_dispatch+0x10/0x20
[ 62.490000] [<80063cbc>] generic_handle_irq+0x28/0x38
[ 62.490000] [<80013454>] do_IRQ+0x1c/0x2c
[ 62.490000] [<801d090c>] plat_irq_dispatch+0x98/0xc4
[ 62.490000] ..............

comment:3 Changed 22 months ago by diizzyy@…

As of r49131 the SD driver is disabled by default as temporary workaround until someone(tm) fixes it.

comment:4 Changed 21 months ago by languitar

I am seeing the same stack trace as in the original report even without the sdhci module being enabled. It isn't event compiled. The router randomly stops working after minutes till hours since several weeks on trunk builds.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.