ata: libata-core: Add NOLPM/NONCQ/1.5Gbps quirk for PNY 1TB SATA SSD

Started by Thierry Vignaud on Oct 28, 2026 · 2 messages from 2 authors · Last reply Nov 7, 2026

Subsystems (2)

Maintainers (3)

COLD18d

open the first message on its own page

Message details and related content
Without that, I get the errors below.
For a year, I workaround it by disabling NCQ & reducing the speed by
booting with "libata.force=1:3.0Gbps,1:noncq".
It tried out disabling LPM only but I was still able to see errors.

Related: bko#222187

v3:
- add firmware revision check
v2:
- remove firmware revision from SSD name
- drop speed to 1.5Gbs (as there's no 3.0Gbps quirk)
- disable NCQ altogether (else we still see the errors from times to
  times)

Example of errors:
ata1.00: exception Emask 0x0 SAct 0x1c SErr 0x0 action 0x6 frozen
ata1.00: failed command: WRITE FPDMA QUEUED
ata1.00: cmd 61/00:10:00:a8:a9/20:00:6f:00:00/40 tag 2 ncq dma 4194304 ou
                        res 40/00:ff:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1.00: failed command: WRITE FPDMA QUEUED
ata1.00: cmd 61/40:18:30:ce:51/05:00:39:00:00/40 tag 3 ncq dma 688128 out
                        res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1.00: failed command: WRITE FPDMA QUEUED
ata1.00: cmd 61/50:20:70:d3:51/02:00:39:00:00/40 tag 4 ncq dma 303104 out
                        res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata1.00: configured for UDMA/133
ata1: EH complete
sd 0:0:0:0: [sda] tag#10 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK cmd_age=43s
sd 0:0:0:0: [sda] tag#10 CDB: Write(10) 2a 00 6e e6 88 00 00 10 00 00
I/O error, dev sda, sector 1860601856 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2
EXT4-fs warning (device sda1): ext4_end_bio:360: I/O error 10 writing to inode 33841832 starting block 232575232)
sd 0:0:0:0: [sda] tag#11 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK cmd_age=43s
sd 0:0:0:0: [sda] tag#11 CDB: Write(10) 2a 00 6e e6 98 00 00 20 00 00
I/O error, dev sda, sector 1860605952 op 0x1:(WRITE) flags 0x4000 phys_seg 64 prio class 2

18 more lines

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index dadcaf9ff462..cde9d367c20f 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4398,6 +4398,13 @@ static const struct ata_dev_quirks_entry __ata_dev_quirks[] = {
 	/* PNY CS900 (Phison PS3111-S11, DRAM-less) drops the link on DIPM */
 	{ "PNY CS900 1TB SSD",		NULL,	ATA_QUIRK_NOLPM },
 
+	/* PNY CS900 (variant) drops the link on DIPM and NCQ
+	 * This covers only the 1TB variant but other sizes are affected
+	 * according to forum posts */
+	{ "PNY 1TB SATA SSD",		"H220916a",	ATA_QUIRK_NOLPM |
+							ATA_QUIRK_1_5_GBPS |
+							ATA_QUIRK_NONCQ },
+
 	/* Silicon Motion models with LPM issues */
 	{ "MD619HXCLDE3TC",		"TCVAID", ATA_QUIRK_NOLPM },
 	{ "MD619GXCLDE3TC",		"TCV35D", ATA_QUIRK_NOLPM },
-- 
2.56.0
Message details and related content
On Wed, Oct 28, 2026 at 03:54:34PM +0100, Thierry Vignaud wrote:
Without that, I get the errors below.
For a year, I workaround it by disabling NCQ & reducing the speed by
booting with "libata.force=1:3.0Gbps,1:noncq".
It tried out disabling LPM only but I was still able to see errors.
The body should be readable without the subject, so please
rephrase "Without that,".

Related: bko#222187
If you want to reference this, use the Link or Closes tag, e.g.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=222187

See:
https://docs.kernel.org/process/submitting-patches.html

v3:
- add firmware revision check
v2:
- remove firmware revision from SSD name
- drop speed to 1.5Gbs (as there's no 3.0Gbps quirk)
- disable NCQ altogether (else we still see the errors from times to
  times)
The changelog should be after the "---" line, before the diffstat, see e.g.:
https://lore.kernel.org/linux-ide/179405688421.943559.6118296661484264171.b4-ty@kernel.org/T/#t


The patch is missing v3 in the subject, so right now it has the same subject
as the previous patches, which is incorrectly putting all versions is the same
thread:
https://lore.kernel.org/linux-ide/CAHSMvrFXEnsLKF_BSYWz=V=ht6++RocuHJO0tkhUmPcHHvXp5A@mail.gmail.com/T/#t

You need to generate it using e.g.:

$ git format-patch -v 3

Which will generate the proper subject.

quoted hunk
---
 drivers/ata/libata-core.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index dadcaf9ff462..cde9d367c20f 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4398,6 +4398,13 @@ static const struct ata_dev_quirks_entry __ata_dev_quirks[] = {
 	/* PNY CS900 (Phison PS3111-S11, DRAM-less) drops the link on DIPM */
 	{ "PNY CS900 1TB SSD",		NULL,	ATA_QUIRK_NOLPM },
 
+	/* PNY CS900 (variant) drops the link on DIPM and NCQ
+	 * This covers only the 1TB variant but other sizes are affected
+	 * according to forum posts */
+	{ "PNY 1TB SATA SSD",		"H220916a",	ATA_QUIRK_NOLPM |
+							ATA_QUIRK_1_5_GBPS |
+							ATA_QUIRK_NONCQ },
Does this drive really need 1.5 Gbps quirk?
Right now we only have 2 drives with the ATA_QUIRK_1_5_GBPS quirk.

Ideally, it would be nice if we could just have a single quirk.
If for some reason a single quirk is not sufficient, then two quirks
is fine... But three quirks?

I'm not saying that it is impossible, but it is very rare that we have
seen a drive that requires three different quirks.


Kind regards,
Niklas
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help