Skip to content

Add support for drivers to decide bridge D3 policy

Mario Limonciello linux-acpi linux-pci linux-pm platform-driver-x86 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v14 patches 5 repliesSuperseded

Changes in v2 from the cover letter

* Pick up tags
* Rebase on v6.7-rc4

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4PCI: Make d3cold_allowed sysfs attribute read onlyDocumentation/ABI/testing/sysfs-bus-pci drivers/pci/pci-acpi.c drivers/pci/pci-sysfs.c +2 more+6 -180 replies
2/4PCI: Refresh root ports in pci_bridge_d3_update()drivers/pci/pci.c+8 -13 replies
3/4ACPI: x86: s2idle: Export symbol for fetching constraints for module usedrivers/acpi/x86/s2idle.c+1 -00 replies
4/4platform/x86/amd: pmc: Add support for using constraints to decide D3 policydrivers/platform/x86/amd/pmc/pmc.c+57 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchRafael J. WysockiHans de Goede
1/4A-b
2/4
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] Add support for drivers to decide bridge D3 policy

The policy for whether PCI bridges are allowed to select D3 is dictated by empirical results that are enumerated into pci_bridge_d3_possible().

In Windows this behaves differently in that Windows internal policy is not used for devices when a power engine plugin driver provided by the SOC vendor is installed. This driver is used to decide the policy in those cases.

This series implements a system that lets drivers register such a policy control as well. It isn't activated for any SOCs by default.

This is heavily leveraged from the work in [1]

[1] https://lore.kernel.org/platform-driver-x86/[email protected]/

v1->v2:
* Pick up tags
* Rebase on v6.7-rc4

Mario Limonciello (4):
PCI: Make d3cold_allowed sysfs attribute read only
PCI: Refresh root ports in pci_bridge_d3_update()
ACPI: x86: s2idle: Export symbol for fetching constraints for module
use
platform/x86/amd: pmc: Add support for using constraints to decide D3
policy

 Documentation/ABI/testing/sysfs-bus-pci |  4 +-
 drivers/acpi/x86/s2idle.c               |  1 +
 drivers/pci/pci-acpi.c                  |  2 +-
 drivers/pci/pci-sysfs.c                 | 14 +-----
 drivers/pci/pci.c                       | 12 ++++--
 drivers/platform/x86/amd/pmc/pmc.c      | 57 +++++++++++++++++++++++++
 include/linux/pci.h                     |  1 -
 7 files changed, 72 insertions(+), 19 deletions(-)

base-commit: 33cc938e65a98f1d29d0a18403dbbee050dcad9a

Signature · 1 line
2.34.1