Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-pci: add NVME_QUIRK_NO_FUA for Kingston KC3000 w/Phison E18 controller
@ 2026-12-03 21:49 Daniel Scheller via B4 Relay
  2026-12-03 21:59 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Scheller via B4 Relay @ 2026-12-03 21:49 UTC (permalink / raw)
  To: Keith Busch, Jens Axboe, Christoph Hellwig, Sagi Grimberg
  Cc: linux-nvme, Daniel Scheller

From: Daniel Scheller <d.scheller@gmx.net>

Reports indicate that newer Kingston KC3000 variants using the Phison E18
controller and firmware EIFK51.2 fail to enter low-power states after FUA
writes, resulting in increased idle power consumption and temperatures.

Disabling FUA has been reported to work around this issue.

Apply the existing NVME_QUIRK_NO_FUA quirk for these devices.

Also, add a note to the NVME_QUIRK_NO_FUA definition that FUA may also
cause other issues besides high latency.

Link: https://bugs.launchpad.net/ubuntu/+source/nvme-cli/+bug/2064042
Link: https://unix.stackexchange.com/questions/793790/how-do-i-debug-nvme-ssd-heating-while-idle-when-booting-from-it
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
---
I personally have three such NVMe drives in use (two 2TB variants running
in a homelab server, one 1TB variant on a Raspberry Pi 5). All three have
firmware EIFK51.2 installed, and all exhibited the same overheating
behavior without NO_FUA:

* After the initial drive initialization and completion of those initial
  write workloads, temperatures remained at 70 degrees Celsius or higher
  even while the drives were idle.
* After applying the NVME_QUIRK_NO_FUA quirk to the KC3000 PCI ID, idle
  temperatures settled at around 30-33 degrees Celsius.
* Temperatures increase normally on disk load but return to normal idle
  levels afterwards.
---
 drivers/nvme/host/nvme.h | 5 +++--
 drivers/nvme/host/pci.c  | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 2543e52d6358..6843d033e3bd 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -194,8 +194,9 @@ enum nvme_quirks {
 	NVME_QUIRK_ADMIN_PAGE_ALIGN		= (1 << 23),
 
 	/*
-	 * The device is extremely slow on FUA writes but fast on Flush;
-	 * do not advertise FUA so the block layer emulates it.
+	 * The device is extremely slow on FUA writes but fast on Flush, or
+	 * causes other unwanted behavior; do not advertise FUA so the block
+	 * layer emulates it.
 	 */
 	NVME_QUIRK_NO_FUA			= (1 << 24),
 };
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 076603df01ab..951f65afd3fe 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -4449,7 +4449,8 @@ static const struct pci_device_id nvme_id_table[] = {
 	{ PCI_DEVICE(0x2646, 0x2263),   /* KINGSTON A2000 NVMe SSD  */
 		.driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
 	{ PCI_DEVICE(0x2646, 0x5013),   /* Kingston KC3000, Kingston FURY Renegade */
-		.driver_data = NVME_QUIRK_NO_SECONDARY_TEMP_THRESH, },
+		.driver_data = NVME_QUIRK_NO_SECONDARY_TEMP_THRESH |
+				NVME_QUIRK_NO_FUA, },
 	{ 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 */

---
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
change-id: 20261203-nvme-kc3000-nofua-bc671dafd38f

Best regards,
--  
Daniel Scheller <d.scheller@gmx.net>




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nvme-pci: add NVME_QUIRK_NO_FUA for Kingston KC3000 w/Phison E18 controller
  2026-12-03 21:49 [PATCH] nvme-pci: add NVME_QUIRK_NO_FUA for Kingston KC3000 w/Phison E18 controller Daniel Scheller via B4 Relay
@ 2026-12-03 21:59 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-12-03 21:59 UTC (permalink / raw)
  To: Daniel Scheller; +Cc: linux-nvme

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] nvme-pci: overly broad NVME_QUIRK_NO_FUA scope on shared PCI
  ID 0x2646:0x5013
--

commit 21ed8122f300ef8dc2870da3c07c622cb2a5a319
Author: Daniel Scheller <d.scheller@gmx.net>

nvme-pci: add NVME_QUIRK_NO_FUA for Kingston KC3000 w/Phison E18 controller

This patch adds NVME_QUIRK_NO_FUA to the PCI ID 0x2646:0x5013 entry in
nvme_id_table and updates the comment on NVME_QUIRK_NO_FUA in
drivers/nvme/host/nvme.h.

Link: https://bugs.launchpad.net/ubuntu/+source/nvme-cli/+bug/2064042
Link: https://unix.stackexchange.com/questions/793790/how-do-i-debug-nvme-ssd-heating-while-idle-when-booting-from-it

> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> index 076603df01abb..951f65afd3fe5 100644
> --- a/drivers/nvme/host/pci.c
> +++ b/drivers/nvme/host/pci.c
> @@ -4449,7 +4449,8 @@ static const struct pci_device_id nvme_id_table[] = {
>  	{ PCI_DEVICE(0x2646, 0x2263),   /* KINGSTON A2000 NVMe SSD  */
>  		.driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
>  	{ PCI_DEVICE(0x2646, 0x5013),   /* Kingston KC3000, Kingston FURY Renegade */
> -		.driver_data = NVME_QUIRK_NO_SECONDARY_TEMP_THRESH, },
> +		.driver_data = NVME_QUIRK_NO_SECONDARY_TEMP_THRESH |
> +				NVME_QUIRK_NO_FUA, },

[Severity: Medium]
Should NVME_QUIRK_NO_FUA be scoped more narrowly than PCI ID 0x2646:0x5013?

The commit message describes an idle power issue on Kingston KC3000 drives
running firmware EIFK51.2, but this PCI ID is shared with Kingston FURY
Renegade as well as other KC3000 firmware revisions.

Clearing BLK_FEAT_FUA in nvme_update_ns_info_block() forces every REQ_FUA
write (such as O_DSYNC or journal commits) on unaffected drives through
blk_insert_flush() post-flush emulation, turning single-command FUA writes
into serialized write plus whole-cache flush commands.

Unless all models and firmware revisions sharing 0x2646:0x5013 are affected,
consider matching vid, mn, and fr in core_quirks[] in
drivers/nvme/host/core.c instead (for example vid 0x2646 and fr "EIFK51.2").

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-nvme-kc3000-nofua-v1-1-6639a5aadcf1@gmx.net?part=1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-03 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 21:49 [PATCH] nvme-pci: add NVME_QUIRK_NO_FUA for Kingston KC3000 w/Phison E18 controller Daniel Scheller via B4 Relay
2026-12-03 21:59 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox