Ata revalidation failures and COMRESET (errno -5 and -32)

the desktop has been wigging out today over two of my drives (SSD and HDD), alternately showing them as installed and disconnected using the Disks & Devices icon in the system tray.

currently KDE partition manager shows only the other two disks (one is for windows and the other on is where linux is installed), and i get this kind of ugly situation in config screen

or this one

and random drops of these disks from dolphin

i’ve double triple checked the cables to these drives and reseated them but the issue persists… when they work they work fine, but these random errors are making the system unusable

a new kernel update came across today which i applied but it didn’t help.

here is my about info

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.3
Kernel Version: 6.5.0-28-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-2600 CPU @ 3.40GHz
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 6800
Manufacturer: Gateway
Product Name: FX6850

and here is the output of sudo journalctl -b -0 -p3

Apr 19 08:47:32 FXPC kernel: hid-generic 0003:1532:026C.0004: No inputs registered, leaving
Apr 19 08:47:32 FXPC kernel: ata5.00: revalidation failed (errno=-5)
Apr 19 08:47:32 FXPC kernel: ata5.00: revalidation failed (errno=-5)
Apr 19 08:47:32 FXPC kernel: ata5.00: revalidation failed (errno=-5)
Apr 19 08:49:26 FXPC kernel: ata4.00: exception Emask 0x50 SAct 0x40000000 SErr 0x280900 action 0x6 frozen
Apr 19 08:49:26 FXPC kernel: ata4.00: irq_stat 0x09000000, interface fatal error
Apr 19 08:49:26 FXPC kernel: ata4: SError: { UnrecovData HostInt 10B8B BadCRC }
Apr 19 08:49:26 FXPC kernel: ata4.00: failed command: READ FPDMA QUEUED
Apr 19 08:49:26 FXPC kernel: ata4.00: cmd 60/08:f0:a8:7d:08/00:00:1e:00:00/40 tag 30 ncq dma 4096 in
                                      res 40/00:ff:ff:00:00/00:00:00:00:00/40 Emask 0x50 (ATA bus error)
Apr 19 08:49:26 FXPC kernel: ata4.00: status: { DRDY }
Apr 19 08:49:31 FXPC kernel: ata4.00: exception Emask 0x50 SAct 0xc0800201 SErr 0x280900 action 0x6 frozen
Apr 19 08:49:31 FXPC kernel: ata4.00: irq_stat 0x08000000, interface fatal error
Apr 19 08:49:31 FXPC kernel: ata4: SError: { UnrecovData HostInt 10B8B BadCRC }
Apr 19 08:49:31 FXPC kernel: ata4.00: failed command: READ FPDMA QUEUED
Apr 19 08:49:31 FXPC kernel: ata4.00: cmd 60/a8:00:60:77:aa/00:00:c1:00:00/40 tag 0 ncq dma 86016 in
                                      res 40/00:ff:ff:00:00/00:00:00:00:00/40 Emask 0x50 (ATA bus error)
Apr 19 08:49:31 FXPC kernel: ata4.00: status: { DRDY }
Apr 19 08:49:31 FXPC kernel: ata4.00: failed command: READ FPDMA QUEUED
Apr 19 08:49:31 FXPC kernel: ata4.00: cmd 60/e8:48:20:57:2a/00:00:c6:00:00/40 tag 9 ncq dma 118784 in
                                      res 40/00:ff:ff:00:00/00:00:00:00:00/40 Emask 0x50 (ATA bus error)
Apr 19 08:49:31 FXPC kernel: ata4.00: status: { DRDY }
Apr 19 08:49:31 FXPC kernel: ata4.00: failed command: READ FPDMA QUEUED
Apr 19 08:49:31 FXPC kernel: ata4.00: cmd 60/58:b8:00:77:aa/00:00:c1:00:00/40 tag 23 ncq dma 45056 in
                                      res 40/00:ff:ff:00:00/00:00:00:00:00/40 Emask 0x50 (ATA bus error)
Apr 19 08:49:31 FXPC kernel: ata4.00: status: { DRDY }
Apr 19 08:49:31 FXPC kernel: ata4.00: failed command: READ FPDMA QUEUED
Apr 19 08:49:31 FXPC kernel: ata4.00: cmd 60/08:f0:88:5b:2b/00:00:c6:00:00/40 tag 30 ncq dma 4096 in
                                      res 40/00:ff:ff:00:00/00:00:00:00:00/40 Emask 0x50 (ATA bus error)
