[PATCH] nvme-pci-disable-write-zeros-support-on-kingston-SSD

Xander Li posted 1 patch 3 years, 6 months ago
drivers/nvme/host/pci.c | 10 ++++++++++
1 file changed, 10 insertions(+)
mode change 100644 => 100755 drivers/nvme/host/pci.c
[PATCH] nvme-pci-disable-write-zeros-support-on-kingston-SSD
Posted by Xander Li 3 years, 6 months ago
---
 drivers/nvme/host/pci.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
 mode change 100644 => 100755 drivers/nvme/host/pci.c

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
old mode 100644
new mode 100755
index 98864b853eef..d08c8c854f3a
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3503,6 +3503,16 @@ static const struct pci_device_id nvme_id_table[] = {
 		.driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
 	{ PCI_DEVICE(0x2646, 0x2263),   /* KINGSTON A2000 NVMe SSD  */
 		.driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
+	{ PCI_DEVICE(0x2646, 0x5018),   /* KINGSTON OM8SFP4xxxxP OS21012 NVMe SSD */
+		.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
+	{ PCI_DEVICE(0x2646, 0x5016),   /* KINGSTON OM3PGP4xxxxP OS21011 NVMe SSD */
+		.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
+	{ PCI_DEVICE(0x2646, 0x501A),   /* KINGSTON OM8PGP4xxxxP OS21005 NVMe SSD */
+		.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
+	{ PCI_DEVICE(0x2646, 0x501B),   /* KINGSTON OM8PGP4xxxxQ OS21005 NVMe SSD */
+		.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
+	{ PCI_DEVICE(0x2646, 0x501E),   /* KINGSTON OM3PGP4xxxxQ OS21011 NVMe SSD */
+		.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
 	{ PCI_DEVICE(0x1e4B, 0x1001),   /* MAXIO MAP1001 */
 		.driver_data = NVME_QUIRK_BOGUS_NID, },
 	{ PCI_DEVICE(0x1e4B, 0x1002),   /* MAXIO MAP1002 */
-- 
2.25.1
Re: [PATCH] nvme-pci-disable-write-zeros-support-on-kingston-SSD
Posted by Bart Van Assche 3 years, 6 months ago
On 9/30/22 02:14, Xander Li wrote:
> [ ... ]

corp-partner.google.com e-mail addresses must not be used for posting 
patches. Please use your kingston.com e-mail address when posting patches.

Thanks,

Bart.
Re: [PATCH] nvme-pci-disable-write-zeros-support-on-kingston-SSD
Posted by Christoph Hellwig 3 years, 6 months ago
Please write a proper changelog and use a proper subject line.

On Fri, Sep 30, 2022 at 02:14:01AM -0700, Xander Li wrote:
> ---
>  drivers/nvme/host/pci.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>  mode change 100644 => 100755 drivers/nvme/host/pci.c

... and don't change file modes.