<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/include/linux/thermal.h, branch linux-5.11.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.11.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.11.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2020-12-11T13:11:13Z</updated>
<entry>
<title>thermal/core: Add critical and hot ops</title>
<updated>2020-12-11T13:11:13Z</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-12-10T12:15:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d7203eedf4f68e9909fd489453168a9d26bf0c3d'/>
<id>urn:sha1:d7203eedf4f68e9909fd489453168a9d26bf0c3d</id>
<content type='text'>
Currently there is no way to the sensors to directly call an ops in
interrupt mode without calling thermal_zone_device_update assuming all
the trip points are defined.

A sensor may want to do something special if a trip point is hot or
critical.

This patch adds the critical and hot ops to the thermal zone device,
so a sensor can directly invoke them or let the thermal framework to
call the sensor specific ones.

Tested-by: Kai-Heng Feng &lt;kai.heng.feng@canonical.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
Link: https://lore.kernel.org/r/20201210121514.25760-2-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: cooling: Remove unused variable *tz</title>
<updated>2020-10-12T10:08:36Z</updated>
<author>
<name>zhuguangqing</name>
<email>zhuguangqing@xiaomi.com</email>
</author>
<published>2020-09-14T07:11:01Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ecd1d2a3e4f893584578a304d7bd1591e895a8e4'/>
<id>urn:sha1:ecd1d2a3e4f893584578a304d7bd1591e895a8e4</id>
<content type='text'>
1. devfreq_cooling.c: The variable *tz is not used in
devfreq_cooling_get_requested_power(), devfreq_cooling_state2power()
and devfreq_cooling_power2state().

2. cpufreq_cooling.c: After 84fe2cab48590, the variable *tz is not used
anymore in cpufreq_get_requested_power(), cpufreq_state2power() and
cpufreq_power2state().

Remove the variable *tz.

Signed-off-by: zhuguangqing &lt;zhuguangqing@xiaomi.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20200914071101.13575-1-zhuguangqing83@gmail.com
</content>
</entry>
<entry>
<title>thermal: core: Add new event for sending keep alive notifications</title>
<updated>2020-10-12T10:08:35Z</updated>
<author>
<name>Srinivas Pandruvada</name>
<email>srinivas.pandruvada@linux.intel.com</email>
</author>
<published>2020-09-15T22:36:49Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=88052319620a35f827509d645e4c8063ded751c8'/>
<id>urn:sha1:88052319620a35f827509d645e4c8063ded751c8</id>
<content type='text'>
This event is sent by the platform firmware to confirm that
user space thermal solution is alive. The response to this event
from the user space thermal solution is platform specific.

Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20200915223650.406046-3-srinivas.pandruvada@linux.intel.com
</content>
</entry>
<entry>
<title>thermal: core: genetlink support for events/cmd/sampling</title>
<updated>2020-07-07T13:55:21Z</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-07-06T10:55:37Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00'/>
<id>urn:sha1:1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00</id>
<content type='text'>
Initially the thermal framework had a very simple notification
mechanism to send generic netlink messages to the userspace.

The notification function was never called from anywhere and the
corresponding dead code was removed. It was probably a first attempt
to introduce the netlink notification.

At LPC2018, the presentation "Linux thermal: User kernel interface",
proposed to create the notifications to the userspace via a kfifo.

The advantage of the kfifo is the performance. It is usually used from
a 1:1 communication channel where a driver captures data and sends it
as fast as possible to a userspace process.

The drawback is that only one process uses the notification channel
exclusively, thus no other process is allowed to use the channel to
get temperature or notifications.

This patch defines a generic netlink API to discover the current
thermal setup and adds event notifications as well as temperature
sampling. As any genetlink protocol, it can evolve and the versioning
allows to keep the backward compatibility.

In order to prevent the user from getting flooded with data on a
single channel, there are two multicast channels, one for the
temperature sampling when the thermal zone is updated and another one
for the events, so the user can get the events only without the
thermal zone temperature sampling.

