From: Jarkko Nikula <jarkko.nikula@linux.intel.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: linux-pci@vger.kernel.org, linux-pm@vger.kernel.org,
Bjorn Helgaas <bhelgaas@google.com>,
"Rafael J . Wysocki" <rjw@rjwysocki.net>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Jean Delvare <jdelvare@suse.de>, Wolfram Sang <wsa@the-dreams.de>,
stable@vger.kernel.org
Subject: Re: [PATCH] PCI / PM: Allow runtime PM without callback functions
Date: Fri, 19 Oct 2018 14:45:54 +0300 [thread overview]
Message-ID: <a7d488d6-0700-0666-8b59-d416f6b43df0@linux.intel.com> (raw)
In-Reply-To: <20181018212513.GM5906@bhelgaas-glaptop.roam.corp.google.com>
On 10/19/2018 12:25 AM, Bjorn Helgaas wrote:
> On Thu, Oct 18, 2018 at 03:30:38PM +0300, Jarkko Nikula wrote:
>> Allow PCI core to do runtime PM to devices without needing to use dummy
>> runtime PM callback functions if there is no need to do anything device
>> specific beyond PCI device power state management.
>>
>> Implement this by letting core to change device power state during
>> runtime PM transitions even if no callback functions are defined.
>>
>> Fixes: a9c8088c7988 ("i2c: i801: Don't restore config registers on runtime PM")
>> Reported-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>> Cc: <stable@vger.kernel.org>
>
> I applied this with Rafael's reviewed-by to pci/misc for v4.20,
> thanks!
>
> But I dropped the stable tag because if I understand correctly, the
> point of this is to avoid the need for SIMPLE_DEV_PM_OPS() in drivers
> that don't need to do anything for PM.
>
> That's worthwhile, but it's not transparently obvious that it would
> qualify for a stable backport based on this:
>
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst
>
> If there's an argument for adding a stable tag, I'll add it , but that
> justification should be explicit in the changelog.
>
No disagreement here. I was thinking a second or two before sending the
patch may I Cc or not the stable. I went adding it since this actually
fixes a PM regression on i2c-i801 after v4.18. SMBus PCI device doesn't
go to D3 and
/sys/bus/pci/devices/[0000:00:1f.3 etc]/power/runtime_status
shows "error" when runtime PM framework attempts to autosuspend the device.
But given that most of the platforms I have seen don't implement the PM
capabilities for SMBus PCI device, a few do implement though, and we
haven't got any regression reports either so this is not very fatal IMHO.
I definitely don't want to see massive regression from different PCI
systems either. Queueing for v4.20 sounds reasonable and we can ask to
cherry-pick the commit into v4.18 and v4.19 stable kernels if nothing
fatal shows up.
--
Jarkko
next prev parent reply other threads:[~2018-10-19 11:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-18 12:30 [PATCH] PCI / PM: Allow runtime PM without callback functions Jarkko Nikula
2018-10-18 15:08 ` Rafael J. Wysocki
2018-10-18 21:25 ` Bjorn Helgaas
2018-10-19 11:45 ` Jarkko Nikula [this message]
2018-10-19 13:21 ` Jean Delvare
2018-10-20 16:19 ` Bjorn Helgaas
2018-10-22 6:04 ` Jarkko Nikula
2018-10-22 6:06 ` 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=a7d488d6-0700-0666-8b59-d416f6b43df0@linux.intel.com \
--to=jarkko.nikula@linux.intel.com \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=jdelvare@suse.de \
--cc=linux-pci@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=rjw@rjwysocki.net \
--cc=stable@vger.kernel.org \
--cc=wsa@the-dreams.de \
/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).