[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250313100658.15805-2-zhoushengqing@ttyinfo.com>
Date: Thu, 13 Mar 2025 10:06:56 +0000
From: Zhou Shengqing <zhoushengqing@...info.com>
To: Bjorn Helgaas <bhelgaas@...gle.com>
Cc: lenb@...nel.org,
linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-pci@...r.kernel.org,
rafael@...nel.org,
zhoushengqing@...info.com
Subject: [PATCH v5 2/2] Add acpi_check_dsm() for PCI _DSM definitions
add acpi_check_dsm() for DSM_PCI_POWER_ON_RESET_DELAY,
DSM_PCI_DEVICE_READINESS_DURATIONS.
Signed-off-by: Zhou Shengqing <zhoushengqing@...info.com>
---
drivers/pci/pci-acpi.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index 4f9e0548c96d..47caad28a133 100644
--- a/drivers/pci/pci-acpi.c
+++ b/drivers/pci/pci-acpi.c
@@ -1257,6 +1257,10 @@ void acpi_pci_add_bus(struct pci_bus *bus)
if (!pci_is_root_bus(bus))
return;
+ if (!acpi_check_dsm(ACPI_HANDLE(bus->bridge), &pci_acpi_dsm_guid, 3,
+ BIT(DSM_PCI_POWER_ON_RESET_DELAY)))
+ return;
+
obj = acpi_evaluate_dsm_typed(ACPI_HANDLE(bus->bridge), &pci_acpi_dsm_guid, 3,
DSM_PCI_POWER_ON_RESET_DELAY, NULL, ACPI_TYPE_INTEGER);
if (!obj)
@@ -1418,6 +1422,10 @@ static void pci_acpi_optimize_delay(struct pci_dev *pdev,
if (bridge->ignore_reset_delay)
pdev->d3cold_delay = 0;
+ if (!acpi_check_dsm(handle, &pci_acpi_dsm_guid, 3,
+ BIT(DSM_PCI_DEVICE_READINESS_DURATIONS)))
+ return;
+
obj = acpi_evaluate_dsm_typed(handle, &pci_acpi_dsm_guid, 3,
DSM_PCI_DEVICE_READINESS_DURATIONS, NULL,
ACPI_TYPE_PACKAGE);
--
2.39.2
Powered by blists - more mailing lists