1. 20 11月, 2014 4 次提交
    • B
      thermal: exynos: remove needless triminfo_data abstraction · 77109411
      Bartlomiej Zolnierkiewicz 提交于
      reg->triminfo_data is used only in exynos_tmu_initialize() and
      the code has already different paths for Exynos5440 and other
      SoC types (on which TRIMINFO_DATA register offset is identical)
      so the register abstraction is not needed and can be removed.
      
      There should be no functional changes caused by this patch.
      
      Cc: Amit Daniel Kachhap <amit.daniel@samsung.com>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Eduardo Valentin <edubezval@gmail.com>
      Cc: Zhang Rui <rui.zhang@intel.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Acked-by: NKyungmin Park <kyungmin.park@samsung.com>
      Tested-by: NLukasz Majewski <l.majewski@samsung.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      77109411
    • E
      thermal: of: improve of-thermal sensor registration API · 2251aef6
      Eduardo Valentin 提交于
      Different drivers request API extensions in of-thermal. For this reason,
      additional callbacks are required to fit the new drivers needs.
      
      The current API implementation expects the registering sensor driver
      to provide a get_temp and get_trend callbacks as function parameters.
      As the amount of callbacks is growing, this patch changes the existing
      implementation to use a .ops field to hold all the of thermal callbacks
      to sensor drivers.
      
      This patch also changes the existing of-thermal users to fit the new
      API design. No functional change is introduced in this patch.
      
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: devicetree@vger.kernel.org
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Jean Delvare <jdelvare@suse.de>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-pm@vger.kernel.org
      Cc: linux-tegra@vger.kernel.org
      Cc: lm-sensors@lm-sensors.org
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Zhang Rui <rui.zhang@intel.com>
      Acked-by: NGuenter Roeck <linux@roeck-us.net>
      Tested-by: NMikko Perttunen <mikko.perttunen@kapsi.fi>
      Reviewed-by: NMikko Perttunen <mikko.perttunen@kapsi.fi>
      Reviewed-by: NAlexandre Courbot <acourbot@nvidia.com>
      Reviewed-by: NLukasz Majewski <l.majewski@samsung.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      2251aef6
    • M
      thermal: Add Tegra SOCTHERM thermal management driver · 66fb8480
      Mikko Perttunen 提交于
      This adds support for the Tegra SOCTHERM thermal sensing and management
      system found in the Tegra124 system-on-chip. This initial driver supports
      temperature polling for four thermal zones.
      Signed-off-by: NMikko Perttunen <mperttunen@nvidia.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      66fb8480
    • E
      thermal: introduce clock cooling device · f9df89d8
      Eduardo Valentin 提交于
      This patch introduces a new thermal cooling device based on common clock
      framework. The original motivation to write this cooling device is to be
      able to cool down thermal zones using clocks that feed co-processors, such
      as GPUs, DSPs, Image Processing Co-processors, etc. But it is written
      in a way that it can be used on top of any clock.
      
      The implementation is pretty straight forward. The code creates
      a thermal cooling device based on a pair of a struct device and a clock name.
      The struct device is assumed to be usable by the OPP layer. The OPP layer
      is used as source of the list of possible frequencies. The (cpufreq) frequency
      table is then used as a map from frequencies to cooling states. Cooling
      states are indexes to the frequency table.
      
      The logic sits on top of common clock framework, specifically on clock
      pre notifications. Any PRE_RATE_CHANGE is hijacked, and the transition is
      only allowed when the new rate is within the thermal limit (cooling state -> freq).
      
      When a thermal cooling device state transition is requested, the clock
      is also checked to verify if the current clock rate is within the new
      thermal limit.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Mike Turquette <mturquette@linaro.org>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      f9df89d8
  2. 10 11月, 2014 1 次提交
  3. 08 11月, 2014 2 次提交
  4. 05 11月, 2014 1 次提交
  5. 04 11月, 2014 1 次提交
  6. 03 11月, 2014 13 次提交
  7. 17 10月, 2014 1 次提交
  8. 14 10月, 2014 1 次提交
  9. 11 10月, 2014 3 次提交
  10. 10 10月, 2014 4 次提交
  11. 09 10月, 2014 1 次提交
  12. 11 9月, 2014 1 次提交
    • Z
      ACPI: introduce ACPI int340x thermal scan handler · 3230bbfc
      Zhang Rui 提交于
      Newer laptops and tablets that use ACPI may have thermal sensors and
      other devices with thermal control capabilities outside the core CPU/SOC,
      for thermal safety reasons.
      They are exposed for the OS to use via
      1) INT3400 ACPI device object as the master.
      2) INT3401 ~ INT340B ACPI device objects as the slaves.
      
      This patch introduces a scan handler to enumerate the INT3400
      ACPI device object to platform bus, and prevent its slaves
      from being enumerated before the controller driver being probed.
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      3230bbfc
  13. 09 9月, 2014 1 次提交
  14. 27 8月, 2014 1 次提交
    • P
      thermal: Added Bang-bang thermal governor · e4dbf98f
      Peter Feuerer 提交于
      The bang-bang thermal governor uses a hysteresis to switch abruptly on
      or off a cooling device.  It is intended to control fans, which can
      not be throttled but just switched on or off.
      Bang-bang cannot be set as default governor as it is intended for
      special devices only.  For those special devices the driver needs to
      explicitely request it.
      
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Andreas Mohr <andi@lisas.de>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Javi Merino <javi.merino@arm.com>
      Cc: linux-pm@vger.kernel.org
      Signed-off-by: NPeter Feuerer <peter@piie.net>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      e4dbf98f
  15. 09 8月, 2014 1 次提交
    • A
      Thermal: imx: add i.mx6sx thermal support · 3c94f17e
      Anson Huang 提交于
      i.MX6SX has some new features of thermal interrupt function,
      there are LOW, HIGH and PANIC irq for thermal sensor, so add
      platform data to separate different thermal version;
      
      The reset value of LOW ALARM is 0 which means the highest
      temp, so the LOW ALARM will be triggered once irq is enabled,
      so we need to correct it before enabling thermal irq;
      
      Enable PANIC ALARM as critical trip point, it will trigger
      system reset via SRC module once PANIC IRQ is triggered, it
      is pure hardware function, so use it instead of software
      reset by cooling device.
      Signed-off-by: NAnson Huang <b20788@freescale.com>
      Tested-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      3c94f17e
  16. 29 7月, 2014 4 次提交
    • L
      thermal: add support to disable thermal zone from DTS · a020279e
      Laxman Dewangan 提交于
      Add support to check status of the thermal zone before registering the
      zone. This will help on disabling some non-existing thermal zone from
      the top level DTS file out of common dtsi thermalzone file.
      
      For example,
      we have 3 platforms almost same but thermal zones on this platform are
      little bit different. Platform 1 and 2 have three thermal zones and
      platform 3 has two thermal zones. To avoid duplication of the thermal
      zones entries on each DTS file of platforms,we created one common
      dtsi file for thermal zone and included this dtsi file from these
      3 platform's top level dts file.
      
      On common thermal zone com dtsi file, all thermal zone are enabled and
      need to disable one of thermal zone on platform 3 dts file. For this, we
      just added entry status = "disabled" for that thermal zone on platform 3
      dts file and along with this change to make it work.
      
      This way, we reuse the common file and control the enable/disable of the
      thermal zone from top level dts file.
      Signed-off-by: NLaxman Dewangan <ldewangan@nvidia.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      a020279e
    • P
      thermal: trace: Trace when temperature is above a trip point · 208cd822
      Punit Agrawal 提交于
      Create a new event to trace when the temperature is above a trip
      point. Use the trace-point when handling non-critical and critical
      trip pionts.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Eduardo Valentin <edubezval@gmail.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Signed-off-by: NPunit Agrawal <punit.agrawal@arm.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      208cd822
    • P
      thermal: trace: Trace when a cooling device's state is updated · 39811569
      Punit Agrawal 提交于
      Introduce and use an event to trace when a cooling device's state is
      updated. This is useful to follow the effect of governor decisions on
      cooling devices.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Eduardo Valentin <edubezval@gmail.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Signed-off-by: NPunit Agrawal <punit.agrawal@arm.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      39811569
    • P
      thermal: trace: Trace temperature changes · 100a8fdb
      Punit Agrawal 提交于
      Create a new event to trace the temperature of a thermal zone. Using
      this event trace the temperature changes of the thermal zone every-time
      it is updated.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Eduardo Valentin <edubezval@gmail.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Signed-off-by: NPunit Agrawal <punit.agrawal@arm.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      100a8fdb