Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AlRHXT90" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FD6C83 for ; Mon, 4 Dec 2023 06:08:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701698917; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1Kb4oTInntwbSX0qj4UGW/Dx8KPLHw46unRh3eh5fbw=; b=AlRHXT90ADhdINpxixpLozaAJ/nmYtGaLn4UikzkFwzF1pzEjWvV+5vynS3NDAx4uJBRrq WobkZyJotZpMRtuQWvZFHwUzea+MAC3mGqGH63IT1TMNDTQlnqEc+2ocPy8EtskgqFJGoA 83NzMBdElDDBXcrXjG/hM58v1Ce0zW0= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-1-xAUazsN_qunzF2bWxunw-1; Mon, 04 Dec 2023 09:08:36 -0500 X-MC-Unique: 1-xAUazsN_qunzF2bWxunw-1 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2c9b97a391bso44396541fa.0 for ; Mon, 04 Dec 2023 06:08:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701698915; x=1702303715; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1Kb4oTInntwbSX0qj4UGW/Dx8KPLHw46unRh3eh5fbw=; b=ZlWT/iHUQsegIsQ8aoZfo6ZNZvS79meIzusJFFbeLzOfsHU+Jy3WIkaPOAT6b/gUF/ OYSclU1XVPvhr/ilUQUXKH406x0lNOE0D4MiUkYSp/0e/nM6t5PYNd8EdkbQ3A7QcuUz uratWT+6rvLpQkw+0dq4Q23udOqpO8lMJd2cPfXED1evPuuI0CDfAmNgJ7x9QUCiWTJ9 OyZmhdWQ9FV2Xb+fSrLsyWRHYl8Av+VBn8+EeZB2r3mQRN3pdvJIeVF7pEafx57/2ri2 6vGtUweNIrqt4MOBdohjkTyZDISWb5T6AC3tw8KrI0rwCJVTQfX8zfhdWV4H5xxD0QQn p6PQ== X-Gm-Message-State: AOJu0YwsaqOAEAfsvT7kxFJorB5TVPLoR/Ux8VvhJr2qqkXfuRqaHSX2 s/3ij2YTfSDxZQga2DyOUcJGhoyFp9MQ8Ls7vemSSjNE/zsYMZ58zzyGgqrKEIeVlutuO8YaoHY JLGDA9iwcEStU3UdMiLA= X-Received: by 2002:a2e:9455:0:b0:2c9:d862:ff1e with SMTP id o21-20020a2e9455000000b002c9d862ff1emr1187150ljh.63.1701698914834; Mon, 04 Dec 2023 06:08:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuDuHVEhq5/ojLzeJsU0hmxb0pvTe47HU9fNdyKYAlhHcsSAPuGmoe6SCFyLBmVdV96WPYNg== X-Received: by 2002:a2e:9455:0:b0:2c9:d862:ff1e with SMTP id o21-20020a2e9455000000b002c9d862ff1emr1187145ljh.63.1701698914516; Mon, 04 Dec 2023 06:08:34 -0800 (PST) Received: from [10.40.98.142] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id r19-20020a1709067fd300b009fd50aa6984sm5285299ejs.83.2023.12.04.06.08.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Dec 2023 06:08:34 -0800 (PST) Message-ID: <4f8b7b2d-0f37-420f-adaa-15a88f0f51ea@redhat.com> Date: Mon, 4 Dec 2023 15:08:32 +0100 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/4] Add support for drivers to decide bridge D3 policy Content-Language: en-US To: Mario Limonciello , Bjorn Helgaas Cc: "Rafael J . Wysocki" , Shyam Sundar S K , "open list:PCI SUBSYSTEM" , "open list:X86 PLATFORM DRIVERS" , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Lukas Wunner , Kai-Heng Feng , linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org References: <20231203041046.38655-1-mario.limonciello@amd.com> From: Hans de Goede In-Reply-To: <20231203041046.38655-1-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi all, On 12/3/23 05:10, 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/ As I mentioned in the v1 thread, I expect this entire series to go upstream through the PCI or ACPI trees, so I'm dropping this from my queue. Regards, Hans > > 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