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

(cherry picked from commit c01af41c3c8fdd570764ff9b6bfbad6ac9ca1664)

Details

Provenance
avgAuthored on Feb 19 2024, 10:08 AM
Parents
rG2e88c5c4b426: scsi_da: add 4K quirks for Samsung SSD 860 and 870
Branches
Unknown
Tags
Unknown