| Summary: | ata: NCQ_DSM_TRIM trim method for Seagate IronWolf 110 SATA SSD hangs drives | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Alexey Koscheev <freebsd> | ||||||
| Component: | kern | Assignee: | freebsd-fs (Nobody) <fs> | ||||||
| Status: | Closed FIXED | ||||||||
| Severity: | Affects Some People | CC: | bsdimp, fs, imp | ||||||
| Priority: | --- | Keywords: | needs-patch, needs-qa | ||||||
| Version: | 12.3-RELEASE | Flags: | koobs:
maintainer-feedback?
(imp) imp: mfc-stable13+ |
||||||
| Hardware: | amd64 | ||||||||
| OS: | Any | ||||||||
| See Also: | https://reviews.freebsd.org/D4609 | ||||||||
| Attachments: |
|
||||||||
Added (from what I can tell) in base 298002 by imp@ via https://reviews.freebsd.org/D4609 (request feedback) @Reporter Does setting kern.cam.da.*.delete_method to alternative values suppress the behaviour? Can you send camcontrol adaX identify and send the results so I can add a quirk? (In reply to Kubilay Kocak from comment #2) Workaround is: kern.cam.ada.X.delete_method=DSM_TRIM. Created attachment 234108 [details]
camcontrol identify
(In reply to Warner Losh from comment #3) I added the attachment ("camcontrol identify"). Sorry for the delay. I'll try to get this committed before 13.next. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a6cef617660a424fcaa8343787f96d0ae720a284 commit a6cef617660a424fcaa8343787f96d0ae720a284 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2024-02-19 05:10:55 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-02-19 05:18:38 +0000 ada: Another NCQ Trim instability drive The Seagate IronWolf 110 SATA SSD drive has been reported to be unstable with NCQ trim enabled. PR: 264139 Sponsored by: Netflix sys/cam/ata/ata_da.c | 5 +++++ 1 file changed, 5 insertions(+) Fixed in -current, will MFC to 14, 13 but it may be too late for 13.3. ^Triage: 12.x is OBE. I should have cleaned this up earlier. A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=47fff7407c22c2c4b36b4f9f27ddfa70bb8f3fee commit 47fff7407c22c2c4b36b4f9f27ddfa70bb8f3fee Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2024-02-19 05:10:55 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-03-12 04:46:28 +0000 ada: Another NCQ Trim instability drive The Seagate IronWolf 110 SATA SSD drive has been reported to be unstable with NCQ trim enabled. PR: 264139 Sponsored by: Netflix (cherry picked from commit a6cef617660a424fcaa8343787f96d0ae720a284) sys/cam/ata/ata_da.c | 5 +++++ 1 file changed, 5 insertions(+) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=6063683eb83ad7f96850869ffe3d12c6db2dcbb9 commit 6063683eb83ad7f96850869ffe3d12c6db2dcbb9 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2024-04-29 02:34:51 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-04-29 02:35:12 +0000 ada: Another NCQ Trim instability drive The Seagate IronWolf 110 SATA SSD drive has been reported to be unstable with NCQ trim enabled. PR: 264139 Sponsored by: Netflix (cherry picked from commit a6cef617660a424fcaa8343787f96d0ae720a284) sys/cam/ata/ata_da.c | 5 +++++ 1 file changed, 5 insertions(+) All merged. |
Created attachment 234095 [details] messages.txt I have ssd Seagate IronWolf 110 SATA SSD ZA1920NM10001. smartctl -a output: Model Family: Seagate IronWolf 110 SATA SSD Device Model: ZA1920NM10001 Serial Number: *** LU WWN Device Id: 5 000c50 03ea095a7 Firmware Version: SF44011J User Capacity: 1,920,383,410,176 bytes [1.92 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: Solid State Device TRIM Command: Available, deterministic, zeroed Device is: In smartctl database 7.3/5319 ATA Version is: ACS-4, ACS-2 T13/2015-D revision 3 SATA Version is: SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sun May 22 01:04:13 2022 MSK SMART support is: Available - device has SMART capability. SMART support is: Enabled By default kernel selects NCQ_DSM_TRIM as delete method for trim. This leads to unstable work of drives (freezes). Log messages are attached. Workaround is: kern.cam.ada.X.delete_method=DSM_TRIM. I suppose sys/cam/ata/ata_da.c need to be changed.