From: Lukas Wunner <lukas@wunner.de>
To: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
"Rafael J . Wysocki" <rjw@rjwysocki.net>,
Len Brown <lenb@kernel.org>, Keith Busch <keith.busch@intel.com>,
Linux PCI <linux-pci@vger.kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>
Subject: Re: [PATCH 1/2] PCI/DPC: Disable interrupt generation during suspend
Date: Thu, 22 Mar 2018 18:39:03 +0100 [thread overview]
Message-ID: <20180322173903.GA15503@wunner.de> (raw)
In-Reply-To: <20180322165317.GI2703@lahna.fi.intel.com>
On Thu, Mar 22, 2018 at 06:53:17PM +0200, Mika Westerberg wrote:
> On Thu, Mar 22, 2018 at 11:45:17AM +0100, Lukas Wunner wrote:
> > Now I've thought of one.
> >
> > The port may have more children besides the port service devices,
> > namely all the PCI devices below the port. The PM core doesn't
> > impose a specific ordering on suspend/resume but will try to
> > parallelize among all the children.
> >
> > Usually that's not what you want. On resume, you want to resume
> > the port itself (including its port services) *before* resuming
> > the PCI child devices. And the other way round on suspend.
>
> That's a good point.
>
> So I guess there is no way avoiding adding suspend_late/resume_early
> callbacks to the pcie port service structure. I'll do that in the next
> revision.
Well, there *are* ways to avoid it but they might not be better.
Iterating over the port services' callbacks is equivalent to ordering
the port service devices after the port's PCI device but before its
PCI child devices in devices_kset.
That can also be achieved by adding a device link from every PCI child
device (consumer) to every port service device (provider). The result
however is a combinatorial explosion. Say you've got 64 down stream
bridges in a PCIe switch and the upstream bridge has 3 port services,
that's 3 x 64 = 192 device links. That's probably clumsier than
iterating over the port services.
Thanks,
Lukas
next prev parent reply other threads:[~2018-03-22 17:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-14 11:41 [PATCH 1/2] PCI/DPC: Disable interrupt generation during suspend Mika Westerberg
2018-03-14 11:41 ` [PATCH 2/2] PCI/DPC: Do not enable DPC if AER control is not allowed by the BIOS Mika Westerberg
2018-03-14 11:50 ` Rafael J. Wysocki
2018-03-14 12:07 ` Mika Westerberg
2018-03-14 11:48 ` [PATCH 1/2] PCI/DPC: Disable interrupt generation during suspend Rafael J. Wysocki
2018-03-14 12:05 ` Mika Westerberg
2018-03-14 12:33 ` Lukas Wunner
2018-03-20 10:45 ` Mika Westerberg
2018-03-20 11:35 ` Lukas Wunner
2018-03-22 10:45 ` Lukas Wunner
2018-03-22 16:53 ` Mika Westerberg
2018-03-22 17:39 ` Lukas Wunner [this message]
2018-03-22 19:36 ` Bjorn Helgaas
2018-03-23 11:18 ` Mika Westerberg
2018-03-23 21:08 ` Bjorn Helgaas
2018-03-23 21:11 ` Rafael J. Wysocki
2018-03-23 22:01 ` Bjorn Helgaas
2018-03-24 10:48 ` Rafael J. Wysocki
2018-03-24 12:15 ` Lukas Wunner
2018-03-24 13:48 ` Lukas Wunner
2018-03-24 14:09 ` Bjorn Helgaas
2018-03-26 9:55 ` Mika Westerberg
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=20180322173903.GA15503@wunner.de \
--to=lukas@wunner.de \
--cc=bhelgaas@google.com \
--cc=keith.busch@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=rjw@rjwysocki.net \
/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).