Also, a list of commands to discover the thermal setup is added and
can be extended when needed.

Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200706105538.2159-3-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: Make thermal_zone_device_is_enabled() available to core only</title>
<updated>2020-07-06T23:26:07Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
<email>andrzej.p@collabora.com</email>
</author>
<published>2020-07-03T10:43:54Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=514acd00f957afa9b2a1fd521b2f180a950ee5e3'/>
<id>urn:sha1:514acd00f957afa9b2a1fd521b2f180a950ee5e3</id>
<content type='text'>
This function is not needed by drivers.

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@collabora.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20200703104354.19657-4-andrzej.p@collabora.com
</content>
</entry>
<entry>
<title>thermal: Rename set_mode() to change_mode()</title>
<updated>2020-06-29T18:26:39Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
<email>andrzej.p@collabora.com</email>
</author>
<published>2020-06-29T12:29:25Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f5e50bf4d3ef0aba4d5414c9ed51fa4a02e2ed12'/>
<id>urn:sha1:f5e50bf4d3ef0aba4d5414c9ed51fa4a02e2ed12</id>
<content type='text'>
set_mode() is only called when tzd's mode is about to change. Actual
setting is performed in thermal_core, in thermal_zone_device_set_mode().
The meaning of set_mode() callback is actually to notify the driver about
the mode being changed and giving the driver a chance to oppose such
change.

To better reflect the purpose of the method rename it to change_mode()

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@collabora.com&gt;
[for acerhdf]
Acked-by: Peter Kaestle &lt;peter@piie.net&gt;
Reviewed-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20200629122925.21729-12-andrzej.p@collabora.com
</content>
</entry>
<entry>
<title>thermal: Add mode helpers</title>
<updated>2020-06-29T18:26:36Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
<email>andrzej.p@collabora.com</email>
</author>
<published>2020-06-29T12:29:20Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ac5d9ecc74d8beee8c87f1441e4adaf4e9fe90c5'/>
<id>urn:sha1:ac5d9ecc74d8beee8c87f1441e4adaf4e9fe90c5</id>
<content type='text'>
Prepare for making the drivers not access tzd's private members.

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@collabora.com&gt;
Reviewed-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
[staticize thermal_zone_device_set_mode()]
Signed-off-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20200629122925.21729-7-andrzej.p@collabora.com
</content>
</entry>
<entry>
<title>thermal: remove get_mode() operation of drivers</title>
<updated>2020-06-29T18:26:35Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
<email>andrzej.p@collabora.com</email>
</author>
<published>2020-06-29T12:29:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1ee14820fd8ee79c4fc191155f48c985f28040e2'/>
<id>urn:sha1:1ee14820fd8ee79c4fc191155f48c985f28040e2</id>
<content type='text'>
get_mode() is now redundant, as the state is stored in struct
thermal_zone_device.

Consequently the "mode" attribute in sysfs can always be visible, because
it is always possible to get the mode from struct tzd.

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@collabora.com&gt;
[for acerhdf]
Acked-by: Peter Kaestle &lt;peter@piie.net&gt;
Reviewed-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20200629122925.21729-6-andrzej.p@collabora.com
</content>
</entry>
<entry>
<title>thermal: Add current mode to thermal zone device</title>
<updated>2020-06-29T18:26:34Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
<email>andrzej.p@collabora.com</email>
</author>
<published>2020-06-29T12:29:17Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=cbba1d719534b77b857267890b0f54f0f0a90de4'/>
<id>urn:sha1:cbba1d719534b77b857267890b0f54f0f0a90de4</id>
<content type='text'>
Prepare for changing the place where the mode is stored: now it is in
drivers, which might or might not implement get_mode()/set_mode() methods.
A lot of cleanup can be done thanks to storing it in struct tzd. The
get_mode() methods will become redundant.

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@collabora.com&gt;
Reviewed-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Reviewed-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20200629122925.21729-4-andrzej.p@collabora.com
</content>
</entry>
<entry>
<title>thermal: Remove thermal_zone_device_update() stub</title>
<updated>2020-04-14T09:41:12Z</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:47Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0145f67866b71e8c1da3c1d9412623db7ba8a0c8'/>
<id>urn:sha1:0145f67866b71e8c1da3c1d9412623db7ba8a0c8</id>
<content type='text'>
All users of the function depends on THERMAL, no stub is
needed. Remove it.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-9-daniel.lezcano@linaro.org
</content>
</entry>
</feed>
