Modify

Opened 2 years ago

Last modified 2 years ago

#20949 new defect

writing to sdcard on mt7621 causes kernel oops

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Chaos Calmer 15.05
Keywords: sdio mmc mt7621 ramips Cc: blogic@…

Description

Running the build from http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7621/
writing to sdcard fails:

Fri Nov 20 12:46:47 2015 kern.alert kernel: [ 593.000000] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc 8fbd2aec, ra 8fbd2ac0
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Oops[#1]:
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] CPU: 0 PID: 343 Comm: mmcqd/0 Tainted: G W 3.18.20 #1
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] task: 8f045a90 ti: 8f9a4000 task.ti: 8f9a4000
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] $ 0 : 00000000 00000000 00000080 80399fb8
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] $ 4 : 80399fc8 8f1cf908 0000009e ffff00fe
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] $ 8 : 8f9a5fe0 00009c00 00000000 00000000
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] $12 : 0000008a 7feec230 00000000 7feec1b0
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] $16 : 8f1cf000 8f1cf8f8 be130000 be130000
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] $20 : 00000000 00001000 8f1cf240 00000000
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] $24 : 00000000 8004cecc
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] $28 : 8f9a4000 8f9a5c20 8f1e0120 8fbd2ac0
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Hi : 0000008a
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Lo : 10f55380
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] epc : 8fbd2aec 0x8fbd2aec [mtk_sd@8fbd0000+0x4810]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Tainted: G W
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] ra : 8fbd2ac0 0x8fbd2ac0 [mtk_sd@8fbd0000+0x4810]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Status: 11009c03 KERNEL EXL IE
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Cause : 00800008
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] BadVA : 00000000
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] PrId : 0001992f (MIPS 1004Kc)
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Modules linked in: qcserial pppoe ppp_async option l2tp_ppp iptable_nat ip6table_nat cdc_mbim usb_wwan usb_serial_simple sierra_net sierra rndis_host qmi_wwan pppox ppp_generic nf_nat_ipv6 nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE huawei_cdc_ncm cdc_ncm cdc_ether xt_time xt_tcpudp xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_helper xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_commenFri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Process mmcqd/0 (pid: 343, threadinfo=8f9a4000, task=8f045a90, tls=00000000)
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Stack : 80330000 8f987a70 8148cf80 80047e1c 00000000 00000000 00000010 00000000
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] 8148cf80 8f1d1894 00000001 8148041c 00000003 00000000 00000000 ffffffff
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] 00000000 80054968 00000001 00000000 0001d000 00000025 0000736d 8f1cf908
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] 8f1cf000 8f1cf834 8f1ec270 8f9a5e00 8f1cf800 00000000 8f1cf830 8f270000
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] 245d0001 8fbd2ea8 00001000 8f1cf834 00000001 00000001 00000003 8f9a5d08
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] ...
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Call Trace:[<80047e1c>] 0x80047e1c
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<80054968>] 0x80054968
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8fbd2ea8>] 0x8fbd2ea8 [mtk_sd@8fbd0000+0x4810]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<80054434>] 0x80054434
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8014da74>] 0x8014da74
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8005448c>] 0x8005448c
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8014da74>] 0x8014da74
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8f18425c>] 0x8f18425c [ext4@8f180000+0x4ad60]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<800eb938>] 0x800eb938
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8014da34>] 0x8014da34
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8f261c68>] 0x8f261c68 [mmc_core@8f260000+0x10a90]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8fb98ef0>] 0x8fb98ef0 [mmc_block@8fb98000+0x5310]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8015381c>] 0x8015381c
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8fb99d98>] 0x8fb99d98 [mmc_block@8fb98000+0x5310]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8f26074c>] 0x8f26074c [mmc_core@8f260000+0x10a90]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<80047eb8>] 0x80047eb8
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8fb9a73c>] 0x8fb9a73c [mmc_block@8fb98000+0x5310]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8000bae0>] 0x8000bae0
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<800541c4>] 0x800541c4
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<80040318>] 0x80040318
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8fb9b738>] 0x8fb9b738 [mmc_block@8fb98000+0x5310]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<8fb9b660>] 0x8fb9b660 [mmc_block@8fb98000+0x5310]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<800403f0>] 0x800403f0
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<80040318>] 0x80040318
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] [<80005878>] 0x80005878
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000]
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.030000] Code: 14400009 8fa5005c 26820080 <8e830000> 26940004 ae430018 1682fffc 00000000 26b5ff80
Fri Nov 20 12:46:47 2015 kern.warn kernel: [ 593.810000] ---[ end trace 6fa0c1216b20d508 ]---

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by anonymous

[  170.810000] msdc-1 -> msdc pio find abort <- msdc_pio_abort() : L<1189> PID<mmcqd/0><0xb14>
[  170.820000] msdc-1 -> write pio data->error<-5> <- msdc_pio_write() : L<1301> PID<mmcqd/0><0xb14>
[  170.850000] mmcblk0: error -5 transferring data, sector 27576, nr 1016, cmd response 0x900, card status 0x0
[  170.870000] blk_update_request: I/O error, dev mmcblk0, sector 28442
[  170.880000] Buffer I/O error on dev mmcblk0p1, logical block 3299, lost async page write
[  170.900000] blk_update_request: I/O error, dev mmcblk0, sector 28448
[  170.920000] Buffer I/O error on dev mmcblk0p1, logical block 3300, lost async page write
[  170.930000] blk_update_request: I/O error, dev mmcblk0, sector 28456
[  170.950000] Buffer I/O error on dev mmcblk0p1, logical block 3301, lost async page write
[  170.970000] blk_update_request: I/O error, dev mmcblk0, sector 28464
[  170.980000] Buffer I/O error on dev mmcblk0p1, logical block 3302, lost async page write
[  171.000000] blk_update_request: I/O error, dev mmcblk0, sector 28472
[  171.010000] Buffer I/O error on dev mmcblk0p1, logical block 3303, lost async page write
[  171.030000] blk_update_request: I/O error, dev mmcblk0, sector 28480
[  171.050000] Buffer I/O error on dev mmcblk0p1, logical block 3304, lost async page write
[  171.070000] blk_update_request: I/O error, dev mmcblk0, sector 28488
[  171.080000] Buffer I/O error on dev mmcblk0p1, logical block 3305, lost async page write
[  171.100000] blk_update_request: I/O error, dev mmcblk0, sector 28496
[  171.110000] Buffer I/O error on dev mmcblk0p1, logical block 3306, lost async page write
[  171.130000] blk_update_request: I/O error, dev mmcblk0, sector 28504
[  171.150000] Buffer I/O error on dev mmcblk0p1, logical block 3307, lost async page write
[  171.160000] blk_update_request: I/O error, dev mmcblk0, sector 28512
[  171.180000] Buffer I/O error on dev mmcblk0p1, logical block 3308, lost async page write
[  181.540000] ------------[ cut here ]------------
[  181.550000] WARNING: CPU: 1 PID: 2850 at fs/block_dev.c:67 bdev_inode_switch_bdi+0xc0/0xcc()
[  181.570000] Modules linked in: qcserial pppoe ppp_async option l2tp_ppp iptable_nat cdc_mbim usb_wwan usb_serial_simple sierra rndih
[  181.950000] CPU: 1 PID: 2850 Comm: dd Not tainted 3.18.23 #18
[  181.960000] Stack : 00000000 00000004 00000006 80059bc8 00000000 00000000 00000000 00000000
          803856e2 00000031 00000b22 00000000 00000043 00000001 802deb48 80342983
          00000b22 00000001 80384468 8f8a92d8 0004001e 80347410 802ea4ac 8005a714
          80346e60 80029374 00000003 802e458c 802e27cc 8d1a5da4 0004001e 001a5da4
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[  182.040000] Call Trace:
[  182.050000] [<80016144>] show_stack+0x50/0x84
[  182.060000] [<8015f9d8>] dump_stack+0x64/0x84
[  182.070000] [<8002947c>] warn_slowpath_common+0x84/0xb4
[  182.080000] [<80029534>] warn_slowpath_null+0x18/0x24
[  182.090000] [<800f28f4>] bdev_inode_switch_bdi+0xc0/0xcc
[  182.100000] [<800f375c>] __blkdev_put+0xc0/0x180
[  182.110000] [<800f41f4>] blkdev_close+0x1c/0x2c
[  182.120000] [<800c0894>] __fput+0xf8/0x1e4
[  182.130000] [<8003f784>] task_work_run+0xb0/0xdc
[  182.140000] [<800059ac>] work_notifysig+0x10/0x18
[  182.150000] 
[  182.160000] ---[ end trace 0c81e62827d0cddd ]---

comment:2 Changed 2 years ago by anonymous

This seems to fix it

diff --git a/target/linux/ramips/patches-3.18/0053-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch b/target/linux/ramips/patches-3.18/0053-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
index 2932eb6..5d09127 100644
--- a/target/linux/ramips/patches-3.18/0053-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
+++ b/target/linux/ramips/patches-3.18/0053-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
@@ -1958,7 +1958,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +	.dat_drv        = 4,
 +	.data_pins      = 4,
 +	.data_offset    = 0,
-+	.flags          = MSDC_SYS_SUSPEND | MSDC_WP_PIN_EN | MSDC_CD_PIN_EN | MSDC_REMOVABLE | MSDC_HIGHSPEED,
++	.flags          = MSDC_SYS_SUSPEND | MSDC_CD_PIN_EN | MSDC_REMOVABLE | MSDC_HIGHSPEED,
 +//	.flags          = MSDC_SYS_SUSPEND | MSDC_WP_PIN_EN | MSDC_CD_PIN_EN | MSDC_REMOVABLE,
 +};
 +
@@ -3907,7 +3907,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +
 +    if (msdc_do_request(mmc,mrq)) {  	
 +        if(host->hw->flags & MSDC_REMOVABLE && mrq->data && mrq->data->error) {
-+            //msdc_tune_request(mmc,mrq);                                    	
++            msdc_tune_request(mmc,mrq);                                    	
 +        }        	
 +    }
 +

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.