From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6216330B1F; Fri, 17 Oct 2025 15:51:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760716293; cv=none; b=KsQjswtd6X2Y9K7H+hBDg0W+4iMgh/Azv3Egnq/QZuglMdThg5y8my3OMciWlhTU07QVXWXDjGHsWP0QKdmnW6C+/Vox8hOCDT/WBlis209WTkdqe5+3/ZpS1B9O+madASmMEEQDQSMzQlt+vR2NNFifJy54jw4mzNXSmTXeupI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760716293; c=relaxed/simple; bh=MvgxDz3p8JW8qd07lAkDY4m1qcktZCpiOZ5vL/r5k/A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HIU1qG92jENQj0sSO235f7/eizvXIs6ks41JMs8BWbdL8gVuqkuReTthpKF1lNMJZLEWaovIyCJCJ/9JVxjRfqLQO6w6VRmJ3UiNU83ry2FiJSBKKunaCQLlirbHQIPoqcbEnFBMi/TZ0rpMIpOOp4cQp8wDllfQDA6flU1hzkw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x2b3NMJT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="x2b3NMJT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9215C4CEE7; Fri, 17 Oct 2025 15:51:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760716293; bh=MvgxDz3p8JW8qd07lAkDY4m1qcktZCpiOZ5vL/r5k/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x2b3NMJTR7UpCxN5mKj+5EuSIjo2Ehan+HG/3/xtqUI08V9/xYOhdlSZWy9vkPPUc uI5oUzFEv48dRxUCLahKzu3Whw2oOS6uuvsqeKeWcTw3DJMHQ78Mz2KL4gP7IRIeVl mZLRk3/7UIP7ZBnkjg0BOhqo3XMErovQ64ehZies= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Aaron Kling , Mikko Perttunen , Viresh Kumar , Sasha Levin Subject: [PATCH 5.15 139/276] cpufreq: tegra186: Set target frequency for all cpus in policy Date: Fri, 17 Oct 2025 16:53:52 +0200 Message-ID: <20251017145147.557335939@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145142.382145055@linuxfoundation.org> References: <20251017145142.382145055@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aaron Kling [ Upstream commit 0b1bb980fd7cae126ee3d59f817068a13e321b07 ] The original commit set all cores in a cluster to a shared policy, but did not update set_target to apply a frequency change to all cores for the policy. This caused most cores to remain stuck at their boot frequency. Fixes: be4ae8c19492 ("cpufreq: tegra186: Share policy per cluster") Signed-off-by: Aaron Kling Reviewed-by: Mikko Perttunen Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/cpufreq/tegra186-cpufreq.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/tegra186-cpufreq.c b/drivers/cpufreq/tegra186-cpufreq.c index 5d1943e787b0c..af7edddaa84e4 100644 --- a/drivers/cpufreq/tegra186-cpufreq.c +++ b/drivers/cpufreq/tegra186-cpufreq.c @@ -86,10 +86,14 @@ static int tegra186_cpufreq_set_target(struct cpufreq_policy *policy, { struct tegra186_cpufreq_data *data = cpufreq_get_driver_data(); struct cpufreq_frequency_table *tbl = policy->freq_table + index; - unsigned int edvd_offset = data->cpus[policy->cpu].edvd_offset; + unsigned int edvd_offset; u32 edvd_val = tbl->driver_data; + u32 cpu; - writel(edvd_val, data->regs + edvd_offset); + for_each_cpu(cpu, policy->cpus) { + edvd_offset = data->cpus[cpu].edvd_offset; + writel(edvd_val, data->regs + edvd_offset); + } return 0; } -- 2.51.0