Skip to content

Commit 5f64ae1

Browse files
floatiousdamien-lemoal
authored andcommitted
ata: libata-core: Quirk INTEL SSDSC2KG480G8 max_sectors
Commit 9b8b848 ("block: Increase BLK_DEF_MAX_SECTORS_CAP") increased the default max_sectors_kb from 1280 KiB to 4096 KiB. INTEL SSDSC2KG480G8 with FW rev XCV10120 times out when sending I/Os of size 4096 KiB. Enable ATA_QUIRK_MAX_SEC, with value 8191 (sectors) for this device, since any I/O with more sectors than that lead to I/O timeouts. With this, the INTEL SSDSC2KG480G8 is usable again. Link: https://lore.kernel.org/linux-ide/176839089913.2398366.61500945766820256@eldamar.lan/ Fixes: 9b8b848 ("block: Increase BLK_DEF_MAX_SECTORS_CAP") Signed-off-by: Niklas Cassel <cassel@kernel.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
1 parent bcbd8ef commit 5f64ae1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/ata/libata-core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4082,6 +4082,7 @@ static const struct ata_dev_quirk_value __ata_dev_max_sec_quirks[] = {
40824082
{ "LITEON CX1-JB*-HP", NULL, 1024 },
40834083
{ "LITEON EP1-*", NULL, 1024 },
40844084
{ "DELLBOSS VD", "MV.R00-0", 8191 },
4085+
{ "INTEL SSDSC2KG480G8", "XCV10120", 8191 },
40854086
{ },
40864087
};
40874088

@@ -4336,6 +4337,8 @@ static const struct ata_dev_quirks_entry __ata_dev_quirks[] = {
43364337

43374338
{ "Micron*", NULL, ATA_QUIRK_ZERO_AFTER_TRIM },
43384339
{ "Crucial*", NULL, ATA_QUIRK_ZERO_AFTER_TRIM },
4340+
{ "INTEL SSDSC2KG480G8", "XCV10120", ATA_QUIRK_ZERO_AFTER_TRIM |
4341+
ATA_QUIRK_MAX_SEC },
43394342
{ "INTEL*SSD*", NULL, ATA_QUIRK_ZERO_AFTER_TRIM },
43404343
{ "SSD*INTEL*", NULL, ATA_QUIRK_ZERO_AFTER_TRIM },
43414344
{ "Samsung*SSD*", NULL, ATA_QUIRK_ZERO_AFTER_TRIM },

0 commit comments

Comments
 (0)