nvme-pci: Add sleep quirk for Samsung 990 Evo
PATCH 1/1 nvme-pci: Add sleep quirk for Samsung 990 Evo
From: Georg Gottleuber <[email protected]>
On some TUXEDO platforms, a Samsung 990 Evo NVMe leads to a high power consumption in s2idle sleep (2-3 watts).
This patch applies 'Force No Simple Suspend' quirk to achieve a sleep with a lower power consumption, typically around 0.5 watts.
--- drivers/nvme/host/pci.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/nvme/host/pci.c +11 -0
@@ -2917,6 +2917,17 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev) dmi_match(DMI_BOARD_NAME, "NS5x_7xPU") || dmi_match(DMI_BOARD_NAME, "PH4PRX1_PH6PRX1"))return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND ; + }else if (pdev->vendor ==0x144d && pdev->device ==0xa80d ) { +/* +* Exclude Samsung 990 Evo from NVME_QUIRK_SIMPLE_SUSPEND +* because of high power consumption (> 2 Watt) in s2idle +* sleep. Only some boards with Intel CPU are affected. +*/ +if (dmi_match (DMI_BOARD_NAME ,"GMxPXxx" ) || +dmi_match (DMI_BOARD_NAME ,"PH4PG31" ) || +dmi_match (DMI_BOARD_NAME ,"PH4PRX1_PH6PRX1" ) || +dmi_match (DMI_BOARD_NAME ,"PH6PG01_PH6PG71" )) +return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND ; }return 0 ;
Signature · 1 line
2.34.1
Christoph Hellwig
maintainerQuoted 7 lines · Werner Sembach
From: Georg Gottleuber <[email protected]>
On some TUXEDO platforms, a Samsung 990 Evo NVMe leads to a high power consumption in s2idle sleep (2-3 watts).
This patch applies 'Force No Simple Suspend' quirk to achieve a sleep with a lower power consumption, typically around 0.5 watts.
Does this only apply to a specific SSD or all SSDs on this platform? How do these platforms even get into the conditional? Probably through acpi_storage_d3 setting, which probably is set incorrectly for the platform? Any chance to just fix that?
Am 02.04.24 um 15:16 schrieb Christoph Hellwig:
Quoted 6 lines · Werner Sembach
Quoted 5 lines
From: Georg Gottleuber <[email protected]>
On some TUXEDO platforms, a Samsung 990 Evo NVMe leads to a high power consumption in s2idle sleep (2-3 watts).
Quoted 7 lines
Quoted 2 lines
This patch applies 'Force No Simple Suspend' quirk to achieve a sleep with a lower power consumption, typically around 0.5 watts.
Does this only apply to a specific SSD or all SSDs on this platform? How do these platforms even get into the conditional? Probably through
acpi_storage_d3setting, which probably is set incorrectly for the platform? Any chance to just fix that?
Yes, this only apply to a specific SSD. I tested these SSDs (on PH4PRX1_PH6PRX1):
* Kingston NV1, SNVS250G
* Samsung 980, MZ-V8V500
* Samsung 970 Evo, S46DNX0K900454D
* Samsung 980 Pro, S69ENX0T709932L
S2idle consumes around 0.4 watts with these SSDs. But with a Samsung 990 Evo s2idle on this platform consumes 3.7 to 4.4 watts (6.8 vs 6.5 kernel).
With my quirk s2idle sleep consumption is at the same level of all other SSDs tested.
Other boards have different values (a bit less drastic: factor 3 to 8).
All measurements were taken with the battery disconnected and a modified adapter plug.
Because of the isolated problems with this SSD I have not debugged acpi_storage_d3. Do you think that would make sense?
Kind regards,
Georg Gottleuber
Keith Busch
maintainerQuoted 22 lines · Georg Gottleuber
Am 02.04.24 um 15:16 schrieb Christoph Hellwig:
Quoted 6 lines · Werner Sembach
Quoted 5 lines
From: Georg Gottleuber <[email protected]>
On some TUXEDO platforms, a Samsung 990 Evo NVMe leads to a high power consumption in s2idle sleep (2-3 watts).
Quoted 7 lines
Quoted 2 lines
This patch applies 'Force No Simple Suspend' quirk to achieve a sleep with a lower power consumption, typically around 0.5 watts.
Does this only apply to a specific SSD or all SSDs on this platform? How do these platforms even get into the conditional? Probably through
acpi_storage_d3setting, which probably is set incorrectly for the platform? Any chance to just fix that?Yes, this only apply to a specific SSD. I tested these SSDs (on
PH4PRX1_PH6PRX1):
* Kingston NV1, SNVS250G
* Samsung 980, MZ-V8V500
* Samsung 970 Evo, S46DNX0K900454D
* Samsung 980 Pro, S69ENX0T709932L
Quoted 2 lines
S2idle consumes around 0.4 watts with these SSDs. But with a Samsung 990 Evo s2idle on this platform consumes 3.7 to 4.4 watts (6.8 vs 6.5 kernel).
For all these different SSDs you tested in this platform, do you see the "platform quirk: setting simple suspend" in the dmesg? I just want to confirm if the platform is changing the reported acpi_storage_d3 value for different SSD models or if they're all the same.
Am 02.04.24 um 18:08 schrieb Keith Busch:
Quoted 23 lines · Georg Gottleuber
Quoted 22 lines
Am 02.04.24 um 15:16 schrieb Christoph Hellwig:
Quoted 6 lines · Werner Sembach
Quoted 5 lines
From: Georg Gottleuber <[email protected]>
On some TUXEDO platforms, a Samsung 990 Evo NVMe leads to a high power consumption in s2idle sleep (2-3 watts).
Quoted 7 lines
Quoted 2 lines
This patch applies 'Force No Simple Suspend' quirk to achieve a sleep with a lower power consumption, typically around 0.5 watts.
Does this only apply to a specific SSD or all SSDs on this platform? How do these platforms even get into the conditional? Probably through
acpi_storage_d3setting, which probably is set incorrectly for the platform? Any chance to just fix that?Yes, this only apply to a specific SSD. I tested these SSDs (on
PH4PRX1_PH6PRX1):
* Kingston NV1, SNVS250G
* Samsung 980, MZ-V8V500
* Samsung 970 Evo, S46DNX0K900454D
* Samsung 980 Pro, S69ENX0T709932L
Quoted 7 lines
Quoted 2 lines
S2idle consumes around 0.4 watts with these SSDs. But with a Samsung 990 Evo s2idle on this platform consumes 3.7 to 4.4 watts (6.8 vs 6.5 kernel).
For all these different SSDs you tested in this platform, do you see the "platform quirk: setting simple suspend" in the dmesg? I just want to confirm if the platform is changing the reported
acpi_storage_d3value for different SSD models or if they're all the same.
Yes, without my quirk for all tested SSDs (including Samsung 990 Evo) "platform quirk: setting simple suspend" is printed in dmesg.
Hi,
(hope Thunderbird supports In-Reply-To via mailto links)
wanted to give this thread a gentle push
Kind regards,
Werner