All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ata: libata-core: Quirk INTEL SSDSC2KB480G8 max_sectors
@ 2026-12-03 14:11 Niklas Cassel
  2026-12-04  7:44 ` Damien Le Moal
  0 siblings, 1 reply; 2+ messages in thread
From: Niklas Cassel @ 2026-12-03 14:11 UTC (permalink / raw)
  To: Damien Le Moal, Niklas Cassel, John Garry, Johannes Thumshirn,
	Martin K. Petersen, Hannes Reinecke
  Cc: keyborad hero, stable, Jens Axboe, linux-ide

Commit 9b8b84879d4a ("block: Increase BLK_DEF_MAX_SECTORS_CAP") increased
the default max_sectors_kb from 1280 KiB to 4096 KiB.

INTEL SSDSC2KB480G8 with FW rev XCV10120 times out when sending I/Os of
size 4096 KiB:

  ata1.00: exception Emask 0x0 SAct 0x7fdcf806 SErr 0x0 action 0x6 frozen
  ata1.00: failed command: READ FPDMA QUEUED
  ata1.00: cmd 60/00:08:00:70:5c/20:00:01:00:00/40 tag 1 ncq dma 4194304 in
           res ... Emask 0x4 (timeout)
  ata1: hard resetting link

INTEL SSDSC2KG480G8 with the same FW rev has the same problem, and is
already quirked with ATA_QUIRK_MAX_SEC, with value 8191 (sectors).

Instead of adding new entries, extend the existing SSDSC2KG480G8 entries
to also match the SSDSC2KB480G8. The SSDSC2KB480G8 keeps
ATA_QUIRK_ZERO_AFTER_TRIM, which it previously got from the "INTEL*SSD*"
entry.

Reported-by: keyborad hero <xiaoshifeng521@gmail.com>
Closes: https://lore.kernel.org/linux-ide/CA+Yw5V+C-Ok0OHWV-9AfbSf+EejH54Z=0aSQgmmcGKjie5KM6w@mail.gmail.com/
Fixes: 9b8b84879d4a ("block: Increase BLK_DEF_MAX_SECTORS_CAP")
Cc: stable@vger.kernel.org
Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/ata/libata-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index d234c83e0463..cf574da88c7d 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4203,7 +4203,7 @@ static const struct ata_dev_quirk_value __ata_dev_max_sec_quirks[] = {
 	{ "LITEON CX1-JB*-HP",		NULL,		1024 },
 	{ "LITEON EP1-*",		NULL,		1024 },
 	{ "DELLBOSS VD",		"MV.R00-0",	8191 },
-	{ "INTEL SSDSC2KG480G8",	"XCV10120",	8191 },
+	{ "INTEL SSDSC2K[BG]480G8",	"XCV10120",	8191 },
 	{ "INTEL SSDSCKKB240G8",	"XC311102",	8191 },
 	{ },
 };
@@ -4472,7 +4472,7 @@ static const struct ata_dev_quirks_entry __ata_dev_quirks[] = {
 
 	{ "Micron*",			NULL,	ATA_QUIRK_ZERO_AFTER_TRIM },
 	{ "Crucial*",			NULL,	ATA_QUIRK_ZERO_AFTER_TRIM },
-	{ "INTEL SSDSC2KG480G8", "XCV10120",	ATA_QUIRK_ZERO_AFTER_TRIM |
+	{ "INTEL SSDSC2K[BG]480G8", "XCV10120",	ATA_QUIRK_ZERO_AFTER_TRIM |
 						ATA_QUIRK_MAX_SEC },
 	{ "INTEL*SSDSC2CT*",		NULL,	ATA_QUIRK_ZERO_AFTER_TRIM |
 						ATA_QUIRK_NO_FUA },
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ata: libata-core: Quirk INTEL SSDSC2KB480G8 max_sectors
  2026-12-03 14:11 [PATCH] ata: libata-core: Quirk INTEL SSDSC2KB480G8 max_sectors Niklas Cassel
@ 2026-12-04  7:44 ` Damien Le Moal
  0 siblings, 0 replies; 2+ messages in thread
From: Damien Le Moal @ 2026-12-04  7:44 UTC (permalink / raw)
  To: Niklas Cassel, John Garry, Johannes Thumshirn, Martin K. Petersen,
	Hannes Reinecke
  Cc: keyborad hero, stable, Jens Axboe, linux-ide

On 12/3/26 23:11, Niklas Cassel wrote:
> Commit 9b8b84879d4a ("block: Increase BLK_DEF_MAX_SECTORS_CAP") increased
> the default max_sectors_kb from 1280 KiB to 4096 KiB.
> 
> INTEL SSDSC2KB480G8 with FW rev XCV10120 times out when sending I/Os of
> size 4096 KiB:
> 
>   ata1.00: exception Emask 0x0 SAct 0x7fdcf806 SErr 0x0 action 0x6 frozen
>   ata1.00: failed command: READ FPDMA QUEUED
>   ata1.00: cmd 60/00:08:00:70:5c/20:00:01:00:00/40 tag 1 ncq dma 4194304 in
>            res ... Emask 0x4 (timeout)
>   ata1: hard resetting link
> 
> INTEL SSDSC2KG480G8 with the same FW rev has the same problem, and is
> already quirked with ATA_QUIRK_MAX_SEC, with value 8191 (sectors).
> 
> Instead of adding new entries, extend the existing SSDSC2KG480G8 entries
> to also match the SSDSC2KB480G8. The SSDSC2KB480G8 keeps
> ATA_QUIRK_ZERO_AFTER_TRIM, which it previously got from the "INTEL*SSD*"
> entry.
> 
> Reported-by: keyborad hero <xiaoshifeng521@gmail.com>
> Closes: https://lore.kernel.org/linux-ide/CA+Yw5V+C-Ok0OHWV-9AfbSf+EejH54Z=0aSQgmmcGKjie5KM6w@mail.gmail.com/
> Fixes: 9b8b84879d4a ("block: Increase BLK_DEF_MAX_SECTORS_CAP")
> Cc: stable@vger.kernel.org
> Signed-off-by: Niklas Cassel <cassel@kernel.org>

Looks OK to me.

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>

-- 
Damien Le Moal
Western Digital Research

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-04  7:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 14:11 [PATCH] ata: libata-core: Quirk INTEL SSDSC2KB480G8 max_sectors Niklas Cassel
2026-12-04  7:44 ` Damien Le Moal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.