git: ahci: add workarounds for Samsung Apple PCIe SSD (0x144d:0x1600)
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue May 5 15:23:08 PDT 2026
commit 8eea3a9ce6ec1d87185ee57f41389c2697e9a4ae
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date: Mon May 4 17:57:23 2026 +0000
ahci: add workarounds for Samsung Apple PCIe SSD (0x144d:0x1600)
Add ahci_samsung_apple_attach() following the VIA/ATI/NVidia named-function
pattern in ahci_devices[]. Sets AHCI_F_IGN_FR | AHCI_F_IGN_CR |
AHCI_F_FAST_COMRESET to work around the drive's non-compliant AHCI reset
behaviour on Apple PCIe.
AHCI_F_FAST_COMRESET reduces the three comreset stall sleeps from 1000 ms
each to 10 ms each, so the device comes up without hanging the AHCI init.
Summary of changes:
sys/bus/pci/pcidevs | 4 ++++
sys/dev/disk/ahci/ahci.c | 20 ++++++++++++--------
sys/dev/disk/ahci/ahci.h | 1 +
sys/dev/disk/ahci/ahci_attach.c | 18 +++++++++++++++++-
4 files changed, 34 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8eea3a9ce6ec1d87185ee57f41389c2697e9a4ae
--
DragonFly BSD source repository
More information about the Commits
mailing list