Skip to content

RFC Add support for drivers to decide bridge D3 policy

Mario Limonciello linux-pci oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ACPI: x86: s2idle: Export symbol for fetching constraints for module usedrivers/acpi/x86/s2idle.c+1 -00 replies
2/4PCI: Add support for drivers to decide bridge D3 policydrivers/pci/pci.c include/linux/pci.h+173 -02 replies
3/4PCI: Check for changes in pci_bridge_d3_possible() when updating D3drivers/pci/pci.c+19 -100 replies
4/4platform/x86/amd: pmc: Add support for using constraints to decide D3 policydrivers/platform/x86/amd/pmc/pmc.c+59 -04 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRafael J. Wysocki
1/4A-b
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [RFC v1 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]/
Mario Limonciello (4):
ACPI: x86: s2idle: Export symbol for fetching constraints for module
use
PCI: Add support for drivers to decide bridge D3 policy
PCI: Check for changes in pci_bridge_d3_possible() when updating D3 platform/x86/amd: pmc: Add support for using constraints to decide D3
policy

 drivers/acpi/x86/s2idle.c          |   1 +
 drivers/pci/pci.c                  | 148 +++++++++++++++++++++++++++--
 drivers/platform/x86/amd/pmc/pmc.c |  59 ++++++++++++
 include/linux/pci.h                |  54 +++++++++++
 4 files changed, 252 insertions(+), 10 deletions(-)
Signature · 1 line
2.34.1