From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
Andreas Noever <andreas.noever@gmail.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
Linux PM list <linux-pm@vger.kernel.org>,
Pavel Machek <pavel@ucw.cz>
Subject: Re: how to trigger pcieport runtime suspend?
Date: Tue, 25 Mar 2014 19:39:22 +0100 [thread overview]
Message-ID: <1688228.SWW1OT04ps@vostro.rjw.lan> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1403241316280.1197-100000@iolanthe.rowland.org>
On Monday, March 24, 2014 01:19:43 PM Alan Stern wrote:
> On Mon, 24 Mar 2014, Bjorn Helgaas wrote:
>
> > [+cc Rafael, Pavel, linux-pm]
> >
> > On Sun, Mar 23, 2014 at 12:16 PM, Andreas Noever
> > <andreas.noever@gmail.com> wrote:
> > > The pcieport driver defines runtime_suspend and runtime_resume methods
> > > (pcie_port_runtime_suspend/resume in portdrv_pci.c). I am trying to
> > > trigger that code. But I cannot get power/runtime_usage to drop to
> > > zero.
> > >
> > > Initially power/runtime_usage is set to 2. The 2 comes (imho) from:
> > > pci_pm_init -> pm_runtime_forbid
> > > local_pci_probe -> pm_runtime_get_sync
> > >
> > > The pm_runtime_forbid can be undone with echo auto > power/control,
> > > but the second one seems to never go away. local_pci_probe spots the
> > > following comment:
> > > "If the driver supports runtime PM, it should call
> > > pm_runtime_put_noidle() in its probe routine and
> > > pm_runtime_get_noresume() in its remove routine." I cannot find any
> > > such calls in the pcieport driver (or in the port service drivers).
> > >
> > > What am I missing?
>
> You're not missing anything, but apparently the people who added
> runtime PM support to the pcieport driver missed the comment you
> quoted.
In fact, they were removed, because it turned out that some systems broke
when we enabled runtime PM for PCIe ports. In other words, this feature
is incomplete now.
Thanks,
Rafael
next prev parent reply other threads:[~2014-03-25 18:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAMxnaaVQLuExn_aEzY7QrxHiJ8Y0ZmG-EcDCuXyxH=rUdm-B6A@mail.gmail.com>
2014-03-24 17:11 ` how to trigger pcieport runtime suspend? Bjorn Helgaas
2014-03-24 17:19 ` Alan Stern
2014-03-25 18:39 ` Rafael J. Wysocki [this message]
2014-03-25 19:18 ` Andreas Noever
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=1688228.SWW1OT04ps@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=andreas.noever@gmail.com \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=stern@rowland.harvard.edu \
/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