OEM systems that ship with Linux preloaded need to go through energy certifications that match regulatory bodies in the regions that they will ship. If any of those certifications don't pass then OEMs might not be able to ship systems preloaded in applicable regions. Multiple models of systems are reported to fail in Linux but pass for Windows on the exact same hardware. By looking at a breakdown of power consumption across devices the issue is that some devices aren't turned off when user puts the system into S5. This series modifies the PCI driver and PCIe port shutdown codepaths to ensure that devices aren't needlessly woken up and that the hierarchy for all ports is put into D3cold. With this series power consumption at S5 drops on some affected systems to ranges that should be acceptable to ship preloaded. Cc: mpearson-lenovo@xxxxxxxxx Mario Limonciello (2): PCI: Avoid runtime resuming devices if system is shutting down PCI/portdrv: Place PCIe port hierarchy into D3cold at shutdown drivers/pci/pci-driver.c | 4 +++- drivers/pci/pcie/portdrv.c | 11 ++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) -- 2.34.1