From: Lukas Wunner <lukas@wunner.de>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Andreas Noever <andreas.noever@gmail.com>,
linux-pci@vger.kernel.org,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Erik Veijola <erik.veijola@linux.intel.com>,
Ashok Raj <ashok.raj@intel.com>,
Keith Busch <keith.busch@intel.com>,
Yinghai Lu <yinghai@kernel.org>
Subject: [PATCH v6 0/8] Runtime PM for Thunderbolt on Macs
Date: Sun, 12 Feb 2017 17:07:45 +0100 [thread overview]
Message-ID: <cover.1486913733.git.lukas@wunner.de> (raw)
Power down Thunderbolt controllers on Macs when nothing is plugged in
to save around 2W per controller and fix a power regression introduced
in v3.17 that affects millions of machines (all Macs with Thunderbolt)
Changes since v5:
- Patch [1/8] ("PCI: Recognize Thunderbolt devices"):
Rename set_pcie_vendor_specific() (Bjorn Helgaas)
- Patch [3/8] ("PCI: pciehp: Reinstate runtime PM on Thunderbolt hotplug
ports"): Modified version of reverted patch
- Patch [7/8] ("thunderbolt: Power down controller when idle"):
Add comment explaining use of pr_*() instead of dev_*(), drop unnecessary
initialization (Bjorn Helgaas)
- Polish commit messages
Link to v5:
https://lkml.org/lkml/2017/1/15/180
Browse the patches on GitHub:
https://github.com/l1k/linux/commits/thunderbolt_runpm_v6
Thanks,
Lukas
Chen Yu (1):
PM / sleep: Define constant for direct_complete
Lukas Wunner (7):
PCI: Recognize Thunderbolt devices
PCI: Allow runtime PM on Thunderbolt ports
PCI: pciehp: Reinstate runtime PM on Thunderbolt hotplug ports
Revert "PM / Runtime: Remove the exported function
pm_children_suspended()"
PM: Make requirements of dev_pm_domain_set() more precise
thunderbolt: Power down controller when idle
thunderbolt: Runtime suspend NHI when idle
drivers/base/power/common.c | 15 +-
drivers/base/power/runtime.c | 3 +-
drivers/pci/hotplug/pciehp_ctrl.c | 13 +-
drivers/pci/pci.c | 20 ++-
drivers/pci/pci.h | 2 +
drivers/pci/probe.c | 32 ++++
drivers/thunderbolt/Kconfig | 3 +-
drivers/thunderbolt/Makefile | 4 +-
drivers/thunderbolt/nhi.c | 5 +
drivers/thunderbolt/power.c | 359 ++++++++++++++++++++++++++++++++++++++
drivers/thunderbolt/power.h | 37 ++++
drivers/thunderbolt/switch.c | 9 +
drivers/thunderbolt/tb.c | 13 ++
drivers/thunderbolt/tb.h | 2 +
include/linux/pci.h | 1 +
include/linux/pm.h | 7 +
include/linux/pm_runtime.h | 7 +
17 files changed, 515 insertions(+), 17 deletions(-)
create mode 100644 drivers/thunderbolt/power.c
create mode 100644 drivers/thunderbolt/power.h
--
2.11.0
next reply other threads:[~2017-02-12 16:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-12 16:07 Lukas Wunner [this message]
2017-02-12 16:07 ` [PATCH v6 8/8] thunderbolt: Runtime suspend NHI when idle Lukas Wunner
2017-02-12 16:07 ` [PATCH v6 3/8] PCI: pciehp: Reinstate runtime PM on Thunderbolt hotplug ports Lukas Wunner
2017-02-14 22:59 ` Bjorn Helgaas
2017-02-18 9:25 ` Lukas Wunner
2017-02-19 0:16 ` Bjorn Helgaas
2017-02-20 12:04 ` Lukas Wunner
2017-02-12 16:07 ` [PATCH v6 2/8] PCI: Allow runtime PM on Thunderbolt ports Lukas Wunner
2017-02-14 20:38 ` Bjorn Helgaas
2017-02-15 12:13 ` Lukas Wunner
2017-02-17 16:06 ` Bjorn Helgaas
2017-02-12 16:07 ` [PATCH v6 7/8] thunderbolt: Power down controller when idle Lukas Wunner
2017-02-12 16:07 ` [PATCH v6 5/8] PM: Make requirements of dev_pm_domain_set() more precise Lukas Wunner
2017-02-12 16:07 ` [PATCH v6 6/8] PM / sleep: Define constant for direct_complete Lukas Wunner
2017-02-12 16:07 ` [PATCH v6 1/8] PCI: Recognize Thunderbolt devices Lukas Wunner
2017-02-17 15:29 ` Bjorn Helgaas
2017-02-18 9:12 ` Lukas Wunner
2017-02-19 4:27 ` Bjorn Helgaas
2017-02-20 11:49 ` Lukas Wunner
2017-02-21 22:55 ` Bjorn Helgaas
2017-02-12 16:07 ` [PATCH v6 4/8] Revert "PM / Runtime: Remove the exported function pm_children_suspended()" Lukas Wunner
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=cover.1486913733.git.lukas@wunner.de \
--to=lukas@wunner.de \
--cc=andreas.noever@gmail.com \
--cc=ashok.raj@intel.com \
--cc=erik.veijola@linux.intel.com \
--cc=helgaas@kernel.org \
--cc=keith.busch@intel.com \
--cc=linux-pci@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=rafael.j.wysocki@intel.com \
--cc=yinghai@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).