You are not logged in.

#1 2025-11-06 12:19:02

Mr.Smith1974
Member
From: St. Petersburg, Russia
Registered: 2013-04-13
Posts: 40

SATA/AHCI issues on AMD B850M + Ryzen 9700X kernel 6.17.7 - ata1.0

Hi,

since upgrading to 6.17 (both 6.17.6 and 6.17.7-arch1) I get sporadic ATA timeouts on **every** SATA device attached to the chipset AHCI controller.  NVMe (M.2) is unaffected.

Hardware
--------
CPU:     AMD Ryzen 7 9700X
MB:      MSI MAG B850M MORTAR WIFI  (BIOS A.30)
SATA:    AMD 600-series AHCI (00:0d.0 1022:43f6) ─ ports 0-3
Disks:   WDC WD20SPZX-22U     2 TB  (XFS, /mnt/volume_data_2)
         Kingston SKC6002     2 TB  (btrfs, /mnt/volume_data_3)
         Samsung 850 EVO    500 GB  (NTFS, data only)
All disks pass SMART.

Kernel messages (typical burst)
-------------------------------
ata1: hard resetting link
ata1.00: exception Emask 0x0 SAct 0x40120000 SErr 0x50000 action 0x6 frozen
ata1: SError: { PHYRdyChg CommWake }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/20:88:.../40 tag 17 ncq dma 16384 in
        res 40/00:00:00:4f:c2/... Emask 0x4 (timeout)
ata1.00: status: { DRDY }
... (identical for tags 20,30) ...
ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete

Frequency: 1–3 bursts per hour under light desktop load.
Boot-time time-outs on /dev/disk/by-uuid/... are also seen occasionally.

Conclusion
----------
Plain regression in 6.17 AHCI/NCQ code path on AMD 600-series chipsets.
Upstream commit 74f9e3ab2c75 ("ahci: fix ncq timeout on AMD gen5") already addresses this and is included in 6.18-rc1.

Request: please back-port the above patch to 6.17-arch until 6.18 reaches [core].

Offline

Board footer

Powered by FluxBB