I recently built a new machine
- Gigabyte Aorus X570i
- AMD Ryzen 7 3700X
- AMD Radeon 5700 XT
- Manjaro GNOME (latest)
- Linux Kernel 5.5
and I found out that file transfers fail when reading/writing large amounts of data.
I have a log from dmesg:
[ 7208.678740] audit: type=1130 audit(1580686010.900:131): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7218.807647] audit: type=1131 audit(1580686021.027:132): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7363.414814] audit: type=1130 audit(1580686165.640:133): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7399.048763] audit: type=1131 audit(1580686201.274:134): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7578.732385] sd 17:0:0:0: [sdd] tag#4 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
[ 7578.732389] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 5c 51 68 00 00 00 04 00 00 00
[ 7578.765714] scsi host17: uas_eh_device_reset_handler start
[ 7578.842594] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7578.863854] scsi host17: uas_eh_device_reset_handler success
[ 7609.491625] scsi host17: uas_eh_device_reset_handler start
[ 7609.491714] sd 17:0:0:0: [sdd] tag#2 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7609.491717] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 5c 51 68 00 00 00 04 00 00 00
[ 7609.565110] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7609.586419] scsi host17: uas_eh_device_reset_handler success
[ 7640.180767] scsi host17: uas_eh_device_reset_handler start
[ 7640.180822] sd 17:0:0:0: [sdd] tag#0 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7640.180827] sd 17:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 5c 51 68 00 00 00 04 00 00 00
[ 7640.254383] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7640.275686] scsi host17: uas_eh_device_reset_handler success
[ 7670.927489] scsi host17: uas_eh_device_reset_handler start
[ 7670.927543] sd 17:0:0:0: [sdd] tag#2 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7670.927545] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 5c 51 68 00 00 00 04 00 00 00
[ 7671.000280] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7671.021574] scsi host17: uas_eh_device_reset_handler success
[ 7701.625999] scsi host17: uas_eh_device_reset_handler start
[ 7701.626060] sd 17:0:0:0: [sdd] tag#3 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7701.626063] sd 17:0:0:0: [sdd] tag#3 CDB: Write(16) 8a 00 00 00 00 00 5c 51 68 00 00 00 04 00 00 00
[ 7701.699553] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7701.720803] scsi host17: uas_eh_device_reset_handler success
[ 7732.345921] scsi host17: uas_eh_device_reset_handler start
[ 7732.345985] sd 17:0:0:0: [sdd] tag#3 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7732.345988] sd 17:0:0:0: [sdd] tag#3 CDB: Write(16) 8a 00 00 00 00 00 5c 51 68 00 00 00 04 00 00 00
[ 7732.418708] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7732.440018] scsi host17: uas_eh_device_reset_handler success
[ 7732.440105] sd 17:0:0:0: [sdd] tag#3 FAILED Result: hostbyte=DID_RESET driverbyte=DRIVER_OK cmd_age=184s
[ 7732.440108] sd 17:0:0:0: [sdd] tag#3 CDB: Write(16) 8a 00 00 00 00 00 5c 51 68 00 00 00 04 00 00 00
[ 7732.440110] blk_update_request: I/O error, dev sdd, sector 1548838912 op 0x1:(WRITE) flags 0x4000 phys_seg 128 prio class 0
[ 7740.848483] INFO: task (ostnamed):9746 blocked for more than 122 seconds.
[ 7740.848486] Not tainted 5.5.0-1-MANJARO #1
[ 7740.848486] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 7740.848487] (ostnamed) D 0 9746 1 0x00000084
[ 7740.848490] Call Trace:
[ 7740.848499] ? __schedule+0x2e8/0x7a0
[ 7740.848502] schedule+0x46/0xf0
[ 7740.848505] rwsem_down_write_slowpath+0x2a2/0x530
[ 7740.848510] do_mount+0x3ea/0xa30
[ 7740.848513] ? syscall_trace_enter+0x19c/0x2e0
[ 7740.848515] __x64_sys_mount+0x8e/0xd0
[ 7740.848517] do_syscall_64+0x4e/0x150
[ 7740.848520] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 7740.848523] RIP: 0033:0x7f0c5d473e4e
[ 7740.848527] Code: Bad RIP value.
[ 7740.848528] RSP: 002b:00007fff60e83378 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
[ 7740.848530] RAX: ffffffffffffffda RBX: 0000557fdc246630 RCX: 00007f0c5d473e4e
[ 7740.848530] RDX: 0000000000000000 RSI: 0000557fdc246630 RDI: 0000000000000000
[ 7740.848531] RBP: 0000557fdc222c78 R08: 0000000000000000 R09: 0000000000000007
[ 7740.848532] R10: 0000000000001027 R11: 0000000000000206 R12: 0000000000000001
[ 7740.848533] R13: 00007fff60e833e0 R14: 0000557fdc1b4620 R15: 0000557fdc225288
[ 7763.047802] sd 17:0:0:0: [sdd] tag#5 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT
[ 7763.047806] sd 17:0:0:0: [sdd] tag#5 CDB: Write(16) 8a 00 00 00 00 00 5c 51 70 00 00 00 04 00 00 00
[ 7763.047880] sd 17:0:0:0: [sdd] tag#4 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
[ 7763.047884] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 ae 84 19 08 00 00 00 38 00 00
[ 7763.047917] sd 17:0:0:0: [sdd] tag#3 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD
[ 7763.047919] sd 17:0:0:0: [sdd] tag#3 CDB: Write(16) 8a 00 00 00 00 00 5c 51 6c 00 00 00 04 00 00 00
[ 7763.047928] sd 17:0:0:0: [sdd] tag#0 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD OUT
[ 7763.047929] sd 17:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 5c 51 74 00 00 00 04 00 00 00
[ 7763.071883] scsi host17: uas_eh_device_reset_handler start
[ 7763.144614] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7763.165918] scsi host17: uas_eh_device_reset_handler success
[ 7793.800377] scsi host17: uas_eh_device_reset_handler start
[ 7793.800607] sd 17:0:0:0: [sdd] tag#1 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7793.800610] sd 17:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 5c 51 70 00 00 00 04 00 00 00
[ 7793.800613] sd 17:0:0:0: [sdd] tag#2 uas_zap_pending 0 uas-tag 2 inflight: CMD
[ 7793.800614] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 ae 84 19 08 00 00 00 38 00 00
[ 7793.800616] sd 17:0:0:0: [sdd] tag#3 uas_zap_pending 0 uas-tag 3 inflight: CMD
[ 7793.800618] sd 17:0:0:0: [sdd] tag#3 CDB: Write(16) 8a 00 00 00 00 00 5c 51 6c 00 00 00 04 00 00 00
[ 7793.800620] sd 17:0:0:0: [sdd] tag#4 uas_zap_pending 0 uas-tag 4 inflight: CMD
[ 7793.800621] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 5c 51 74 00 00 00 04 00 00 00
[ 7793.873876] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7793.895167] scsi host17: uas_eh_device_reset_handler success
[ 7824.080402] scsi host17: uas_eh_device_reset_handler start
[ 7824.080666] sd 17:0:0:0: [sdd] tag#0 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7824.080670] sd 17:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 5c 51 70 00 00 00 04 00 00 00
[ 7824.080673] sd 17:0:0:0: [sdd] tag#1 uas_zap_pending 0 uas-tag 2 inflight: CMD
[ 7824.080675] sd 17:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 ae 84 19 08 00 00 00 38 00 00
[ 7824.080677] sd 17:0:0:0: [sdd] tag#2 uas_zap_pending 0 uas-tag 3 inflight: CMD
[ 7824.080679] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 5c 51 6c 00 00 00 04 00 00 00
[ 7824.080681] sd 17:0:0:0: [sdd] tag#3 uas_zap_pending 0 uas-tag 4 inflight: CMD
[ 7824.080683] sd 17:0:0:0: [sdd] tag#3 CDB: Write(16) 8a 00 00 00 00 00 5c 51 74 00 00 00 04 00 00 00
[ 7824.153169] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7824.174407] scsi host17: uas_eh_device_reset_handler success
[ 7855.232203] scsi host17: uas_eh_device_reset_handler start
[ 7855.232426] sd 17:0:0:0: [sdd] tag#4 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7855.232429] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 5c 51 70 00 00 00 04 00 00 00
[ 7855.232432] sd 17:0:0:0: [sdd] tag#0 uas_zap_pending 0 uas-tag 2 inflight: CMD
[ 7855.232433] sd 17:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 ae 84 19 08 00 00 00 38 00 00
[ 7855.232435] sd 17:0:0:0: [sdd] tag#1 uas_zap_pending 0 uas-tag 3 inflight: CMD
[ 7855.232437] sd 17:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 5c 51 6c 00 00 00 04 00 00 00
[ 7855.232439] sd 17:0:0:0: [sdd] tag#2 uas_zap_pending 0 uas-tag 4 inflight: CMD
[ 7855.232440] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 5c 51 74 00 00 00 04 00 00 00
[ 7855.305684] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7855.327033] scsi host17: uas_eh_device_reset_handler success
[ 7863.725508] INFO: task kworker/u64:6:9002 blocked for more than 122 seconds.
[ 7863.725510] Not tainted 5.5.0-1-MANJARO #1
[ 7863.725511] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 7863.725512] kworker/u64:6 D 0 9002 2 0x80004080
[ 7863.725519] Workqueue: writeback wb_workfn (flush-8:48)
[ 7863.725521] Call Trace:
[ 7863.725528] ? __schedule+0x2e8/0x7a0
[ 7863.725530] ? __wbt_done+0x30/0x30
[ 7863.725533] ? __wbt_done+0x30/0x30
[ 7863.725534] schedule+0x46/0xf0
[ 7863.725536] io_schedule+0x12/0x40
[ 7863.725538] rq_qos_wait+0x106/0x170
[ 7863.725540] ? karma_partition+0x240/0x240
[ 7863.725542] ? wbt_cleanup_cb+0x20/0x20
[ 7863.725544] wbt_wait+0xa1/0xe0
[ 7863.725547] __rq_qos_throttle+0x23/0x30
[ 7863.725549] blk_mq_make_request+0x14b/0x670
[ 7863.725553] generic_make_request+0xf2/0x350
[ 7863.725555] submit_bio+0x6e/0x1e0
[ 7863.725574] ext4_io_submit+0x49/0x60 [ext4]
[ 7863.725588] ext4_writepages+0x7e1/0x1030 [ext4]
[ 7863.725591] ? __wb_calc_thresh+0x130/0x130
[ 7863.725597] ? do_writepages+0x1c/0x60
[ 7863.725599] do_writepages+0x1c/0x60
[ 7863.725601] __writeback_single_inode+0x3d/0x3d0
[ 7863.725603] ? _raw_spin_lock+0x13/0x30
[ 7863.725605] writeback_sb_inodes+0x1f0/0x430
[ 7863.725609] __writeback_inodes_wb+0x4c/0xc0
[ 7863.725611] wb_writeback+0x2b8/0x360
[ 7863.725614] ? get_nr_inodes+0x32/0x50
[ 7863.725616] wb_workfn+0x407/0x4e0
[ 7863.725618] ? __switch_to_asm+0x40/0x70
[ 7863.725620] ? __switch_to_asm+0x34/0x70
[ 7863.725621] ? __switch_to_asm+0x40/0x70
[ 7863.725623] ? __switch_to_asm+0x34/0x70
[ 7863.725624] ? __switch_to_asm+0x40/0x70
[ 7863.725626] ? __switch_to_asm+0x34/0x70
[ 7863.725627] ? __switch_to_asm+0x40/0x70
[ 7863.725629] ? __switch_to_asm+0x34/0x70
[ 7863.725633] process_one_work+0x1e2/0x3b0
[ 7863.725635] worker_thread+0x4a/0x3d0
[ 7863.725638] kthread+0xfb/0x130
[ 7863.725639] ? process_one_work+0x3b0/0x3b0
[ 7863.725640] ? kthread_park+0x90/0x90
[ 7863.725642] ret_from_fork+0x22/0x40
[ 7863.725646] INFO: task jbd2/sdd1-8:9039 blocked for more than 122 seconds.
[ 7863.725647] Not tainted 5.5.0-1-MANJARO #1
[ 7863.725647] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 7863.725648] jbd2/sdd1-8 D 0 9039 2 0x80004080
[ 7863.725650] Call Trace:
[ 7863.725652] ? __schedule+0x2e8/0x7a0
[ 7863.725654] schedule+0x46/0xf0
[ 7863.725656] io_schedule+0x12/0x40
[ 7863.725658] wait_on_page_bit+0x139/0x230
[ 7863.725661] ? file_fdatawait_range+0x20/0x20
[ 7863.725663] __filemap_fdatawait_range+0x8b/0xe0
[ 7863.725667] filemap_fdatawait_range_keep_errors+0xe/0x40
[ 7863.725673] jbd2_journal_commit_transaction+0xb1d/0x19a0 [jbd2]
[ 7863.725675] ? __switch_to_asm+0x40/0x70
[ 7863.725679] ? wait_woken+0x70/0x70
[ 7863.725682] ? try_to_del_timer_sync+0x57/0x80
[ 7863.725687] kjournald2+0xe5/0x2b0 [jbd2]
[ 7863.725689] ? wait_woken+0x70/0x70
[ 7863.725691] kthread+0xfb/0x130
[ 7863.725695] ? commit_timeout+0x10/0x10 [jbd2]
[ 7863.725696] ? kthread_park+0x90/0x90
[ 7863.725698] ret_from_fork+0x22/0x40
[ 7863.725705] INFO: task (ostnamed):9746 blocked for more than 245 seconds.
[ 7863.725706] Not tainted 5.5.0-1-MANJARO #1
[ 7863.725706] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 7863.725707] (ostnamed) D 0 9746 1 0x00000084
[ 7863.725708] Call Trace:
[ 7863.725710] ? __schedule+0x2e8/0x7a0
[ 7863.725712] schedule+0x46/0xf0
[ 7863.725714] rwsem_down_write_slowpath+0x2a2/0x530
[ 7863.725718] do_mount+0x3ea/0xa30
[ 7863.725721] ? syscall_trace_enter+0x19c/0x2e0
[ 7863.725723] __x64_sys_mount+0x8e/0xd0
[ 7863.725726] do_syscall_64+0x4e/0x150
[ 7863.725728] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 7863.725730] RIP: 0033:0x7f0c5d473e4e
[ 7863.725734] Code: Bad RIP value.
[ 7863.725734] RSP: 002b:00007fff60e83378 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
[ 7863.725736] RAX: ffffffffffffffda RBX: 0000557fdc246630 RCX: 00007f0c5d473e4e
[ 7863.725737] RDX: 0000000000000000 RSI: 0000557fdc246630 RDI: 0000000000000000
[ 7863.725737] RBP: 0000557fdc222c78 R08: 0000000000000000 R09: 0000000000000007
[ 7863.725738] R10: 0000000000001027 R11: 0000000000000206 R12: 0000000000000001
[ 7863.725739] R13: 00007fff60e833e0 R14: 0000557fdc1b4620 R15: 0000557fdc225288
[ 7885.951636] scsi host17: uas_eh_device_reset_handler start
[ 7885.951857] sd 17:0:0:0: [sdd] tag#3 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7885.951860] sd 17:0:0:0: [sdd] tag#3 CDB: Write(16) 8a 00 00 00 00 00 ae 84 19 08 00 00 00 38 00 00
[ 7885.951862] sd 17:0:0:0: [sdd] tag#4 uas_zap_pending 0 uas-tag 2 inflight: CMD
[ 7885.951864] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 5c 51 6c 00 00 00 04 00 00 00
[ 7885.951866] sd 17:0:0:0: [sdd] tag#0 uas_zap_pending 0 uas-tag 3 inflight: CMD
[ 7885.951867] sd 17:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 5c 51 74 00 00 00 04 00 00 00
[ 7885.951869] sd 17:0:0:0: [sdd] tag#1 uas_zap_pending 0 uas-tag 4 inflight: CMD
[ 7885.951871] sd 17:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 5c 51 70 00 00 00 04 00 00 00
[ 7886.885046] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7886.906629] scsi host17: uas_eh_device_reset_handler success
[ 7918.364112] scsi host17: uas_eh_device_reset_handler start
[ 7918.364386] sd 17:0:0:0: [sdd] tag#4 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7918.364390] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 5c 51 74 00 00 00 04 00 00 00
[ 7918.364393] sd 17:0:0:0: [sdd] tag#0 uas_zap_pending 0 uas-tag 2 inflight: CMD
[ 7918.364395] sd 17:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 5c 51 70 00 00 00 04 00 00 00
[ 7918.364397] sd 17:0:0:0: [sdd] tag#1 uas_zap_pending 0 uas-tag 3 inflight: CMD
[ 7918.364399] sd 17:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 ae 84 19 08 00 00 00 38 00 00
[ 7918.364401] sd 17:0:0:0: [sdd] tag#2 uas_zap_pending 0 uas-tag 4 inflight: CMD
[ 7918.364403] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 5c 51 6c 00 00 00 04 00 00 00
[ 7918.437458] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7918.458837] scsi host17: uas_eh_device_reset_handler success
[ 7918.458925] sd 17:0:0:0: [sdd] tag#0 FAILED Result: hostbyte=DID_RESET driverbyte=DRIVER_OK cmd_age=186s
[ 7918.458927] sd 17:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 5c 51 70 00 00 00 04 00 00 00
[ 7918.458930] blk_update_request: I/O error, dev sdd, sector 1548840960 op 0x1:(WRITE) flags 0x4000 phys_seg 128 prio class 0
[ 7918.458945] sd 17:0:0:0: [sdd] tag#1 FAILED Result: hostbyte=DID_RESET driverbyte=DRIVER_OK cmd_age=186s
[ 7918.458946] sd 17:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 ae 84 19 08 00 00 00 38 00 00
[ 7918.458948] blk_update_request: I/O error, dev sdd, sector 2927892744 op 0x1:(WRITE) flags 0x800 phys_seg 7 prio class 0
[ 7918.458957] sd 17:0:0:0: [sdd] tag#2 FAILED Result: hostbyte=DID_RESET driverbyte=DRIVER_OK cmd_age=186s
[ 7918.458958] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 5c 51 6c 00 00 00 04 00 00 00
[ 7918.458959] blk_update_request: I/O error, dev sdd, sector 1548839936 op 0x1:(WRITE) flags 0x4000 phys_seg 128 prio class 0
[ 7918.458966] sd 17:0:0:0: [sdd] tag#4 FAILED Result: hostbyte=DID_RESET driverbyte=DRIVER_OK cmd_age=186s
[ 7918.458968] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 5c 51 74 00 00 00 04 00 00 00
[ 7918.458969] blk_update_request: I/O error, dev sdd, sector 1548841984 op 0x1:(WRITE) flags 0x4000 phys_seg 128 prio class 0
[ 7918.460386] audit: type=1130 audit(1580686720.697:135): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[ 7949.069851] sd 17:0:0:0: [sdd] tag#4 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
[ 7949.069855] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 5c 51 78 00 00 00 04 00 00 00
[ 7949.070118] sd 17:0:0:0: [sdd] tag#2 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD OUT
[ 7949.070122] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 5c 51 84 00 00 00 04 00 00 00
[ 7949.070161] sd 17:0:0:0: [sdd] tag#1 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT
[ 7949.070163] sd 17:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 5c 51 80 00 00 00 04 00 00 00
[ 7949.070192] sd 17:0:0:0: [sdd] tag#0 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
[ 7949.070193] sd 17:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 5c 51 7c 00 00 00 04 00 00 00
[ 7949.085589] scsi host17: uas_eh_device_reset_handler start
[ 7949.156738] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7949.178172] scsi host17: uas_eh_device_reset_handler success
[ 7979.801418] scsi host17: uas_eh_device_reset_handler start
[ 7979.801646] sd 17:0:0:0: [sdd] tag#2 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 7979.801649] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 5c 51 78 00 00 00 04 00 00 00
[ 7979.801652] sd 17:0:0:0: [sdd] tag#3 uas_zap_pending 0 uas-tag 2 inflight: CMD
[ 7979.801653] sd 17:0:0:0: [sdd] tag#3 CDB: Write(16) 8a 00 00 00 00 00 5c 51 84 00 00 00 04 00 00 00
[ 7979.801655] sd 17:0:0:0: [sdd] tag#4 uas_zap_pending 0 uas-tag 3 inflight: CMD
[ 7979.801657] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 5c 51 80 00 00 00 04 00 00 00
[ 7979.801659] sd 17:0:0:0: [sdd] tag#0 uas_zap_pending 0 uas-tag 4 inflight: CMD
[ 7979.801661] sd 17:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 5c 51 7c 00 00 00 04 00 00 00
[ 7979.872637] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 7979.894208] scsi host17: uas_eh_device_reset_handler success
[ 7986.602399] INFO: task jbd2/sdd1-8:9039 blocked for more than 245 seconds.
[ 7986.602401] Not tainted 5.5.0-1-MANJARO #1
[ 7986.602402] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 7986.602403] jbd2/sdd1-8 D 0 9039 2 0x80004080
[ 7986.602406] Call Trace:
[ 7986.602414] ? __schedule+0x2e8/0x7a0
[ 7986.602417] schedule+0x46/0xf0
[ 7986.602418] io_schedule+0x12/0x40
[ 7986.602422] wait_on_page_bit+0x139/0x230
[ 7986.602424] ? file_fdatawait_range+0x20/0x20
[ 7986.602427] __filemap_fdatawait_range+0x8b/0xe0
[ 7986.602431] filemap_fdatawait_range_keep_errors+0xe/0x40
[ 7986.602437] jbd2_journal_commit_transaction+0xb1d/0x19a0 [jbd2]
[ 7986.602440] ? __switch_to_asm+0x40/0x70
[ 7986.602444] ? wait_woken+0x70/0x70
[ 7986.602447] ? try_to_del_timer_sync+0x57/0x80
[ 7986.602452] kjournald2+0xe5/0x2b0 [jbd2]
[ 7986.602454] ? wait_woken+0x70/0x70
[ 7986.602457] kthread+0xfb/0x130
[ 7986.602461] ? commit_timeout+0x10/0x10 [jbd2]
[ 7986.602462] ? kthread_park+0x90/0x90
[ 7986.602464] ret_from_fork+0x22/0x40
[ 8010.521743] scsi host17: uas_eh_device_reset_handler start
[ 8010.521992] sd 17:0:0:0: [sdd] tag#1 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 8010.521996] sd 17:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 5c 51 7c 00 00 00 04 00 00 00
[ 8010.521998] sd 17:0:0:0: [sdd] tag#2 uas_zap_pending 0 uas-tag 2 inflight: CMD
[ 8010.522000] sd 17:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 5c 51 78 00 00 00 04 00 00 00
[ 8010.522002] sd 17:0:0:0: [sdd] tag#3 uas_zap_pending 0 uas-tag 3 inflight: CMD
[ 8010.522004] sd 17:0:0:0: [sdd] tag#3 CDB: Write(16) 8a 00 00 00 00 00 5c 51 84 00 00 00 04 00 00 00
[ 8010.522006] sd 17:0:0:0: [sdd] tag#4 uas_zap_pending 0 uas-tag 4 inflight: CMD
[ 8010.522008] sd 17:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 5c 51 80 00 00 00 04 00 00 00
[ 8010.595294] usb 4-4.3: reset SuperSpeedPlus Gen 2 USB device number 11 using xhci_hcd
[ 8010.616757] scsi host17: uas_eh_device_reset_handler success
I did a bad sector check, but all my drives came up clean, and this happens for any external HDD I connect to my system.
I did a bit of research, and came up with an issue which links to https://unix.stackexchange.com/questions/239782/connection-problem-with-usb3-external-storage-on-linux-uas-driver-problem and https://ubuntuforums.org/showthread.php?t=2307662 where they say it is a problem with USB 3.x <-> SATA controllers and the linux kernel. I have also used 3 different drive enclosures, but all of them have the same problem.
In that linked issue they say the solution is the blacklist the uas driver in the kernel. After blacklisting the module, my system was unable to recognize any USB storage devices.
Another possible solution was to disable USB autosuspend power management (https://ubuntuforums.org/showthread.php?t=2307662), but that made things worse. Usually I could transfer a few files before speed would degrade and lock up the transfer, but after disabling the autosuspend, the file transfer immediately locked up.
I have tested this on Linux 5.4 and 5.5 kernels and the same issue still persists.
Interestingly I never had this problem on my older machine (i5-6600K) and I did connect via USB 3.1 Gen 1. I had zero problems and that was running on Linux 5.4 kernel.
I would greatly appreciate any insight on solving this issue.