Skip to content

Commit d14c273

Browse files
Tina HsuChristoph Hellwig
authored andcommitted
nvme-pci: disable Write Zeroes on Phison E3C/E4C
E3C/E4C SSDs do support the Write Zeroes command in theory, but have very bad performance when using it. As the firmware has been frozen for these products we can not expect firmware improvements for it, so disable Write Zeroes. Signed-off-by: Tina Hsu <tina_hsu@phison.corp-partner.google.com> [hch: update the commit message] Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent c292a33 commit d14c273

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/nvme/host/pci.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3475,6 +3475,10 @@ static const struct pci_device_id nvme_id_table[] = {
34753475
{ PCI_DEVICE(0x1987, 0x5016), /* Phison E16 */
34763476
.driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN |
34773477
NVME_QUIRK_BOGUS_NID, },
3478+
{ PCI_DEVICE(0x1987, 0x5019), /* phison E19 */
3479+
.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
3480+
{ PCI_DEVICE(0x1987, 0x5021), /* Phison E21 */
3481+
.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
34783482
{ PCI_DEVICE(0x1b4b, 0x1092), /* Lexar 256 GB SSD */
34793483
.driver_data = NVME_QUIRK_NO_NS_DESC_LIST |
34803484
NVME_QUIRK_IGNORE_DEV_SUBNQN, },

0 commit comments

Comments
 (0)