FAILED: patch "[PATCH] thermal: devfreq_cooling: Fix perf state when calculate dfc" failed to apply to 5.15-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 5.15-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y
git checkout FETCH_HEAD
git cherry-pick -x a26de34b3c77ae3a969654d94be49e433c947e3b
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024033050-imitation-unmixed-ef53@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From a26de34b3c77ae3a969654d94be49e433c947e3b Mon Sep 17 00:00:00 2001
From: Ye Zhang <[email protected]>
Date: Thu, 21 Mar 2024 18:21:00 +0800
Subject: [PATCH] thermal: devfreq_cooling: Fix perf state when calculate dfc
res_util
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The issue occurs when the devfreq cooling device uses the EM power model and the get_real_power() callback is provided by the driver.
The EM power table is sorted ascending,can't index the table by cooling device state,so convert cooling state to performance state by dfc->max_state - dfc->capped_state.
drivers/thermal/devfreq_cooling.c +1 -1
@@ -214,7 +214,7 @@ static int devfreq_cooling_get_requested_power(struct thermal_cooling_device *cd res = dfc->power_ops->get_real_power (df, power, freq, voltage);if (!res) { - state = dfc->capped_state; + state = dfc->max_state - dfc->capped_state;/* Convert EM power into milli-Watts first */ rcu_read_lock ();
Lukasz Luba
reviewerHi Greg,
Quoted 5 lines · On 3/30/24 09:46, [email protected] wrote:
The patch below does not apply to the 5.15-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Would you like my help? I can create a backport to v5.15.y and send to the list.
Regards,
Lukasz
Quoted 57 lines
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y
git checkoutFETCH_HEAD
git cherry-pick -xa26de34b3c77ae3a969654d94be49e433c947e3b
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024033050-imitation-unmixed-ef53@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^..Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From
a26de34b3c77ae3a969654d94be49e433c947e3bMon Sep 17 00:00:00 2001
From: Ye Zhang <[email protected]>
Date: Thu, 21 Mar 2024 18:21:00 +0800
Subject: [PATCH] thermal:devfreq_cooling: Fix perf state when calculate dfc
res_util
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bitThe issue occurs when the devfreq cooling device uses the EM power model and the
get_real_power()callback is provided by the driver.The EM power table is sorted ascending,can't index the table by cooling device state,so convert cooling state to performance state by
dfc->max_state-dfc->capped_state.Fixes 615510fe13bd ("thermal: devfreq_cooling: remove old power model and use EM")Cc 5.11+ <[email protected]> # 5.11+Signed-off-by Ye Zhang <[email protected]>Reviewed-by Dhruva Gole <[email protected]>Reviewed-by Lukasz Luba <[email protected]>Signed-off-by Rafael J. Wysocki <[email protected]>drivers/thermal/devfreq_cooling.c +1
-1@@ -214,7 +214,7 @@ static int devfreq_cooling_get_requested_power(struct thermal_cooling_device *cd res = dfc->power_ops->get_real_power (df, power, freq, voltage);if (!res) { - state = dfc->capped_state; + state = dfc->max_state - dfc->capped_state;/* Convert EM power into milli-Watts first */ rcu_read_lock ();
Greg KH
maintainerQuoted 11 lines · Lukasz Luba
Hi Greg,
Quoted 5 lines · On 3/30/24 09:46, [email protected] wrote:
The patch below does not apply to the 5.15-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.Would you like my help? I can create a backport to v5.15.y and send to the list.
Please do!