From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3861CC25B67 for ; Thu, 26 Oct 2023 17:04:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232045AbjJZREs (ORCPT ); Thu, 26 Oct 2023 13:04:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235012AbjJZREo (ORCPT ); Thu, 26 Oct 2023 13:04:44 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AABF7171F; Thu, 26 Oct 2023 10:04:33 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id 99498332b62f63c5; Thu, 26 Oct 2023 19:04:31 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cloudserver094114.home.pl (Postfix) with ESMTPSA id B89F06673DC; Thu, 26 Oct 2023 19:04:30 +0200 (CEST) From: "Rafael J. Wysocki" To: Bjorn Helgaas , Hans de Goede , Ilpo =?ISO-8859-1?Q?J=E4rvinen?= , Mario Limonciello Cc: Shyam Sundar S K , "open list:PCI SUBSYSTEM" , "open list:X86 PLATFORM DRIVERS" , Lukas Wunner , Kai-Heng Feng , Mario Limonciello Subject: Re: [PATCH 0/4] Add support for drivers to decide bridge D3 policy Date: Thu, 26 Oct 2023 19:04:30 +0200 Message-ID: <5735975.DvuYhMxLoT@kreacher> In-Reply-To: <20231025020546.504-1-mario.limonciello@amd.com> References: <20231025020546.504-1-mario.limonciello@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrledvgddutdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepfeduudeutdeugfelffduieegiedtueefledvjeegffdttefhhffhtefhleejgfetnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopedutddprhgtphhtthhopegshhgvlhhgrggrshesghhoohhglhgvrdgtohhmpdhrtghpthhtohephhguvghgohgvuggvsehrvgguhhgrthdrtghomhdprhgtphhtthhopehilhhpohdrjhgrrhhvihhnvghnsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtohepmhgrrhhiohdrlhhimhhonhgtihgvlhhlohesrghm ugdrtghomhdprhgtphhtthhopefuhhihrghmqdhsuhhnuggrrhdrufdqkhesrghmugdrtghomhdprhgtphhtthhopehlihhnuhigqdhptghisehvghgvrhdrkhgvrhhnvghlrdhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=10 Fuz1=10 Fuz2=10 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Wednesday, October 25, 2023 4:05:42 AM CEST Mario Limonciello wrote: > 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/20230906184354.45846-1-mario.limonciello@amd.com/ > > RFC v1->PATCH v1 > * Simplify the logic, use pci_d3cold_enable()/pci_d3cold_disable() functions > * Roll https://lore.kernel.org/linux-pci/20231004144731.158342-1-mario.limonciello@amd.com/ into series > * Updates for some typos > * Re-order series. Patches 1 and 2 can potentially apply to PCI tree, 3 and 4 to platform-x86 tree. > > 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(-) Any chance to CC this series to linux-pm and linux-acpi?