* [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace"
@ 2022-04-22 14:10 Daniel Lezcano
2022-04-22 14:10 ` [PATCH 2/2] thermal/governor: Remove deprecated information Daniel Lezcano
2022-04-22 14:50 ` [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Rafael J. Wysocki
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Lezcano @ 2022-04-22 14:10 UTC (permalink / raw)
To: rafael, daniel.lezcano
Cc: srinivas.pandruvada, rui.zhang, linux-pm, linux-kernel,
Amit Kucheria
This reverts commit a67a46af4ad6342378e332b7420c1d1a2818c53f.
It has been reported the warning is annoying as the cooling device
state is still needed on some production system.
Meanwhile we provide a way to consolidate the thermal framework to
prevent multiple actors acting on the cooling devices with conflicting
decisions, let's revert this warning.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/thermal/thermal_sysfs.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
index f154bada2906..1c4aac8464a7 100644
--- a/drivers/thermal/thermal_sysfs.c
+++ b/drivers/thermal/thermal_sysfs.c
@@ -610,9 +610,6 @@ cur_state_store(struct device *dev, struct device_attribute *attr,
unsigned long state;
int result;
- dev_warn_once(&cdev->device,
- "Setting cooling device state is deprecated\n");
-
if (sscanf(buf, "%ld\n", &state) != 1)
return -EINVAL;
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] thermal/governor: Remove deprecated information
2022-04-22 14:10 [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Daniel Lezcano
@ 2022-04-22 14:10 ` Daniel Lezcano
2022-04-22 14:50 ` [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Lezcano @ 2022-04-22 14:10 UTC (permalink / raw)
To: rafael, daniel.lezcano
Cc: srinivas.pandruvada, rui.zhang, linux-pm, linux-kernel,
Amit Kucheria
The userspace governor is still on different production system and the
deprecating warning is scary.
Even if we want to get rid of the userspace governor, it is too soon
yet as the alternatives are not yet adopted.
Change the deprecated warning by an information message suggesting to
switch to the netlink thermal events.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/thermal/Kconfig | 6 ++++--
drivers/thermal/gov_user_space.c | 3 +--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index e37691e0bf20..0e5cc948373c 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -113,8 +113,10 @@ config THERMAL_DEFAULT_GOV_USER_SPACE
bool "user_space"
select THERMAL_GOV_USER_SPACE
help
- Select this if you want to let the user space manage the
- platform thermals.
+ The Userspace governor allows to get trip point crossed
+ notification from the kernel via uevents. It is recommended
+ to use the netlink interface instead which gives richer
+ information about the thermal framework events.
config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR
bool "power_allocator"
diff --git a/drivers/thermal/gov_user_space.c b/drivers/thermal/gov_user_space.c
index 64a18e354a20..72c90486b46d 100644
--- a/drivers/thermal/gov_user_space.c
+++ b/drivers/thermal/gov_user_space.c
@@ -17,8 +17,7 @@
static int user_space_bind(struct thermal_zone_device *tz)
{
- pr_warn_once("Userspace governor deprecated: use thermal netlink " \
- "notification instead\n");
+ pr_info_once("Consider using the netlink events interface\n");
return 0;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace"
2022-04-22 14:10 [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Daniel Lezcano
2022-04-22 14:10 ` [PATCH 2/2] thermal/governor: Remove deprecated information Daniel Lezcano
@ 2022-04-22 14:50 ` Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2022-04-22 14:50 UTC (permalink / raw)
To: Daniel Lezcano
Cc: Rafael J. Wysocki, Pandruvada, Srinivas, Zhang, Rui, Linux PM,
Linux Kernel Mailing List, Amit Kucheria
On Fri, Apr 22, 2022 at 4:11 PM Daniel Lezcano
<daniel.lezcano@linaro.org> wrote:
>
> This reverts commit a67a46af4ad6342378e332b7420c1d1a2818c53f.
>
> It has been reported the warning is annoying as the cooling device
> state is still needed on some production system.
>
> Meanwhile we provide a way to consolidate the thermal framework to
> prevent multiple actors acting on the cooling devices with conflicting
> decisions, let's revert this warning.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> ---
> drivers/thermal/thermal_sysfs.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
> index f154bada2906..1c4aac8464a7 100644
> --- a/drivers/thermal/thermal_sysfs.c
> +++ b/drivers/thermal/thermal_sysfs.c
> @@ -610,9 +610,6 @@ cur_state_store(struct device *dev, struct device_attribute *attr,
> unsigned long state;
> int result;
>
> - dev_warn_once(&cdev->device,
> - "Setting cooling device state is deprecated\n");
> -
> if (sscanf(buf, "%ld\n", &state) != 1)
> return -EINVAL;
>
> --
Applied along with the [2/2] as 5.18-rc material, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-22 14:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22 14:10 [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Daniel Lezcano
2022-04-22 14:10 ` [PATCH 2/2] thermal/governor: Remove deprecated information Daniel Lezcano
2022-04-22 14:50 ` [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox