Using the Lenovo (PCIe gen3 x4) nvme SSD test, the system crashes randomly

I use Lenovo’s nvme SSD (PCIe GEN3 x4, 250g), and the system can recognize it. But when I do the hard disk test and write 20g files, the system will crash randomly.

I don’t know if it’s the driver problem, or the SSD problem, or the rockpi4b problem? I used rockpi4b v1.4.

Test command: sync; / usr / bin / time - P bash - C “(DD if = / dev / zero of = / MNT / files / test. DD BS = 1000K count = 20000; sync)”

Always prompt “kernel panic - not syncing: bad mode”, I don’t know what it means

Crash message:
rockpi-4b login: [ 427.302773] Bad mode in Error handler detected, code 0xbf000002 – SError
[ 427.306208] Kernel panic - not syncing: bad mode
[ 427.309410] CPU: 0 PID: 687 Comm: NetworkManager Not tainted 4.4.213-rockchip64 #7
[ 427.312939] Hardware name: ROCK PI 4B (DT)
[ 427.316175] Call trace:
[ 427.319256] [] dump_backtrace+0x0/0x1bc
[ 427.322645] [] show_stack+0x24/0x30
[ 427.325983] [] dump_stack+0xa8/0xd0
[ 427.329312] [] panic+0xe8/0x23c
[ 427.332624] [] bad_el0_sync+0x0/0xb0
[ 427.335944] [<0000007f7bf682d4>] 0x7f7bf682d4
[ 427.339158] CPU5: stopping
[ 427.342384] CPU: 5 PID: 0 Comm: swapper/5 Not tainted 4.4.213-rockchip64 #7
[ 427.346075] Hardware name: ROCK PI 4B (DT)
[ 427.349515] Call trace:
[ 427.352783] [] dump_backtrace+0x0/0x1bc
[ 427.356372] [] show_stack+0x24/0x30
[ 427.359922] [] dump_stack+0xa8/0xd0
[ 427.363461] [] handle_IPI+0x1d0/0x248
[ 427.366999] [] gic_handle_irq+0x17c/0x180
[ 427.370573] Exception stack(0xffffffc0f2b0fda0 to 0xffffffc0f2b0fed0)
[ 427.374266] fda0: 0000000000000000 0000000000000005 00000040eed9d000 0000000000000020
[ 427.378164] fdc0: 00ffffffffffffff 000000026b4fe5b3 00000000000074ae 0000000000000000
[ 427.382067] fde0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 427.385935] fe00: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 427.389729] fe20: 0000000000000000 0000000000000000 0000000030d00800 00000063a9605ff4
[ 427.393488] fe40: 0000000000000002 ffffffc0efb36a00 00000000ffffffff ffffff80093492f8
[ 427.397258] fe60: 0000000000000001 00000063a9602b8b ffffff80092e1620 0000000002c59244
[ 427.401022] fe80: 0000000000000000 ffffffc0f2b0fed0 ffffff800891dbbc ffffffc0f2b0fed0
[ 427.404773] fea0: ffffff800891dbc0 0000000060000145 ffffffc0f2b0fed0 ffffff800891dbbc
[ 427.408527] fec0: ffffffffffffffff 0000000000000002
[ 427.411999] [] el1_irq+0xb4/0x140
[ 427.415470] [] cpuidle_enter_state+0x1fc/0x254
[ 427.419068] [] cpuidle_enter+0x34/0x44
[ 427.422566] [] call_cpuidle+0x70/0x78
[ 427.426058] [] cpu_startup_entry+0x29c/0x2ac
[ 427.429620] [] secondary_start_kernel+0x190/0x1bc
[ 427.433237] [<0000000002c59188>] 0x2c59188
[ 427.436660] CPU1: stopping
[ 427.439724] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.213-rockchip64 #7
[ 427.443224] Hardware name: ROCK PI 4B (DT)
[ 427.446443] Call trace:
[ 427.449481] [] dump_backtrace+0x0/0x1bc
[ 427.452847] [] show_stack+0x24/0x30
[ 427.456192] [] dump_stack+0xa8/0xd0
[ 427.459514] [] handle_IPI+0x1d0/0x248
[ 427.462858] [] gic_handle_irq+0x17c/0x180
[ 427.466251] Exception stack(0xffffffc0f2affda0 to 0xffffffc0f2affed0)
[ 427.469702] fda0: 0000000000000000 0000000000000001 00000040eed4d000 0000000000000020
[ 427.473274] fdc0: 00ffffffffffffff 000000026b5d14b3 00000000000074b0 0000000000000001
[ 427.476810] fde0: 00000032b5593519 ffffff8008081800 0000000000001000 0000000000000000
[ 427.480302] fe00: 0000000034d5d91d 00000040eed4d000 ffffffc0f2af0e00 0000000000000000
[ 427.483811] fe20: 0000000000000000 0000000000000000 0000000030d00800 00000063a9611327
[ 427.487314] fe40: 0000000000000002 ffffffc0efb36200 0000000000000002 ffffff80093492f8
[ 427.490831] fe60: 0000000000000001 000000639b1cb055 ffffff80092e1620 0000000002c59244
[ 427.494392] fe80: 0000000000000000 ffffffc0f2affed0 ffffff800891dbbc ffffffc0f2affed0
[ 427.497975] fea0: ffffff800891dbc0 0000000060000145 ffffffc0f2affed0 ffffff800891dbbc
[ 427.501590] fec0: ffffffffffffffff 0000000000000002
[ 427.504924] [] el1_irq+0xb4/0x140
[ 427.508266] [] cpuidle_enter_state+0x1fc/0x254
[ 427.511696] [] cpuidle_enter+0x34/0x44
[ 427.515004] [] call_cpuidle+0x70/0x78
[ 427.518304] [] cpu_startup_entry+0x29c/0x2ac
[ 427.521644] [] secondary_start_kernel+0x190/0x1bc
[ 427.525042] [<0000000002c59188>] 0x2c59188
[ 427.528262] CPU2: stopping
[ 427.531351] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.4.213-rockchip64 #7
[ 427.534900] Hardware name: ROCK PI 4B (DT)
[ 427.538164] Call trace:
[ 427.541206] [] dump_backtrace+0x0/0x1bc
[ 427.544560] [] show_stack+0x24/0x30
[ 427.547873] [] dump_stack+0xa8/0xd0
[ 427.551201] [] handle_IPI+0x1d0/0x248
[ 427.554563] [] gic_handle_irq+0x17c/0x180
[ 427.557943] Exception stack(0xffffffc0f2b03da0 to 0xffffffc0f2b03ed0)
[ 427.561424] 3da0: 0000000000000000 0000000000000002 00000040eed61000 0000000000000020
[ 427.565084] 3dc0: 00ffffffffffffff 000000026b5d14b3 00000000000074b0 0000000000000002
[ 427.568724] 3de0: 00000032b5593519 ffffff8008081800 0000000000001000 0000000000000000
[ 427.572347] 3e00: 0000000034d5d91d 00000040eed61000 ffffffc0f2af1c00 0000000000000000
[ 427.575970] 3e20: 0000000000000000 0000000000000000 0000000030d00800 00000063a96158a7
[ 427.579601] 3e40: 0000000000000002 ffffffc0efb36400 0000000000000002 ffffff80093492f8
[ 427.583251] 3e60: 0000000000000001 000000639b8189d8 ffffff80092e1620 0000000002c59244
[ 427.586928] 3e80: 0000000000000000 ffffffc0f2b03ed0 ffffff800891dbbc ffffffc0f2b03ed0
[ 427.590619] 3ea0: ffffff800891dbc0 0000000060000145 ffffffc0f2b03ed0 ffffff800891dbbc
[ 427.594328] 3ec0: ffffffffffffffff 0000000000000002
[ 427.597734] [] el1_irq+0xb4/0x140
[ 427.601150] [] cpuidle_enter_state+0x1fc/0x254
[ 427.604657] [] cpuidle_enter+0x34/0x44
[ 427.608045] [] call_cpuidle+0x70/0x78
[ 427.611423] [] cpu_startup_entry+0x29c/0x2ac
[ 427.614849] [] secondary_start_kernel+0x190/0x1bc
[ 427.618328] [<0000000002c59188>] 0x2c59188
[ 427.621635] CPU4: stopping
[ 427.625035] CPU: 4 PID: 0 Comm: swapper/4 Not tainted 4.4.213-rockchip64 #7
[ 427.628887] Hardware name: ROCK PI 4B (DT)
[ 427.632449] Call trace:
[ 427.635794] [] dump_backtrace+0x0/0x1bc
[ 427.639447] [] show_stack+0x24/0x30
[ 427.643046] [] dump_stack+0xa8/0xd0
[ 427.646611] [] handle_IPI+0x1d0/0x248
[ 427.650172] [] gic_handle_irq+0x17c/0x180
[ 427.653756] Exception stack(0xffffffc0f2b0bda0 to 0xffffffc0f2b0bed0)
[ 427.657441] bda0: 0000000000000000 0000000000000004 00000040eed89000 0000000000000020
[ 427.661307] bdc0: 00ffffffffffffff 000000026b5d14b3 00000000000074b0 0000000000000000
[ 427.665150] bde0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 427.668963] be00: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 427.672729] be20: 0000000000000000 0000000000000000 0000000030d00800 00000063a9607904
[ 427.676467] be40: 0000000000000002 ffffffc0efb36800 00000000ffffffff ffffff80093492f8
[ 427.680235] be60: 0000000000000001 00000063a9603ee9 ffffff80092e1620 0000000002c59244
[ 427.684029] be80: 0000000000000000 ffffffc0f2b0bed0 ffffff800891dbbc ffffffc0f2b0bed0
[ 427.687842] bea0: ffffff800891dbc0 0000000060000145 ffffffc0f2b0bed0 ffffff800891dbbc
[ 427.691673] bec0: ffffffffffffffff 0000000000000002
[ 427.695205] [] el1_irq+0xb4/0x140
[ 427.698753] [] cpuidle_enter_state+0x1fc/0x254
[ 427.702386] [] cpuidle_enter+0x34/0x44
[ 427.705899] [] call_cpuidle+0x70/0x78
[ 427.709400] [] cpu_startup_entry+0x29c/0x2ac
[ 427.712943] [] secondary_start_kernel+0x190/0x1bc
[ 427.716544] [<0000000002c59188>] 0x2c59188
[ 427.719968] CPU3: stopping
[ 427.723064] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.4.213-rockchip64 #7
[ 427.726611] Hardware name: ROCK PI 4B (DT)
[ 427.729873] Call trace:
[ 427.732916] [] dump_backtrace+0x0/0x1bc
[ 427.736270] [] show_stack+0x24/0x30
[ 427.739576] [] dump_stack+0xa8/0xd0
[ 427.742847] [] handle_IPI+0x1d0/0x248
[ 427.746118] [] gic_handle_irq+0x17c/0x180
[ 427.749411] Exception stack(0xffffffc0f2b07da0 to 0xffffffc0f2b07ed0)
[ 427.752807] 7da0: 0000000000000000 0000000000000003 00000040eed75000 0000000000000020
[ 427.756381] 7dc0: 00ffffffffffffff 000000026b5d14b3 00000000000074b0 0000000000000003
[ 427.759937] 7de0: 00000032b5593519 ffffff8008081800 0000000000001000 0000000000000000
[ 427.763475] 7e00: 0000000034d5d91d 00000040eed75000 ffffffc0f2af2a00 0000000000000000
[ 427.767018] 7e20: 0000000000000000 0000000000000000 0000000030d00800 00000063a9619f4b
[ 427.770569] 7e40: 0000000000000002 ffffffc0efb36600 0000000000000002 ffffff80093492f8
[ 427.774135] 7e60: 0000000000000001 00000063a70c9108 ffffff80092e1620 0000000002c59244
[ 427.777730] 7e80: 0000000000000000 ffffffc0f2b07ed0 ffffff800891dbbc ffffffc0f2b07ed0
[ 427.781340] 7ea0: ffffff800891dbc0 0000000060000145 ffffffc0f2b07ed0 ffffff800891dbbc
[ 427.784964] 7ec0: ffffffffffffffff 0000000000000002
[ 427.788287] [] el1_irq+0xb4/0x140
[ 427.791618] [] cpuidle_enter_state+0x1fc/0x254
[ 427.795044] [] cpuidle_enter+0x34/0x44
[ 427.798349] [] call_cpuidle+0x70/0x78
[ 427.801643] [] cpu_startup_entry+0x29c/0x2ac
[ 427.804982] [] secondary_start_kernel+0x190/0x1bc
[ 427.808380] [<0000000002c59188>] 0x2c59188
[ 427.811600] CRU:
[ 427.814604] 00000000: 0000003b 00001101 80000000 00000108 00000007 00007f00 00000000 00000000
[ 427.818344] 00000020: 0000004b 00001301 80000000 00000108 00000007 00007f00 00000000 00000000
[ 427.822014] 00000040: 00000064 00001301 8000031f 00000108 00000007 00007f00 00000000 00000000
[ 427.825601] 00000060: 00000040 00002201 8000031f 00000108 00000007 00007f00 00000000 00000000
[ 427.829149] 00000080: 00000064 00001301 80000000 00000108 00000007 00007f00 00000000 00000000
[ 427.832673] 000000a0: 0000004b 00001301 80000000 00000108 00000007 00007f00 00000000 00000000
[ 427.836199] 000000c0: 000000c6 00001202 8000031f 00000008 00000007 00007f00 00000000 00000000
[ 427.839722] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.843212] 00000100: 00000100 00000606 00000140 00006303 00000083 00008581 00008320 00000141
[ 427.846673] 00000120: 00000181 00008181 00000141 00000141 00004141 00008340 00003185 00000201
[ 427.850119] 00000140: 0000041d 00000300 00004a87 0000033f 00009381 00008387 00001103 00005282
[ 427.853542] 00000160: 00008247 00000187 00001743 0000001f 00000380 00000300 00000380 00000000
[ 427.856945] 00000180: 00006300 00009200 00000200 00000200 00000200 00000200 00003f3f 00000081
[ 427.860333] 000001a0: 00000000 00000000 00004141 00000421 00008700 000002dc 00000004 00000381
[ 427.863708] 000001c0: 00000381 00000001 00000003 00000087 00000087 00000141 00000141 00008181
[ 427.867090] 000001e0: 00008323 00000007 00008f1f 00008f8f 00008f8f 00008787 00008787 00008787
[ 427.870475] 00000200: 000000cf 000000cf 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.873871] 00000220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.877224] 00000240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.880516] 00000260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.883771] 00000280: 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60
[ 427.887019] 000002a0: 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60 00000000 00000000 00000000 00000000
[ 427.890223] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.893430] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.896581] 00000300: 00000080 00000080 00000202 0000006b 00000c30 00000000 00000018 000001c0
[ 427.899719] 00000320: 0000efd8 0000f8ff 0000f0ff 0000c130 00000040 0000e203 00000000 00000000
[ 427.902881] 00000340: 00000505 00000505 00001000 00000000 00000200 0000000f 0000dfea 00003f00
[ 427.906050] 00000360: 0000ef60 00000020 00000ffe 000001f0 000000cc 00000f86 00000d08 000001b8
[ 427.909223] 00000380: 00002010 00000000 0000002a 00000000 00000000 00000000 00000000 00000000
[ 427.912353] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.915400] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.918403] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.921358] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.924263] 00000420: 00000000 00004040 00000000 00000014 00000000 00000000 00000000 00000000
[ 427.927124] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.929941] 00000460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.932700] 00000480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.935409] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.938054] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.940634] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.943170] 00000500: 00000000 00000000 00640064 00000000 00000003 00000000 00000000 00000000
[ 427.945666] 00000520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.948143] 00000540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.950589] 00000560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.952994] 00000580: 00000004 00000000 00000004 0000086c 00000004
[ 427.955153] PMU CRU:
[ 427.956915] 00000000: 000000a9 00001203 80000000 00000108 00000007 00007f00 00000000 00000000
[ 427.959385] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.961775] 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.964164] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.966545] 00000080: 0000060d 00001986 00000303 00000003 000002dc 00000600 0bb8ea60 00040050
[ 427.968954] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.971386] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.973812] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.976228] 00000100: 00000ffc 0000fb88 0000000f 00000000 00000024 00000000 00000000 00000000
[ 427.978636] 00000120: 00000000 00000000 00000000 00000000 00000003
[ 427.980816] PMU:
[ 427.982588] 00000000: 00000000 00000000 00000000 00000000 00000000 10df8000 10df8000 00000000
[ 427.985101] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 427.987586] 00000040: 00000000 00000000 00000000 00000000 00000000 98df833f 00000000 00000000
[ 427.990045] 00000060: 004007f9 004007f9 004007f9 00000010 00000000 00007e00 00000000 28800000
[ 427.992509] 00000080: 000003c0 00011940 00005dc0 000003c0 00005dc0 00000060 0000000f 00000018
[ 427.994987] 000000a0: 00000018 00000018 00000018 00000006 00000006 00005dc0 00005dc0 00005dc0
[ 427.997467] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 3fffffff 00000000
[ 427.999933] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 428.002398] Kernel Offset: disabled
[ 428.004453] Memory Limit: none
[ 428.006498] rockchip-thermal ff260000.tsadc: channal 0: temperature(43 C)
[ 428.008921] THERMAL REGS:
[ 428.010967] 00000000: 00000200 00030133 00000031 00000002 00000000 00000000 00000000 00000000
[ 428.013679] 00000020: 00000222 00000220 00000000 00000000 00000268 00000000 00000000 00000000
[ 428.016411] 00000040: 00000293 00000293 00000000 00000000 00000000 00000000 00000000 00000000
[ 428.019131] 00000060: 00000004 00000004 00000753 00000753 00000000 00000000 00000000 00000000
[ 428.021826] 00000080: 00000000 00000000
[ 428.024074] —[ end Kernel panic - not syncing: bad mode
[ 455.339230] Watchdog detected hard LOCKUP on cpu 1
[ 455.339724] ------------[ cut here ]------------
[ 455.344044] WARNING: at kernel/watchdog.c:352
[ 455.346466] Modules linked in: af_packet lz4hc lz4hc_compress zlib midgard_kbase bcmdhd rockchip_saradc lzo zram uio_pdrv_genirq uio ip_tables x_tables autofs4

You can discard everything after the “cut here” line; the kernel has already halted in panic at that point, anything beyond is meaningless. You can also highlight the output and click the “</>” button to improve readability.

@wei if your use M2 extention board look to next message
https://forum.radxa.com/t/rock-pi-4x-m-2-extension-board-v1-4-problem/2798

1 Like

Hi @rua1,I feel very much like the problem you said. I unfolded the “M2 extension board” horizontally. Now I have read 200g without any problem. I will try more

I’ve tried many ways. It’s really the problem of “m.2 extension board”, but I adjusted it in your way and found that it doesn’t work anymore… I don’t know how many people have this problem with the expansion board. Is it a quality problem or a design problem?