From: Bjorn Helgaas <helgaas@kernel.org>
To: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: "Bjorn Helgaas" <bhelgaas@google.com>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konrad.dybcio@linaro.org>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Rob Herring" <robh@kernel.org>, "Lukas Wunner" <lukas@wunner.de>,
"Mika Westerberg" <mika.westerberg@linux.intel.com>,
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
Date: Tue, 27 Feb 2024 16:54:42 -0600 [thread overview]
Message-ID: <20240227225442.GA249898@bhelgaas> (raw)
In-Reply-To: <20240227184015.GS2587@thinkpad>
On Wed, Feb 28, 2024 at 12:10:15AM +0530, Manivannan Sadhasivam wrote:
> On Tue, Feb 27, 2024 at 11:37:05AM -0600, Bjorn Helgaas wrote:
> > On Tue, Feb 27, 2024 at 10:38:40PM +0530, Manivannan Sadhasivam wrote:
> > > On Tue, Feb 27, 2024 at 10:25:35AM -0600, Bjorn Helgaas wrote:
> > >
> > > [...]
> > >
> > > > > Ok, I got the issue. TBH, I added the device tree property based on
> > > > > the existing quirks for the ACPI devices. But none of the DT based
> > > > > platforms I'm aware of (even the legacy Qcom MSM8996 chipset
> > > > > released in early 2016) doesn't have any issue with D3hot. But I'm
> > > > > just nervous to assume it is the case for all the DT based platforms
> > > > > in the wild.
> > > > >
> > > > > But to proceed further, what is your preference? Should we ammend
> > > > > the DT property to make it explicit that the propery only focuses on
> > > > > the D3hot capability of the bridge and it works as per the spec
> > > > > (PMCSR) or bite the bullet and enable D3hot for all the non-ACPI
> > > > > platforms?
> > > > >
> > > > > We can add quirks for the bridges later on if we happen to receive
> > > > > any bug report.
> > > >
> > > > I would assume all devices support D3hot via PMCSR per spec. We can
> > > > add quirks if we discover something that doesn't.
> > >
> > > When you say "all devices", are you referring to bridges in DT
> > > platforms or the bridges across all platforms?
> >
> > This patch is only concerned with DT, so that's what I'm commenting on
> > here. I don't know how to untangle the question of ACPI systems.
>
> Ok, I just wanted to confirm.
>
> > This patch affects platform_pci_bridge_d3(), so just based on the
> > "platform" in the function name, I would expect it to be concerned
> > with the D3cold case and whether the platform supports controlling
> > main power.
> >
> > It looks like this patch says "we can put devices in D3cold if DT has
> > 'supports-d3'". But I don't know how to make sense of that because
> > that requires (a) platform hardware to control main power and (b)
> > software that knows how to use that hardware. Wouldn't this require a
> > little more DT description, like "regulator X controls main power for
> > this bridge"? And then an OS would only be able to actually use
> > D3cold if it knows how to *operate* the regulator, and it doesn't seem
> > like DT could answer that.
>
> Fair point. And for most of the DT based platforms, there is no
> dedicated power supply for the bridge described in DT. So
> transitioning the bridge to D3cold is not entirely possible in the
> OS.
>
> Since we concluded that enabling D3hot for all bridges in DT
> platforms is the way to go, I'll drop supporting the DT property in
> next version.
>
> I'll also remove it from the binding.
Sounds good, thanks!
next prev parent reply other threads:[~2024-02-27 22:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-14 11:46 [PATCH v3] PCI: Add D3 support for PCI bridges in DT based platforms Manivannan Sadhasivam
2024-02-14 12:19 ` Lukas Wunner
2024-02-20 22:02 ` Bjorn Helgaas
2024-02-21 5:19 ` Manivannan Sadhasivam
2024-02-21 18:20 ` Bjorn Helgaas
2024-02-22 4:06 ` Manivannan Sadhasivam
2024-02-26 23:39 ` Bjorn Helgaas
2024-02-27 7:30 ` Manivannan Sadhasivam
2024-02-27 16:25 ` Bjorn Helgaas
2024-02-27 17:08 ` Manivannan Sadhasivam
2024-02-27 17:37 ` Bjorn Helgaas
2024-02-27 18:40 ` Manivannan Sadhasivam
2024-02-27 22:54 ` Bjorn Helgaas [this message]
2024-02-22 9:40 ` Lukas Wunner
2024-02-26 23:17 ` Bjorn Helgaas
2024-03-05 16:25 ` Manivannan Sadhasivam
2024-03-05 17:51 ` Bjorn Helgaas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240227225442.GA249898@bhelgaas \
--to=helgaas@kernel.org \
--cc=andersson@kernel.org \
--cc=bhelgaas@google.com \
--cc=konrad.dybcio@linaro.org \
--cc=kw@linux.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=lukas@wunner.de \
--cc=manivannan.sadhasivam@linaro.org \
--cc=mika.westerberg@linux.intel.com \
--cc=quic_krichai@quicinc.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).