linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/7] Support for Multiple sensors per zone
@ 2012-11-17 10:45 Durgadoss R
  2012-11-17 10:45 ` [RFC PATCH 1/7] Thermal: Create sensor level APIs Durgadoss R
                   ` (8 more replies)
  0 siblings, 9 replies; 27+ messages in thread
From: Durgadoss R @ 2012-11-17 10:45 UTC (permalink / raw)
  To: rui.zhang, linux-pm
  Cc: wni, eduardo.valentin, amit.kachhap, hongbo.zhang, sachin.kamat,
	Durgadoss R

This patch series attempts to add support for multiple
sensors per zone. The work is based on the Thermal discussion
happened in plumbers conference 2012, here:
http://www.linuxplumbersconf.org/2012/schedule/
Title: "Enhancing the Thermal Management Infrastructure in Linux"

The intention is to make it easy for generic sensor drivers
to register with the framework, and let them participate in
platform thermal management. Another goal is to expose the
binding information in a consistent way so that user space
can consume the information and potentially manage platform thermals.

This series contains 7 patches:
Patch 1/7: Creates new sensor level APIs
Patch 2/7: Creates new zone level APIs. The existing tzd structure is
	   kept as such for clarity and compatibility purposes.
Patch 3/7: Creates functions to add/remove a cdev to/from a zone. The
	   existing tcd structure need not be modified.
Patch 4/7: Adds a thermal_trip sysfs node, which exposes various trip
	   points for all sensors present in a zone.
Patch 5/7: Adds a thermal_map sysfs node. It is a compact representation
	   of the binding relationship between a sensor and a cdev,
	   within a zone.
Patch 6/7: Creates Documentation for the new APIs. A new file is
	   created for clarity. Final goal is to merge with the existing
	   file or refactor the files, as whatever seems appropriate.
Patch 7/7: A dummy driver that can be used for testing. This is not for merge.

Next steps:
 1. Move all the existing drivers to the new implementation model.
    Help welcomed from individual driver authors/maintainers for this.
 2. Make the thermal governors work with this new model.
 3. Remove old/unused code from thermal_sys.c.
 4. Add more detailed documentation

 I didn't want to submit patches for all these in one-go, since it
 might end-up being difficult to comprehend, besides delaying the
 review process. The other obvious reason being I cannot test all
 the changes on various drivers for 1.

 All these patches have been tested on a Core-i5 desktop running
 ubuntu 12.04 and an atom notebook running ubuntu 11.10.
 Kindly help review.

Durgadoss R (7):
  Thermal: Create sensor level APIs
  Thermal: Create zone level APIs
  Thermal: Add APIs to bind cdev to new zone structure
  Thermal: Add Thermal_trip sysfs node
  Thermal: Add 'thermal_map' sysfs node
  Thermal: Add Documentation to new APIs
  Thermal: Dummy driver used for testing

 Documentation/thermal/sysfs-api2.txt |  213 ++++++++
 drivers/thermal/Kconfig              |    5 +
 drivers/thermal/Makefile             |    3 +
 drivers/thermal/thermal_sys.c        |  915 ++++++++++++++++++++++++++++++++++
 drivers/thermal/thermal_test.c       |  321 ++++++++++++
 include/linux/thermal.h              |  118 +++++
 6 files changed, 1575 insertions(+)
 create mode 100644 Documentation/thermal/sysfs-api2.txt
 create mode 100644 drivers/thermal/thermal_test.c

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2013-01-02 16:46 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-17 10:45 [RFC PATCH 0/7] Support for Multiple sensors per zone Durgadoss R
2012-11-17 10:45 ` [RFC PATCH 1/7] Thermal: Create sensor level APIs Durgadoss R
2012-11-17 10:45 ` [RFC PATCH 2/7] Thermal: Create zone " Durgadoss R
2012-12-03  7:42   ` Hongbo Zhang
2012-12-03  7:47     ` R, Durgadoss
2012-12-03  8:21       ` Hongbo Zhang
2012-12-03  9:51         ` R, Durgadoss
2012-12-03 11:50           ` Hongbo Zhang
2012-12-03 13:12             ` R, Durgadoss
2012-12-13  6:23   ` Hongbo Zhang
2012-12-13 15:00     ` R, Durgadoss
2012-12-14  4:10       ` Hongbo Zhang
2012-12-14  5:10         ` R, Durgadoss
2012-11-17 10:45 ` [RFC PATCH 3/7] Thermal: Add APIs to bind cdev to new zone structure Durgadoss R
2012-11-17 10:45 ` [RFC PATCH 4/7] Thermal: Add Thermal_trip sysfs node Durgadoss R
2012-12-04  8:30   ` Hongbo Zhang
2012-12-04  8:41     ` R, Durgadoss
2012-11-17 10:45 ` [RFC PATCH 5/7] Thermal: Add 'thermal_map' " Durgadoss R
2012-11-17 10:45 ` [RFC PATCH 6/7] Thermal: Add Documentation to new APIs Durgadoss R
2012-12-03  7:19   ` Hongbo Zhang
2012-12-03  7:44     ` R, Durgadoss
2012-11-17 10:45 ` [RFC PATCH 7/7] Thermal: Dummy driver used for testing Durgadoss R
2012-12-03  9:01 ` [RFC PATCH 0/7] Support for Multiple sensors per zone Hongbo Zhang
2012-12-03  9:56   ` R, Durgadoss
2013-01-02 15:48 ` Eduardo Valentin
2013-01-02 16:29   ` R, Durgadoss
2013-01-02 16:46     ` Eduardo Valentin

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).