2023-11-28 02:58:03

by Jim.Lin

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

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 <[email protected]>
---
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


2023-11-28 12:57:38

by Christoph Hellwig

[permalink] [raw]
Subject: Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901

On Tue, Nov 28, 2023 at 10:57:37AM +0800, Jim.Lin wrote:
> 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.

Did you test this on an upstream kernel with

ommit 1b96f862ecccb3e6f950eba584bebf22955cecc5
Author: Christoph Hellwig <[email protected]>
Date: Sun Oct 30 16:50:15 2022 +0100

nvme: implement the DEAC bit for the Write Zeroes command

included? Or in ther words, does this drive not implement DEAC
or does it not work properly? What are the chances of actually
fixing the fimware to work properly? Also WZSL limit does the
drive report?

2023-11-29 00:14:39

by Keith Busch

[permalink] [raw]
Subject: Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901

On Tue, Nov 28, 2023 at 11:51:42PM +0000, [email protected] wrote:
> Hi Keith, Jim and team,
>
> Thanks for efforts!
>
> This is Hardaway from SK hynix, this software change has been tested and verified by ODM Compal, the testing result is pass, therefore, we would like to apply this update.

Great, thanks for confirming. I've got this queued up internally, but
want to check if Christoph's question could lead to a better outcome for
everyone. For reference, asked here:

https://lists.infradead.org/pipermail/linux-nvme/2023-November/043298.html

If you were already testing close to upstream, 6.2 or newer, then this
patch is already the best option.

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

Hi Keith,

Hope everything you are doing is well!

These days our teams tried several way to do further verification of this disable write zero patch for BC901, let me summarize as below :

1) The chrome image with this new write zero disable code built with 5.15, has been verified and passed (< 20min mode switching time)
2) Due to some limitations, Google team couldn't build a new chrome image with the suggested 6.5 or later version + this disable write zero patch for verification test.
3) Tried to build image with 5.15 + disable write zero patch + DEAC merged, system can run but the testing result is failed (> 20min mode switching, actually 27~29mins).

Above is all we could do here for the verification of this patch, could you share us your comment or suggestion?

Thank you so much!


Thanks & Regards,
Hardaway.


Hardaway Tseng/ Sr. Manager | SN-FAQE | SK hynix Semiconductor Taiwan
Address: 10F. No. 308, Zhifu Rd., Zhongshan Dist., Taipei City 10466, Taiwan
Office : +886-2-3518-2313/ Fax: +886-2-3518-2366/ Mobile: +886-919-803-458
Email: [email protected]

SK hynix Confidential
“This e-mail may contain confidential and/or privileged information. If you are not the intended recipient(or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.”


-----Original Message-----
From: Hardaway (Shih Hung) Tseng SKHYT
Sent: Wednesday, November 29, 2023 11:51 AM
To: 'Keith Busch' <[email protected]>; Jim Lin 林志融 <[email protected]>; David Yeh 葉寰融 <[email protected]>
Cc: Jim.Lin <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; CJ Chen 陳群傑 <[email protected]>; 한상안(HAN SANGAN) 대만법인 <[email protected]>; Ives(Hsueh Hsien) Lu SKHYT <[email protected]>
Subject: RE: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901

Hi Keith,

Thanks for head up Christoph's questions!
Our team will help us to answer them.

Hi Jim and David,
Thanks for your support!


Thanks & Regards,
Hardaway.


Hardaway Tseng/ Sr. Manager | SN-FAQE | SK hynix Semiconductor Taiwan
Address: 10F. No. 308, Zhifu Rd., Zhongshan Dist., Taipei City 10466, Taiwan Office : +886-2-3518-2313/ Fax: +886-2-3518-2366/ Mobile: +886-919-803-458
Email: [email protected]

SK hynix Confidential
“This e-mail may contain confidential and/or privileged information. If you are not the intended recipient(or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.”


-----Original Message-----
From: Keith Busch <[email protected]>
Sent: Wednesday, November 29, 2023 8:10 AM
To: Hardaway (Shih Hung) Tseng SKHYT <[email protected]>
Cc: Jim Lin 林志融 <[email protected]>; Jim.Lin <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; CJ Chen 陳群傑 <[email protected]>; David Yeh 葉寰融 <[email protected]>; 한상안(HAN SANGAN) 대만법인 <[email protected]>; Ives(Hsueh Hsien) Lu SKHYT <[email protected]>
Subject: Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901

On Tue, Nov 28, 2023 at 11:51:42PM +0000, [email protected] wrote:
> Hi Keith, Jim and team,
>
> Thanks for efforts!
>
> This is Hardaway from SK hynix, this software change has been tested and verified by ODM Compal, the testing result is pass, therefore, we would like to apply this update.

Great, thanks for confirming. I've got this queued up internally, but want to check if Christoph's question could lead to a better outcome for everyone. For reference, asked here:

https://lists.infradead.org/pipermail/linux-nvme/2023-November/043298.html

If you were already testing close to upstream, 6.2 or newer, then this patch is already the best option.

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

Hello Keith,

Hope everything you are doing is well!

These days our teams tried several way to do further verification of this disable write zero patch for BC901, let me summarize as below :

1) The chrome image with this new write zero disable code built with 5.15, has been verified and passed (< 20min mode switching time)
2) Due to some limitations, Google team couldn't build a new chrome image with the suggested 6.5 or later version + this disable write zero patch for verification test.
3) Tried to build image with 5.15 + disable write zero patch + DEAC merged, system can run but the testing result is failed (> 20min mode switching, actually 27~29mins).

