* [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901
@ 2023-11-28 2:57 Jim.Lin
2023-11-28 12:57 ` Christoph Hellwig
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Jim.Lin @ 2023-11-28 2:57 UTC (permalink / raw)
To: kbusch
Cc: axboe, hch, sagi, linux-nvme, linux-kernel, jim.lin, cj.chen,
david.yeh, hardaway.tseng
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@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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901
2023-11-28 2:57 [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901 Jim.Lin
@ 2023-11-28 12:57 ` Christoph Hellwig
[not found] ` <SEYPR01MB4341EFAA7D4B563BFF903B45FDBCA@SEYPR01MB4341.apcprd01.prod.exchangelabs.com>
2024-01-03 16:10 ` Keith Busch
2 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2023-11-28 12:57 UTC (permalink / raw)
To: Jim.Lin
Cc: kbusch, axboe, hch, sagi, linux-nvme, linux-kernel, jim.lin,
cj.chen, david.yeh, hardaway.tseng
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 <hch@lst.de>
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?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901
[not found] ` <71aae1b4cb0441d0940a5e536f4ffce0@sk.com>
@ 2023-11-29 0:09 ` Keith Busch
2023-12-20 6:04 ` Hardaway (Shih Hung) Tseng SKHYT
2024-01-03 7:36 ` Hardaway (Shih Hung) Tseng SKHYT
0 siblings, 2 replies; 6+ messages in thread
From: Keith Busch @ 2023-11-29 0:09 UTC (permalink / raw)
To: hardaway.tseng@sk.com
Cc: Jim Lin 林志融, Jim.Lin, axboe@kernel.dk,
hch@lst.de, sagi@grimberg.me, linux-nvme@lists.infradead.org,
linux-kernel@vger.kernel.org, CJ Chen 陳群傑,
David Yeh 葉寰融, sangan.han@sk.com,
ives.lu@sk.com
On Tue, Nov 28, 2023 at 11:51:42PM +0000, hardaway.tseng@sk.com 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901
2023-11-29 0:09 ` Keith Busch
@ 2023-12-20 6:04 ` Hardaway (Shih Hung) Tseng SKHYT
2024-01-03 7:36 ` Hardaway (Shih Hung) Tseng SKHYT
1 sibling, 0 replies; 6+ messages in thread
From: Hardaway (Shih Hung) Tseng SKHYT @ 2023-12-20 6:04 UTC (permalink / raw)
To: Keith Busch, Jim Lin 林志融,
David Yeh 葉寰融
Cc: Jim.Lin, axboe@kernel.dk, hch@lst.de, sagi@grimberg.me,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
CJ Chen 陳群傑,
한상안(HAN SANGAN) 대만법인,
Ives(Hsueh Hsien) Lu SKHYT
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: hardaway.tseng@sk.com
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' <kbusch@kernel.org>; Jim Lin 林志融 <jim.lin@siliconmotion.com>; David Yeh 葉寰融 <david.yeh@siliconmotion.com>
Cc: Jim.Lin <jim.chihjung.lin@gmail.com>; axboe@kernel.dk; hch@lst.de; sagi@grimberg.me; linux-nvme@lists.infradead.org; linux-kernel@vger.kernel.org; CJ Chen 陳群傑 <cj.chen@siliconmotion.com>; 한상안(HAN SANGAN) 대만법인 <sangan.han@sk.com>; Ives(Hsueh Hsien) Lu SKHYT <ives.lu@sk.com>
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: hardaway.tseng@sk.com
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 <kbusch@kernel.org>
Sent: Wednesday, November 29, 2023 8:10 AM
To: Hardaway (Shih Hung) Tseng SKHYT <hardaway.tseng@sk.com>
Cc: Jim Lin 林志融 <jim.lin@siliconmotion.com>; Jim.Lin <jim.chihjung.lin@gmail.com>; axboe@kernel.dk; hch@lst.de; sagi@grimberg.me; linux-nvme@lists.infradead.org; linux-kernel@vger.kernel.org; CJ Chen 陳群傑 <cj.chen@siliconmotion.com>; David Yeh 葉寰融 <david.yeh@siliconmotion.com>; 한상안(HAN SANGAN) 대만법인 <sangan.han@sk.com>; Ives(Hsueh Hsien) Lu SKHYT <ives.lu@sk.com>
Subject: Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901
On Tue, Nov 28, 2023 at 11:51:42PM +0000, hardaway.tseng@sk.com 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901
2023-11-29 0:09 ` Keith Busch
2023-12-20 6:04 ` Hardaway (Shih Hung) Tseng SKHYT
@ 2024-01-03 7:36 ` Hardaway (Shih Hung) Tseng SKHYT
1 sibling, 0 replies; 6+ messages in thread
From: Hardaway (Shih Hung) Tseng SKHYT @ 2024-01-03 7:36 UTC (permalink / raw)
To: Keith Busch, Jim Lin 林志融,
David Yeh 葉寰融
Cc: Jim.Lin, axboe@kernel.dk, hch@lst.de, sagi@grimberg.me,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
CJ Chen 陳群傑,
한상안(HAN SANGAN) 대만법인,
Ives(Hsueh Hsien) Lu SKHYT
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: hardaway.tseng@sk.com
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: hardaway.tseng@sk.com
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' <kbusch@kernel.org>; Jim Lin 林志融 <jim.lin@siliconmotion.com>; David Yeh 葉寰融 <david.yeh@siliconmotion.com>
Cc: Jim.Lin <jim.chihjung.lin@gmail.com>; axboe@kernel.dk; hch@lst.de; sagi@grimberg.me; linux-nvme@lists.infradead.org; linux-kernel@vger.kernel.org; CJ Chen 陳群傑 <cj.chen@siliconmotion.com>; 한상안(HAN SANGAN) 대만법인 <sangan.han@sk.com>; Ives(Hsueh Hsien) Lu SKHYT <ives.lu@sk.com>
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: hardaway.tseng@sk.com
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 <kbusch@kernel.org>
Sent: Wednesday, November 29, 2023 8:10 AM
To: Hardaway (Shih Hung) Tseng SKHYT <hardaway.tseng@sk.com>
Cc: Jim Lin 林志融 <jim.lin@siliconmotion.com>; Jim.Lin <jim.chihjung.lin@gmail.com>; axboe@kernel.dk; hch@lst.de; sagi@grimberg.me; linux-nvme@lists.infradead.org; linux-kernel@vger.kernel.org; CJ Chen 陳群傑 <cj.chen@siliconmotion.com>; David Yeh 葉寰融 <david.yeh@siliconmotion.com>; 한상안(HAN SANGAN) 대만법인 <sangan.han@sk.com>; Ives(Hsueh Hsien) Lu SKHYT <ives.lu@sk.com>
Subject: Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901
On Tue, Nov 28, 2023 at 11:51:42PM +0000, hardaway.tseng@sk.com 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901
2023-11-28 2:57 [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901 Jim.Lin
2023-11-28 12:57 ` Christoph Hellwig
[not found] ` <SEYPR01MB4341EFAA7D4B563BFF903B45FDBCA@SEYPR01MB4341.apcprd01.prod.exchangelabs.com>
@ 2024-01-03 16:10 ` Keith Busch
2 siblings, 0 replies; 6+ messages in thread
From: Keith Busch @ 2024-01-03 16:10 UTC (permalink / raw)
To: Jim.Lin
Cc: axboe, hch, sagi, linux-nvme, linux-kernel, jim.lin, cj.chen,
david.yeh, hardaway.tseng
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 <jim.lin@siliconmotion.com>
Thanks, applied to nvme-6.8.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-01-03 16:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-28 2:57 [PATCH] nvme-pci: disable write zeroes for SK Hynix BC901 Jim.Lin
2023-11-28 12:57 ` Christoph Hellwig
[not found] ` <SEYPR01MB4341EFAA7D4B563BFF903B45FDBCA@SEYPR01MB4341.apcprd01.prod.exchangelabs.com>
[not found] ` <71aae1b4cb0441d0940a5e536f4ffce0@sk.com>
2023-11-29 0:09 ` Keith Busch
2023-12-20 6:04 ` Hardaway (Shih Hung) Tseng SKHYT
2024-01-03 7:36 ` Hardaway (Shih Hung) Tseng SKHYT
2024-01-03 16:10 ` Keith Busch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox