From: Lukas Wunner <lukas@wunner.de>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: Linux PCI <linux-pci@vger.kernel.org>,
Bjorn Helgaas <helgaas@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Mario.Limonciello@dell.com
Subject: Re: Enabling d3 support on hotplug bridges
Date: Fri, 2 Oct 2020 08:57:26 +0200 [thread overview]
Message-ID: <20201002065726.GA22967@wunner.de> (raw)
In-Reply-To: <20200923121509.GA25329@wunner.de>
On Wed, Sep 23, 2020 at 02:15:09PM +0200, Lukas Wunner wrote:
> I've just taken a look at the ACPI dumps provided by Michal Rostecki
> and Arthur Borsboom in the Gitlab bugs linked below. The topology
> looks like this:
>
> 00:01.1 Root Port [\_SB.PCI0.GPP0]
> 01:00.0 Switch Upstream [\_SB.PCI0.GPP0.SWUS]
> 02:00.0 Switch Downstream [\_SB.PCI0.GPP0.SWUS.SWDS]
> 03:00.0 dGPU [\_SB.PCI0.GPP0.SWUS.SWDS.VGA]
> 03:00.1 dGPU Audio [\_SB.PCI0.GPP0.SWUS.SWDS.HDAU]
>
> The Root Port is hotplug-capable but is not suspended because we only
> allow that for Thunderbolt hotplug ports or root ports with Microsoft's
> HotPlugSupportInD3 _DSD property. However, that _DSD is not present
> in the ACPI dumps and the Root Port is obviously not a Thunderbolt
> port either.
I took another, closer look at the ACPI tables and couldn't find anything
specific about the Root Port or the GPU below, save for Power Resources
and corresponding _PS0 / _PS3 methods in the Root Port's namespace.
If a hotplug port is explicitly power manageable by ACPI through these
methods, it should be safe to suspend it to D3. I wouldn't be surprised
if that's what Windows does. So I've just submitted a patch to whitelist
such ports for D3. It has been tested successfully by two users with
affected laptops:
https://lore.kernel.org/linux-pci/cea9071dc46025f0d89cdfcec0642b7bfa45968a.1601614985.git.lukas@wunner.de/
Thanks,
Lukas
next prev parent reply other threads:[~2020-10-02 6:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 23:10 Enabling d3 support on hotplug bridges Alex Deucher
2020-09-22 6:54 ` Lukas Wunner
2020-09-22 14:39 ` Alex Deucher
2020-09-23 12:15 ` Lukas Wunner
2020-09-23 12:41 ` Rafael J. Wysocki
2020-09-23 13:35 ` Limonciello, Mario
2020-10-02 6:57 ` Lukas Wunner [this message]
2020-10-02 14:10 ` Rafael J. Wysocki
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=20201002065726.GA22967@wunner.de \
--to=lukas@wunner.de \
--cc=Mario.Limonciello@dell.com \
--cc=alexdeucher@gmail.com \
--cc=helgaas@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=rafael@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.