Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5998252rwd; Wed, 24 May 2023 09:26:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ67XTrqP+SZNtsA6nW6XoDbpYTWtCwjojpIFiyuTNxJeVOrdu0ho3+enqlg79drYgi2+ZE4 X-Received: by 2002:a05:6a00:15c8:b0:63f:18ae:1d5f with SMTP id o8-20020a056a0015c800b0063f18ae1d5fmr4414783pfu.29.1684945581356; Wed, 24 May 2023 09:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684945581; cv=none; d=google.com; s=arc-20160816; b=cwFbbbkV//wBDy24L9MXTggVwlJBP2vyCovdLGrTfz2IqgZXZFGOqm7pCePMRPKuaG 3cXlJva6HuzVF53jZuBHiTe8AFgrJiKrfWp0mzM5dPqwtxM6l4hXCCRw+6vUjHNvyRjK hnVJH8zjYw+m49ls8v6bgwwf4qIBWGI5Mgc69vYuE8YUFZ23cQYst0FrMo8RbnrO/rU8 WU0vy3wPzLGcOTtqPyCFWY1QkP9kMR/D+my7U3O01cyrz4E3VAoipBBfgtt2uCoyEtJm xSk3oP/geAPqN8XFoABEu4CjKhHmWU/tFguU/hnusuaJBftg78TcQK39Q2qZHvpXfb4k rKWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Cmkdl8Nj4KDbeP2osoojozd95WN8+lEJU5n+25Tow/E=; b=qPaW2sai5Y0lTLtIOy0z4FunjFdqVnzxNuYu8lBzEdShhV8yX6QC/F8w97Jueexfq5 AozDEH8RVy6zvsVx9tDvfs1skix3NXA8Rhw0NZJ+aEycLzGYKvWzrA0Sf7n3eoQT1TFZ L+kLwAI84Afi9GNvGg3KdSyESzh6Unhpot+V481oY329F0o7EvcJC4kUoSfKGJJiIUHO +klLXre5rq8E8BP9+6tGMuK76w8H5LLGtyr/Ke8jcpwMkGOcLjuXmKWAj0sfclXT33x+ XhK9QMtTphGorO+p6Uw8KXfdL5NyyzLIj+Ej2NAtz1DDrxDjkasXeEoK2csq/2SmFHEt FUgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020aa79785000000b0064eeb3d3a19si4215276pfp.158.2023.05.24.09.26.08; Wed, 24 May 2023 09:26:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237794AbjEXPzb (ORCPT + 99 others); Wed, 24 May 2023 11:55:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237544AbjEXPzU (ORCPT ); Wed, 24 May 2023 11:55:20 -0400 X-Greylist: delayed 559 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 24 May 2023 08:55:02 PDT Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [IPv6:2a01:37:3000::53df:4ef0:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC5F21A4; Wed, 24 May 2023 08:55:01 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id 6DD7F28010365; Wed, 24 May 2023 17:44:54 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 63A39261ABF; Wed, 24 May 2023 17:44:54 +0200 (CEST) Date: Wed, 24 May 2023 17:44:54 +0200 From: Lukas Wunner To: Mario Limonciello Cc: Bjorn Helgaas , Mika Westerberg , "Rafael J . Wysocki" , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, S-k Shyam-sundar , Natikar Basavaraj , Deucher Alexander , linux-pm@vger.kernel.org, Iain Lane Subject: Re: [PATCH v3] PCI: Don't assume root ports from > 2015 are power manageable Message-ID: <20230524154454.GA28455@wunner.de> References: <20230524152136.1033-1-mario.limonciello@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230524152136.1033-1-mario.limonciello@amd.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 24, 2023 at 10:21:36AM -0500, Mario Limonciello wrote: > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -2976,6 +2976,9 @@ bool pci_bridge_d3_possible(struct pci_dev *bridge) > > switch (pci_pcie_type(bridge)) { > case PCI_EXP_TYPE_ROOT_PORT: > + if (!platform_pci_power_manageable(bridge)) > + return false; > + fallthrough; > case PCI_EXP_TYPE_UPSTREAM: > case PCI_EXP_TYPE_DOWNSTREAM: > if (pci_bridge_d3_disable) This will exempt the Root Ports from pcie_port_pm=force. Not sure if that's desirable. Thanks, Lukas