Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp526985rdh; Wed, 14 Feb 2024 04:20:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVpb5MpnbwA+cXNNGRmnFZhbus6xJgKu3pfgTPVpycFHmQU+HKtTr/+vS/gcyQGR3DPnWPuCVudMWhEkzLEli3nhZxGFt1I9yoFzLIaAw== X-Google-Smtp-Source: AGHT+IHchQGKcVCtGNEbYmaZ0fcaXm8/pEevDx8JRpgagTXjVVq0dZCr3+TxLnbkiPv4yXlDqfEd X-Received: by 2002:a05:6830:480e:b0:6dd:e181:5f2b with SMTP id dg14-20020a056830480e00b006dde1815f2bmr2292837otb.28.1707913241800; Wed, 14 Feb 2024 04:20:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707913241; cv=pass; d=google.com; s=arc-20160816; b=bvcpLtEGAz4kdHixXucrYDOaFRefYIiPEDcJ7yF0OJje6HHlnFpJapcArqfj87olTm MrnyKvbymfTdHvjiAYKD4AkixEcJJr1Ii8A2KKoYeOb1wBeOrxQOD5P+g1WDMnUpRt57 kDj7AhLwivjjKw7/8NuXCpXIUjeSh7SLy679eQgmLX7lqk52jla6ec3XW5DLLZNanpnl qD0GJJgDly+uCgJH/cXvSP1DDTMBTnGkn+U2HZnxQ3gWSANTi6qfYeYXwBfF2C9VP6FX dORxhHCf8r0NRsyg8K84PGT6E3js9W3fHLZzQuLuzaIG5pnRtBv2B6yJZlpo3PYhjLgc Z9PA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=5cPntNaVtgCmdaZ2KWsevshVTBIj2xH+fOYzYsE+ZEo=; fh=wdgUNPMfVnZpB+pjq5+jwcCcbAB8+rvw9rTkyijlwjc=; b=Y/FMpIzd0uPI1WPBpw2PE8XghRG45Nh6KCXGrTSl+IZqSy8thL0ubaw/NNSnN6yut7 lIJcJ7AiTYaw3SjjrUA8Yz2A+JCt4ZTLy3oc4aMGqRq8z/sU6iFbl4Gy58wjG7jX+AN6 BS0KMiiy8dsQqC77rCJTWCIER9ep2hajhpsw+ST3tw5Jy9KRROV/TYrJgDYTbu59WQ4Q LYvLxSfD0hMyEK0kK7SciDACqbTbPOKN2y7rldzgcKUO1CeP0xD7lrx9t7aI6gskwDvj 7l+XDPH/IzQxApmcBjUVc+S3S7rVXAaE91hlgBnZL1M/661DUpf6eufmjd42o4kur3Hh lP2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-65186-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65186-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCU4wQqGQCOtsjDNvGdpHNzzBes6jJiQs/R7qpOa2tl65DptAVMv1ZX4mTwkW908XVfRCw/w2IXUNe2Crv1y0/BkJph/7rwC7sNl0h/8ZQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b19-20020ac85bd3000000b0042c6cb70d99si5624789qtb.121.2024.02.14.04.20.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 04:20:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65186-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-65186-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65186-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C77271C232AB for ; Wed, 14 Feb 2024 12:20:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCF461BC2C; Wed, 14 Feb 2024 12:19:58 +0000 (UTC) Received: from bmailout3.hostsharing.net (bmailout3.hostsharing.net [176.9.242.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD04D1B952; Wed, 14 Feb 2024 12:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=176.9.242.62 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707913198; cv=none; b=EG2sr8mUFxUtGggJx13grO+mnxC7ZjYfOyvDXDabeoTD2+9Bo/z5Gqs/wA6sLTXhvI4Nzdd39WEE5RLmdCv2Zu2rsPGXAsLfuZsvbbL8YTHlv6dqQ8DrTTh8y3mwtNC0xfaWEuTVWK8ZknvehaUao88pG0auZwSPhezpFNn/0ws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707913198; c=relaxed/simple; bh=SyRbVdRxwgUBVwTZvXCHUbYB1IO48tqnUpjgw16QHoo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oDw+kIb69ux5PeyL0MCHdWEjfqhJ32gl2rNv6K0md5oHTPI/OzHU1QBrO1IR81EoOidbv3YdDmMG61lqEDPUEVdh4vUvszJXMtKAJzYgTB3SFhHbP43k3g4TcYRGv+/SI4mr7xb3S+u4Ia5n/ou8WxOC5ikjz4EnqljNHv0YyEE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=none smtp.mailfrom=h08.hostsharing.net; arc=none smtp.client-ip=176.9.242.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net 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 TLS RSA CA G1" (verified OK)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id BA2DE101C062C; Wed, 14 Feb 2024 13:19:46 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 88DA14EE672; Wed, 14 Feb 2024 13:19:46 +0100 (CET) Date: Wed, 14 Feb 2024 13:19:46 +0100 From: Lukas Wunner To: Manivannan Sadhasivam Cc: Bjorn Helgaas , Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , Krzysztof Wilczy??ski , Rob Herring , Mika Westerberg , quic_krichai@quicinc.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v3] PCI: Add D3 support for PCI bridges in DT based platforms Message-ID: <20240214121946.GA6838@wunner.de> References: <20240214-pcie-qcom-bridge-v3-1-3a713bbc1fd7@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240214-pcie-qcom-bridge-v3-1-3a713bbc1fd7@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) On Wed, Feb 14, 2024 at 05:16:09PM +0530, Manivannan Sadhasivam wrote: > Currently, PCI core will enable D3 support for PCI bridges only when the > following conditions are met: > > 1. Platform is ACPI based > 2. Thunderbolt controller is used > 3. pcie_port_pm=force passed in cmdline > > While options 1 and 2 do not apply to most of the DT based platforms, > option 3 will make the life harder for distro maintainers. Due to this, > runtime PM is also not getting enabled for the bridges. > > To fix this, let's make use of the "supports-d3" property [1] in the bridge > DT nodes to enable D3 support for the capable bridges. This will also allow > the capable bridges to support runtime PM, thereby conserving power. [...] > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Lukas Wunner