Apr 19 08:49:31 FXPC kernel: ata4.00: status: { DRDY }
Apr 19 08:49:31 FXPC kernel: ata4.00: failed command: READ FPDMA QUEUED
Apr 19 08:49:31 FXPC kernel: ata4.00: cmd 60/08:f8:58:77:aa/00:00:c1:00:00/40 tag 31 ncq dma 4096 in
                                      res 40/00:ff:ff:00:00/00:00:00:00:00/40 Emask 0x50 (ATA bus error)
Apr 19 08:49:31 FXPC kernel: ata4.00: status: { DRDY }
Apr 19 08:49:31 FXPC kernel: I/O error, dev sdd, sector 3249174368 op 0x0:(READ) flags 0x80700 phys_seg 21 prio class 2
Apr 19 08:49:31 FXPC kernel: I/O error, dev sdd, sector 3324663584 op 0x0:(READ) flags 0x80700 phys_seg 29 prio class 2
Apr 19 08:49:31 FXPC kernel: I/O error, dev sdd, sector 3249174272 op 0x0:(READ) flags 0x80700 phys_seg 11 prio class 2
Apr 19 08:49:32 FXPC kernel: ata4.00: exception Emask 0x50 SAct 0x20000 SErr 0x280900 action 0x6 frozen
Apr 19 08:49:32 FXPC kernel: ata4.00: irq_stat 0x08000000, interface fatal error
Apr 19 08:49:32 FXPC kernel: ata4: SError: { UnrecovData HostInt 10B8B BadCRC }
Apr 19 08:49:32 FXPC kernel: ata4.00: failed command: READ FPDMA QUEUED
Apr 19 08:49:32 FXPC kernel: ata4.00: cmd 60/08:88:10:41:ab/00:00:bf:00:00/40 tag 17 ncq dma 4096 in
                                      res 40/00:ff:ff:00:00/00:00:00:00:00/40 Emask 0x50 (ATA bus error)
Apr 19 08:49:32 FXPC kernel: ata4.00: status: { DRDY }
Apr 19 08:49:57 FXPC kernel: ata4.00: revalidation failed (errno=-5)
Apr 19 08:50:07 FXPC kernel: device offline error, dev sdd, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 0 prio class 2
Apr 19 08:50:07 FXPC kernel: device offline error, dev sdd, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 0 prio class 2
Apr 19 08:50:07 FXPC kernel: EXT4-fs (sdd2): shut down requested (2)
Apr 19 08:50:07 FXPC kernel: Aborting journal on device sdd2-8.
Apr 19 08:50:07 FXPC kernel: Buffer I/O error on dev sdd2, logical block 34111488, lost sync page write
Apr 19 08:50:07 FXPC kernel: JBD2: I/O error when updating journal superblock for sdd2-8.
Apr 19 08:50:07 FXPC kernel: EXT4-fs (sdd4): shut down requested (2)
Apr 19 08:50:07 FXPC kernel: Aborting journal on device sdd4-8.
Apr 19 08:50:07 FXPC kernel: Buffer I/O error on dev sdd4, logical block 30965760, lost sync page write
Apr 19 08:50:07 FXPC kernel: JBD2: I/O error when updating journal superblock for sdd4-8.
Apr 19 08:50:08 FXPC kernel: ata3.00: Read log 0x30 page 0x00 failed, Emask 0x100
Apr 19 08:50:08 FXPC kernel: ata3.00: Read log 0x00 page 0x00 failed, Emask 0x40
Apr 19 08:50:08 FXPC kernel: ata3.00: failed to set xfermode (err_mask=0x40)
Apr 19 08:50:15 FXPC kernel: ata3.00: exception Emask 0x52 SAct 0x8000 SErr 0x880d00 action 0x6 frozen
Apr 19 08:50:15 FXPC kernel: ata3.00: irq_stat 0x08000000, interface fatal error
Apr 19 08:50:15 FXPC kernel: ata3: SError: { UnrecovData Proto HostInt 10B8B LinkSeq }
Apr 19 08:50:15 FXPC kernel: ata3.00: failed command: READ FPDMA QUEUED
Apr 19 08:50:15 FXPC kernel: ata3.00: cmd 60/08:78:58:f5:41/00:00:27:00:00/40 tag 15 ncq dma 4096 in
                                      res 40/00:01:00:4f:c2/00:00:00:00:00/00 Emask 0x52 (ATA bus error)

i normally only see the first line on boot.