]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
sched/uclamp: Fix iowait boost escaping uclamp restriction
authorQais Yousef <qais.yousef@arm.com>
Thu, 16 Dec 2021 22:53:20 +0000 (22:53 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:38:05 +0000 (14:38 +0200)
commit740702bfbea180cd77d87701c554ef2b3f113432
treea0f1ae2c5b25a38368f263bc02875274f39e6f17
parentef2934c0ed70b81a61292f8d2adaf5835c6616db
sched/uclamp: Fix iowait boost escaping uclamp restriction

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit d37aee9018e68b0d356195caefbb651910e0bbfa ]

iowait_boost signal is applied independently of util and doesn't take
into account uclamp settings of the rq. An io heavy task that is capped
by uclamp_max could still request higher frequency because
sugov_iowait_apply() doesn't clamp the boost via uclamp_rq_util_with()
like effective_cpu_util() does.

Make sure that iowait_boost honours uclamp requests by calling
uclamp_rq_util_with() when applying the boost.

Fixes: 982d9cdc22c9 ("sched/cpufreq, sched/uclamp: Add clamps for FAIR and RT tasks")
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20211216225320.2957053-3-qais.yousef@arm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit d2c741290f7e2f48709b7f67c862b3f708998824)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
kernel/sched/cpufreq_schedutil.c