Above is all we could do here for the verification of this patch, could you share us your comment or suggestion? Is it possible to merge and do upstream for this patch?

Thank you so much!


Thanks & Regards,
Hardaway.


Hardaway Tseng/ Sr. Manager | SN-FAQE | SK hynix Semiconductor Taiwan
Address: 10F. No. 308, Zhifu Rd., Zhongshan Dist., Taipei City 10466, Taiwan Office : +886-2-3518-2313/ Fax: +886-2-3518-2366/ Mobile: +886-919-803-458
Email: [email protected]

SK hynix Confidential
“This e-mail may contain confidential and/or privileged information. If you are not the intended recipient(or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.”

Thanks & Regards,
Hardaway.


Hardaway Tseng/ Sr. Manager | SN-FAQE | SK hynix Semiconductor Taiwan
Address: 10F. No. 308, Zhifu Rd., Zhongshan Dist., Taipei City 10466, Taiwan
Office : +886-2-3518-2313/ Fax: +886-2-3518-2366/ Mobile: +886-919-803-458
Email: [email protected]

SK hynix Confidential
“This e-mail may contain confidential and/or privileged information. If you are not the intended recipient(or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.”


-----Original Message-----
From: Hardaway (Shih Hung) Tseng SKHYT
Sent: Wednesday, November 29, 2023 11:51 AM
To: 'Keith Busch' <[email protected]>; Jim Lin 林志融 <[email protected]>; David Yeh 葉寰融 <[email protected]>
Cc: Jim.Lin <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; CJ Chen 陳群傑 <[email protected]>; 한상안(HAN SANGAN) 대만법인 <[email protected]>; Ives(Hsueh Hsien) Lu SKHYT <[email protected]>
Subject: RE: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901

Hi Keith,

Thanks for head up Christoph's questions!
Our team will help us to answer them.

Hi Jim and David,
Thanks for your support!


Thanks & Regards,
Hardaway.


Hardaway Tseng/ Sr. Manager | SN-FAQE | SK hynix Semiconductor Taiwan
Address: 10F. No. 308, Zhifu Rd., Zhongshan Dist., Taipei City 10466, Taiwan Office : +886-2-3518-2313/ Fax: +886-2-3518-2366/ Mobile: +886-919-803-458
Email: [email protected]

SK hynix Confidential
“This e-mail may contain confidential and/or privileged information. If you are not the intended recipient(or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.”


-----Original Message-----
From: Keith Busch <[email protected]>
Sent: Wednesday, November 29, 2023 8:10 AM
To: Hardaway (Shih Hung) Tseng SKHYT <[email protected]>
Cc: Jim Lin 林志融 <[email protected]>; Jim.Lin <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; CJ Chen 陳群傑 <[email protected]>; David Yeh 葉寰融 <[email protected]>; 한상안(HAN SANGAN) 대만법인 <[email protected]>; Ives(Hsueh Hsien) Lu SKHYT <[email protected]>
Subject: Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901

On Tue, Nov 28, 2023 at 11:51:42PM +0000, [email protected] wrote:
> Hi Keith, Jim and team,
>
> Thanks for efforts!
>
> This is Hardaway from SK hynix, this software change has been tested and verified by ODM Compal, the testing result is pass, therefore, we would like to apply this update.

Great, thanks for confirming. I've got this queued up internally, but want to check if Christoph's question could lead to a better outcome for everyone. For reference, asked here:

https://lists.infradead.org/pipermail/linux-nvme/2023-November/043298.html

If you were already testing close to upstream, 6.2 or newer, then this patch is already the best option.

2024-01-03 16:16:10

by Keith Busch

[permalink] [raw]
Subject: Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901

On Tue, Nov 28, 2023 at 10:57:37AM +0800, Jim.Lin wrote:
> 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 <[email protected]>

Thanks, applied to nvme-6.8.