Skip to content

dattobd does not support loongarch64 #413

@liang-001

Description

@liang-001

hi, i meet a problem with dattobd whose version is 0.12.0 in loongarch64. I modify some code(regs->ip to regs->csr_era), so that it can be compiled successfully in loongarch64, and modprobe dattobd is ok. However, when i setup-snapshot, something wrong happen.

the dmesg's output is as follow:
[ 6806.246141] CPU: 2 PID: 236 Comm: kworker/2:1H Tainted: G D W O 4.19.0-loongson-3-desktop #7206
[ 6806.246142] Hardware name: Loongson LM-LS3A5000-7A1000-1w-V01-pc_A2101/LM-LS3A5000-7A1000-1w-V01-pc_A2101, BIOS KL.4.1H.LM.D.016.210607.R 06/07/2021
[ 6806.246394] Workqueue: kblockd blk_mq_run_work_fn
[ 6806.246396] pc 9000000000765f88 ra 9000000000765ee4 tp 900000045efbc000 sp 900000045efbfc90
[ 6806.246397] a0 0000000000000001 a1 900000046957f300 a2 0000000000000000 a3 900000046957f400
[ 6806.246398] a4 0000000000000001 a5 9000000000759bb0 a6 9000000001b27b62 a7 0000000000000032
[ 6806.246398] t0 0000000000000000 t1 0000000000000003 t2 0000000000000000 t3 900000046957f300
[ 6806.246399] t4 0000000000000000 t5 00000000000000b0 t6 0000000000000000 t7 0000000000000000
[ 6806.246400] t8 0000000000000000 u0 9000000478722b00 s9 000000000000000a s0 9000000478722b00
[ 6806.246401] s1 90000004789a4000 s2 000000000000000a s3 0000000000000000 s4 0000000000000001
[ 6806.246402] s5 90000004786a7df0 s6 0000000000000000 s7 0000000000000004 s8 9000000478722b40
[ 6806.246404] ra: 9000000000765ee4 blk_mq_end_request+0x2c/0xd8
[ 6806.246405] ERA: 9000000000765f88 blk_mq_end_request+0xd0/0xd8
[ 6806.246406] CRMD: 000000b0 (PLV0 -IE -DA +PG DACF=CC DACM=CC -WE)
[ 6806.246409] PRMD: 00000004 (PPLV0 +PIE -PWE)
[ 6806.246410] EUEN: 00000000 (-FPE -SXE -ASXE -BTE)
[ 6806.246412] ECFG: 00071c1c (LIE=2-4,10-12 VS=7)
[ 6806.246414] ESTAT: 000c0000 [BRK] (IS= ECode=12 EsubCode=0)
[ 6806.246416] PRID: 0014c010 (Loongson-64bit, Loongson-3A5000)
[ 6806.246416] Modules linked in: nfnetlink_queue nfnetlink_log nfnetlink dm_mod fuse udl bnep joydev st bluetooth ecdh_generic rfkill binfmt_misc vfat fat kvm sg efi_pstore ipmi_ssif snd_hda_intel ipmi_si sw_se_echip_drv efivars ipmi_devintf ipmi_msghandler uos_resources(O) uos_bluetooth_connection_control(O) ib_iser rdma_cm iw_cm ib_cm ib_core configfs iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi lightorange lightnut lightfig lightcherry filearmor(O) deepin_netmonitor(O) dattobd(O) efivarfs ip_tables x_tables autofs4 amdgpu mfd_core chash gpu_sched radeon r8168 rtc_efi sr_mod cdrom
[ 6806.246436] Process kworker/2:1H (pid: 236, threadinfo=000000004593ea0a, task=000000004d05d876)
[ 6806.246437] Stack : 9000000478722b00 90000004789a4000 900000045efbfd40 90000000007687f4
[ 6806.246438] 900000000700ee40 9000000000268cec 90000000013dff70 90000004786a7df0
[ 6806.246440] 9000000478722b00 9000000000791601 900000047871fe40 9000000001b23a80
[ 6806.246441] 9000000000db2e18 0000000000000000 90000004786a7df0 90000004789a6c00
[ 6806.246442] 900000045efbfd40 9000000478722b40 9000000478722b00 90000004789a4000
[ 6806.246444] 900000047799c0c0 900000000076dc60 900000045efbfd40 900000045efbfd40
[ 6806.246445] 0000000000000000 90000004789a4048 0000000000000001 90000004786a7df0
[ 6806.246447] 90000004789a4008 900000045efbfd90 90000004789a4000 900000000076e50c
[ 6806.246448] 900000045efbfd90 900000045efbfd90 900000000700ea80 90000004789a4040
[ 6806.246449] 900000047799c0c0 0000000000000000 90000004789a4000 9000000000766880
[ 6806.246451] ...
[ 6806.246452] Call Trace:
[ 6806.246454] [<9000000000765f88>] blk_mq_end_request+0xd0/0xd8
[ 6806.246456] [<90000000007687f0>] blk_mq_dispatch_rq_list+0x548/0x6c8
[ 6806.246458] [<900000000076dc5c>] blk_mq_do_dispatch_sched+0x6c/0x108
[ 6806.246460] [<900000000076e508>] blk_mq_sched_dispatch_requests+0x128/0x1d0
[ 6806.246462] [<900000000076687c>] __blk_mq_run_hw_queue+0xb4/0x170
[ 6806.246465] [<9000000000246650>] process_one_work+0x1b0/0x428
[ 6806.246467] [<9000000000246a40>] worker_thread+0x178/0x480
[ 6806.246470] [<900000000024de04>] kthread+0x12c/0x138
[ 6806.246474] [<90000000002030c8>] ret_from_kernel_thread+0x8/0x10
[ 6806.246475] Code: 53ff83ff 57fd43ff 53ffc7ff <002a0001> 03400000 0015002c 03400000 02ff8063 29c06061

[ 6806.246479] ---[ end trace 1f1d8e3ec18c0730 ]---

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions