[PATCH] nvme-pci: disable write zeroes for SK Hynix BC901

Jim Lin 林志融 jim.lin at siliconmotion.com
Mon Nov 27 19:03:19 PST 2023


Hi Keith Busch

Thanks for your reply.
Changelog updated

Hi David, Hardaway

Please help to check this issue. Thanks.

Thx
BRs
Jim

--------------------------------------------------------------------------------------------------------------------------------------------------------
On Thu, Nov 23, 2023 at 06:06:42PM +0800, Jim.Lin wrote:
> SK Hynix BC901 drive write zero will cause Chromebook takes more than
> 20 mins to switch to developer mode "disable wrtie zero" can fix this issue and Sk Hynix has been verified.
>
> Signed-off-by: Jim.Lin <jim.lin at siliconmotion.com>

For the changelog, let's abbreviate the subject to something like:

  "nvme-pci: disable write zeroes for SK Hynix BC901"

> @@ -3394,6 +3394,8 @@ static const struct pci_device_id nvme_id_table[] = {
>               .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
>       { PCI_DEVICE(0x1c5c, 0x174a),   /* SK Hynix P31 SSD */
>               .driver_data = NVME_QUIRK_BOGUS_NID, },
> +     { PCI_DEVICE(0x1c5c, 0x1D59),   /* SK Hynix BC901 */
> +             .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },

Could we get an "Ack" from the vendor?
------------------------------------------------------------------------------------------------------------------------------------------------------------

-----Original Message-----
From: Jim.Lin <jim.chihjung.lin at gmail.com>
Sent: Tuesday, November 28, 2023 10:58 AM
To: kbusch at kernel.org
Cc: axboe at kernel.dk; hch at lst.de; sagi at grimberg.me; linux-nvme at lists.infradead.org; linux-kernel at vger.kernel.org; Jim Lin 林志融 <jim.lin at siliconmotion.com>; CJ Chen 陳群傑 <cj.chen at siliconmotion.com>; David Yeh 葉寰融 <david.yeh at siliconmotion.com>; hardaway.tseng at sk.com
Subject: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901

Please note that this email was sent from outside of SMI.

SK Hynix BC901 drive write zero will cause Chromebook takes more than 20 mins to switch to developer mode "disable write zeroes" can fix this issue and Sk Hynix has been verified.

Signed-off-by: Jim.Lin <jim.lin at siliconmotion.com>
---
 drivers/nvme/host/pci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 507bc149046d..f27202680741 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3394,6 +3394,8 @@ static const struct pci_device_id nvme_id_table[] = {
                .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
        { PCI_DEVICE(0x1c5c, 0x174a),   /* SK Hynix P31 SSD */
                .driver_data = NVME_QUIRK_BOGUS_NID, },
+       { PCI_DEVICE(0x1c5c, 0x1D59),   /* SK Hynix BC901 */
+               .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
        { PCI_DEVICE(0x15b7, 0x2001),   /*  Sandisk Skyhawk */
                .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
        { PCI_DEVICE(0x1d97, 0x2263),   /* SPCC */
--
2.25.1

********************************************************************************
CONFIDENTIALITY AND PROPRIETARY NOTICE: ALL RIGHTS RESERVED.
The information in this message (and any attachments) may contain confidential or proprietary information of the sender, her/his representing company, and its affiliated companies, and is private, privileged and confidential. It is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended and/or designated recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, saving, forwarding or copying of this message (including its attachments) is strictly prohibited. If you have received this email communication in error, please notify the sender immediately and delete this communication entirely and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies from your computer or any device) to avoid any legal problems. Thank you for your cooperation.
********************************************************************************
機密性及專有性警語:版權所有。
此電子郵件及其所有附件(如有之)所含之資訊可能含有寄件者及其所代表公司和其關係企業的機密資訊。除本電子郵件傳送之指定及/或特定對象,其他人非經寄件者許可不得揭露、複製、散佈本郵件及其所有附件。若您非此郵件被指定及/或特定的收件者,或誤收,或在任何原因未經授權的情形下收到本郵件,請勿揭曉本郵件內容予任何人,並即通知原寄件者,亦請自您的電腦完全刪除此信件和任何已列印之文件,以免徒增不必要之法律困擾。謝謝您的合作。


More information about the Linux-nvme mailing list