<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/thermal/devfreq_cooling.c, branch linux-5.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-12-15T16:03:56Z</updated>
<entry>
<title>thermal/drivers/devfreq_cooling: Fix the build when !ENERGY_MODEL</title>
<updated>2020-12-15T16:03:56Z</updated>
<author>
<name>Lukasz Luba</name>
</author>
<published>2020-12-15T15:42:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4401117bf7fc11dc738c0963fa0c94814abc8dcd'/>
<id>urn:sha1:4401117bf7fc11dc738c0963fa0c94814abc8dcd</id>
<content type='text'>
Prevent build failure if the option CONFIG_ENERGY_MODEL is not set. The
devfreq cooling is able to operate without the Energy Model.
Don't use dev-&gt;em_pd directly and use local pointer.

Fixes: 615510fe13bd2 ("thermal: devfreq_cooling: remove old power model and use EM")
Reported-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20201215154221.8828-1-lukasz.luba@arm.com
</content>
</entry>
<entry>
<title>thermal: devfreq_cooling: remove old power model and use EM</title>
<updated>2020-12-11T13:10:44Z</updated>
<author>
<name>Lukasz Luba</name>
</author>
<published>2020-12-10T14:30:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=615510fe13bd2434610193f1acab53027d5146d6'/>
<id>urn:sha1:615510fe13bd2434610193f1acab53027d5146d6</id>
<content type='text'>
Remove old power model and use new Energy Model to calculate the power
budget. It drops static + dynamic power calculations and power table
in order to use Energy Model performance domain data. This model
should be easy to use and could find more users. It is also less
complicated to setup the needed structures.

Reviewed-by: Ionela Voinescu &lt;ionela.voinescu@arm.com&gt;
Signed-off-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20201210143014.24685-5-lukasz.luba@arm.com
</content>
</entry>
<entry>
<title>thermal: devfreq_cooling: add new registration functions with Energy Model</title>
<updated>2020-12-11T13:10:44Z</updated>
<author>
<name>Lukasz Luba</name>
</author>
<published>2020-12-10T14:30:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=84e0d87c9944eb36ae6037af5cb6905f67c074c5'/>
<id>urn:sha1:84e0d87c9944eb36ae6037af5cb6905f67c074c5</id>
<content type='text'>
The Energy Model (EM) framework supports devices such as Devfreq. Create
new registration function which automatically register EM for the thermal
devfreq_cooling devices. This patch prepares the code for coming changes
which are going to replace old power model with the new EM.

Reviewed-by: Ionela Voinescu &lt;ionela.voinescu@arm.com&gt;
Signed-off-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20201210143014.24685-4-lukasz.luba@arm.com
</content>
</entry>
<entry>
<title>thermal: devfreq_cooling: use a copy of device status</title>
<updated>2020-12-11T13:10:44Z</updated>
<author>
<name>Lukasz Luba</name>
</author>
<published>2020-12-10T14:30:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=229794eee27fddbedd03be5f8b20375a2637ff48'/>
<id>urn:sha1:229794eee27fddbedd03be5f8b20375a2637ff48</id>
<content type='text'>
Devfreq cooling needs to now the correct status of the device in order
to operate. Devfreq framework can change the device status in the
background. To mitigate issues make a copy of the status structure and use
it for internal calculations.

In addition this patch adds normalization function, which also makes sure
that whatever data comes from the device, the load will be in range from 1
to 1024.

Reviewed-by: Ionela Voinescu &lt;ionela.voinescu@arm.com&gt;
Signed-off-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20201210143014.24685-3-lukasz.luba@arm.com
</content>
</entry>
<entry>
<title>thermal: devfreq_cooling: change tracing function and arguments</title>
<updated>2020-12-11T13:10:44Z</updated>
<author>
<name>Lukasz Luba</name>
</author>
<published>2020-12-10T14:30:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b8643a529930802778b04a4fe3f5cd53d9d6057c'/>
<id>urn:sha1:b8643a529930802778b04a4fe3f5cd53d9d6057c</id>
<content type='text'>
Prepare for deleting the static and dynamic power calculation and clean
the trace function. These two fields are going to be removed in the next
changes.

Reviewed-by: Ionela Voinescu &lt;ionela.voinescu@arm.com&gt;
Reviewed-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt; # for tracing code
Signed-off-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20201210143014.24685-2-lukasz.luba@arm.com
</content>
</entry>
<entry>
<title>thermal: cooling: Remove unused variable *tz</title>
<updated>2020-10-12T10:08:36Z</updated>
<author>
<name>zhuguangqing</name>
</author>
<published>2020-09-14T07:11:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/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: Update power allocator and devfreq cooling to SPDX licensing</title>
<updated>2020-07-30T17:26:10Z</updated>
<author>
<name>Lukasz Luba</name>
</author>
<published>2020-07-30T16:51:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0de967f24e6c26fca3845e5a5970866ae59ac766'/>
<id>urn:sha1:0de967f24e6c26fca3845e5a5970866ae59ac766</id>
<content type='text'>
Update the license to the SPDX licensing format.

Signed-off-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20200730165117.13998-1-lukasz.luba@arm.com
</content>
</entry>
<entry>
<title>thermal: devfreq_cooling: Use PM QoS to set frequency limits</title>
<updated>2020-04-14T09:41:12Z</updated>
<author>
<name>Matthias Kaehlcke</name>
</author>
<published>2020-03-18T11:45:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=04fa9c804b0ed50a3c6bae1d4b60a2494c81a23f'/>
<id>urn:sha1:04fa9c804b0ed50a3c6bae1d4b60a2494c81a23f</id>
<content type='text'>
Now that devfreq supports limiting the frequency range of a device
through PM QoS make use of it instead of disabling OPPs that should
not be used.

The switch from disabling OPPs to PM QoS introduces a subtle behavioral
change in case of conflicting requests (min &gt; max): PM QoS gives
precedence to the MIN_FREQUENCY request, while higher OPPs disabled
with dev_pm_opp_disable() would override MIN_FREQUENCY.

Signed-off-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Reviewed-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
Reviewed-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/20200318114548.19916-4-lukasz.luba@arm.com
</content>
</entry>
<entry>
<title>thermal: devfreq_cooling: Appease the kernel-doc deity</title>
<updated>2020-01-27T09:24:32Z</updated>
<author>
<name>Amit Kucheria</name>
</author>
<published>2019-11-20T15:45:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1b5cb9570670a6277cc0bba70409402359f7715d'/>
<id>urn:sha1:1b5cb9570670a6277cc0bba70409402359f7715d</id>
<content type='text'>
Fix up the following warnings with make W=1:

linux.git/drivers/thermal/devfreq_cooling.c:68: warning: Function
parameter or member 'capped_state' not described in
'devfreq_cooling_device'
linux.git/drivers/thermal/devfreq_cooling.c:593: warning: Function
parameter or member 'cdev' not described in 'devfreq_cooling_unregister'
linux.git/drivers/thermal/devfreq_cooling.c:593: warning: Excess
function parameter 'dfc' description in 'devfreq_cooling_unregister'

Signed-off-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Reviewed-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Link: https://lore.kernel.org/r/7059d82472fe12139fc7a3379c5b9716a23cce5c.1574242756.git.amit.kucheria@linaro.org
</content>
</entry>
<entry>
<title>trace: thermal: add another parameter 'power' to the tracing function</title>
<updated>2017-05-05T07:54:45Z</updated>
<author>
<name>Lukasz Luba</name>
</author>
<published>2017-05-04T11:34:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=771ffa14ead18887bed400c09f4bde5bca5bf342'/>
<id>urn:sha1:771ffa14ead18887bed400c09f4bde5bca5bf342</id>
<content type='text'>
This patch adds another parameter to the trace function:
trace_thermal_power_devfreq_get_power().

In case when we call directly driver's code for the real power,
we do not have static/dynamic_power values. Instead we get total
power in the '*power' value. The 'static_power' and
'dynamic_power' are set to 0.

Therefore, we have to trace that '*power' value in this scenario.

CC: Steven Rostedt &lt;rostedt@goodmis.org&gt;
CC: Ingo Molnar &lt;mingo@redhat.com&gt;
CC: Zhang Rui &lt;rui.zhang@intel.com&gt;
CC: Eduardo Valentin &lt;edubezval@gmail.com&gt;
Acked-by: Javi Merino &lt;javi.merino@kernel.org&gt;
Signed-off-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
</content>
</entry>
</feed>
