From: Niklas Cassel <cassel@kernel.org>
To: Tobias Kriebisch <tobias.kriebisch@tecbeast.gmbh>
Cc: Damien Le Moal <dlemoal@kernel.org>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] ata: libata-core: Add NO_NCQ_TRIM quirk for Samsung PM893 (MZ7L3)
Date: Mon, 9 Nov 2026 15:56:41 +0100 [thread overview]
Message-ID: <avHfKaY-skamodEr@ryzen> (raw)
In-Reply-To: <20261109134541.3766394-1-tobias.kriebisch@tecbeast.gmbh>
Hello Tobias,
On Mon, Nov 09, 2026 at 02:45:41PM +0100, Tobias Kriebisch wrote:
> Samsung PM893 SATA SSDs (model prefix MZ7L3), the successor of the PM883
> (MZ7LH), misbehave during trim on an AMD 600 Series chipset AHCI
> controller (1022:43f6). The drives are three SAMSUNG MZ7L37T6HBLA-00A07
> with firmware JXTC304Q, and the kernel reports "Features: Trust
> NCQ-sndrcv" for them.
>
> During a full-device trim, queued DSM TRIM commands are aborted:
>
> ata3.00: exception Emask 0x0 SAct 0x40e0740 SErr 0x0 action 0x0
> ata3.00: irq_stat 0x40000001
> ata3.00: failed command: SEND FPDMA QUEUED
> ata3.00: cmd 64/01:88:00:00:00/00:00:00:00:00/a0 tag 17 ncq dma 512 out
> ata3.00: status: { DRDY ERR }
> ata3.00: error: { ABRT }
>
> In the same time windows, queued reads and writes time out and the link
> is hard reset:
>
> ata2.00: exception Emask 0x0 SAct 0x4 SErr 0x0 action 0x6 frozen
> ata2.00: failed command: READ FPDMA QUEUED
> ata2.00: cmd 60/08:10:c0:82:f0/00:00:d4:02:00/40 tag 2 ncq dma 4096 in
> ata2.00: status: { DRDY }
> ata2: hard resetting link
>
> Both kinds of errors occur on all three ports. In one case the system
> hung and panicked shortly after the trim started.
>
> Booting with libata.force=noncqtrim,nolpm makes the same full trim
> complete without any ATA errors.
>
> Add an entry for "SAMSUNG*MZ7L3*" with the same quirks as the existing
> PM883 entry, which was added in commit ead089577e0f ("ata: libata-core:
> Disable READ LOG DMA EXT for Samsung MZ7LH") for SEND FPDMA QUEUED
> failures on AMD controllers.
>
> Only ATA_QUIRK_NO_NCQ_TRIM and ATA_QUIRK_NO_LPM_ON_ATI_AND_AMD (the
> equivalent of noncqtrim and nolpm on this controller) were tested.
> ATA_QUIRK_ZERO_AFTER_TRIM and ATA_QUIRK_NO_NCQ_ON_ATI mirror the PM883
> entry. ATA_QUIRK_NO_NCQ_ON_ATI only applies to ATI (1002) controllers,
> which were not available for testing.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Tobias Kriebisch <tobias.kriebisch@tecbeast.gmbh>
> ---
>
> Notes:
> The patch itself was only build-tested (defconfig,
> drivers/ata/libata-core.o on top of for-7.4-fixes) and has not been
> booted. The runtime test was the equivalent
> libata.force=noncqtrim,nolpm on 6.18.60.
6.18 was released a year ago.
Please boot the latest kernel, 7.4-rc2, and verify that the problem still
exists.
If the problem still exist on the latest kernel, apply the minimal set of
quirks needed to fix the problem.
And yes, build and boot a kernel with your patch to verify that the problem
is actually solved. (Don't take for granted that your patch will behave the
same as libata.force.)
Kind regards,
Niklas
prev parent reply other threads:[~2026-11-09 14:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 13:45 Tobias Kriebisch
2026-11-09 14:56 ` Niklas Cassel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=avHfKaY-skamodEr@ryzen \
--to=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=tobias.kriebisch@tecbeast.gmbh \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®