lkml.org 
[lkml]   [2023]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v13 12/12] PCI: ACPI: Limit the Intel specific opt-in to D3 to 2024
Date
Intel systems that need to have PCIe ports in D3 for low power idle
specify this by constraints on the ACPI PNP0D80 device. As this information
is queried, limit the DMI BIOS year check to stop at 2024. This will
allow future systems to rely on the constraints check to set up policy
like non-Intel systems do.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
v12->v13:
* New patch
---
drivers/pci/pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 0fc8d35154f97..5b9e11e254f34 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -3049,10 +3049,11 @@ bool pci_bridge_d3_possible(struct pci_dev *bridge)
return true;

/*
- * It is safe to put Intel PCIe ports from 2015 or newer
+ * It is safe to put Intel PCIe ports from 2015 to 2024
* to D3.
*/
if (bridge->vendor == PCI_VENDOR_ID_INTEL &&
+ dmi_get_bios_year() <= 2024 &&
dmi_get_bios_year() >= 2015)
return true;
break;
--
2.34.1
\
 
 \ /
  Last update: 2023-08-18 07:17    [W:0.157 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site