HomeFreeBSD

ata_da: add quirk to disable NCQ TRIM for Samsung 860/870 SSDs

Description

ata_da: add quirk to disable NCQ TRIM for Samsung 860/870 SSDs

NCQ TRIM for Samsung 860/870 SSDs results in data corruption on systems
with some SATA controllers.

This can be easily reproduced using ZFS which uses TRIM and is able to
detect block content changes.

Linux bug report for this issue:
https://bugzilla.kernel.org/show_bug.cgi?id=201693

Since at present we can not limit a quirk based on the contorller / SIM,
apply the quirk in all cases.

Reviewed by: imp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D43961

Details

Provenance
avgAuthored on Feb 19 2024, 10:08 AM
Reviewer
imp
Differential Revision
D43961: ata_da: add quirk to disable NCQ TRIM for Samsung 860/870 SSDs
Parents
rG03cc3489a02d: ndp(8): increase buffer size in rtsock mode
Branches
Unknown
Tags
Unknown