linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: rui.zhang@intel.com, edubezval@gmail.com
Cc: linux-pm@vger.kernel.org,
	Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Subject: [PATCH 0/4] User space governor enhancements
Date: Fri, 26 Aug 2016 16:21:15 -0700	[thread overview]
Message-ID: <1472253679-15084-1-git-send-email-srinivas.pandruvada@linux.intel.com> (raw)

Currently user space governor doesn't send any information to user space
thermal controllers other than just some thermal event happened.
This change is addiing some additional properties to user space governor
events so that some meaningful action can take place.
For example if a thermal trip value is changed, then user space needs to
be informed to reload trip value. Also when trip is violated then send
temperature information to avoid another sysfs call.

To enhance user space governor, we also need some mechanism so that
thermal core can be notified from client drivers. This change adds
additional parameter to thermal_zone_device_update() to inform reason/event
code. It is still upto client driver to send any specific event code or not,
in that case they can send an unspecified event.

This series adds first user (int340x driversi) for this new I/F.

Srinivas Pandruvada (4):
  thermal: Enhance thermal_zone_device_update for events
  thermal: user_space gov: Add additional information in uevent
  thermal: int340x: New Interface to read trip and notify
  thermal: int3403: Process trip change notification

 drivers/acpi/thermal.c                             |  3 +-
 drivers/platform/x86/acerhdf.c                     |  2 +-
 drivers/regulator/max8973-regulator.c              |  3 +-
 drivers/thermal/db8500_thermal.c                   |  2 +-
 drivers/thermal/hisi_thermal.c                     |  3 +-
 drivers/thermal/imx_thermal.c                      |  4 +-
 drivers/thermal/int340x_thermal/int3402_thermal.c  |  3 +-
 drivers/thermal/int340x_thermal/int3403_thermal.c  |  9 +++-
 .../thermal/int340x_thermal/int340x_thermal_zone.c | 60 ++++++++++++++--------
 .../thermal/int340x_thermal/int340x_thermal_zone.h |  6 ++-
 .../int340x_thermal/processor_thermal_device.c     |  3 +-
 drivers/thermal/intel_soc_dts_iosf.c               |  3 +-
 drivers/thermal/of-thermal.c                       |  2 +-
 drivers/thermal/qcom-spmi-temp-alarm.c             |  2 +-
 drivers/thermal/rcar_thermal.c                     |  3 +-
 drivers/thermal/rockchip_thermal.c                 |  3 +-
 drivers/thermal/samsung/exynos_tmu.c               |  2 +-
 drivers/thermal/st/st_thermal_memmap.c             |  3 +-
 drivers/thermal/thermal_core.c                     | 21 +++++---
 drivers/thermal/ti-soc-thermal/ti-thermal-common.c |  4 +-
 drivers/thermal/user_space.c                       | 15 +++++-
 drivers/thermal/x86_pkg_temp_thermal.c             |  3 +-
 include/linux/thermal.h                            | 19 ++++++-
 23 files changed, 122 insertions(+), 56 deletions(-)

-- 
2.7.4


             reply	other threads:[~2016-08-26 23:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-26 23:21 Srinivas Pandruvada [this message]
2016-08-26 23:21 ` [PATCH 1/4] thermal: Enhance thermal_zone_device_update for events Srinivas Pandruvada
2016-08-26 23:21 ` [PATCH 2/4] thermal: user_space gov: Add additional information in uevent Srinivas Pandruvada
2016-08-26 23:21 ` [PATCH 3/4] thermal: int340x: New Interface to read trip and notify Srinivas Pandruvada
2016-08-26 23:21 ` [PATCH 4/4] thermal: int3403: Process trip change notification Srinivas Pandruvada

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=1472253679-15084-1-git-send-email-srinivas.pandruvada@linux.intel.com \
    --to=srinivas.pandruvada@linux.intel.com \
    --cc=edubezval@gmail.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    /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).