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 5FBCB2F12B0; Fri, 17 Oct 2025 15:05:20 +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=1760713520; cv=none; b=CTenXUdogM0mZUgPKkpHnLvHFzPxCPAC0LzP2e1P37qbImarsBXxcHB29gAH9+unZ8m6CgXaz/ey3ZTAQrDoCy/L+haxsyhZLlaCAjqie+KAiGtb+Z8ojyiAl2cE5/ZPvBXarsdhL8WhK/gCftekQ+kQp/0xe+fe3VmEcc8ISCI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713520; c=relaxed/simple; bh=g71SR9oCoux/U8+rH/cyqoLXFKWS6Kl3KRNSSefY4UM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B1INI7jtMwbRZZc2JDRXCj23ctGQr9XX/dkoPzHTl+I8b+NPrXrRhnAFgJWlDRJtJtlhVCsBCeQwk63gav/qwt/1sw4yEl8o/9UEUy2Tw6l0kKVjSSeXvRVXUtKUnsxCuL6DdoXvBFKDz8Mr7TIPKh7tf57crBfIWOgmLJBKACU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IADPSama; 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="IADPSama" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4B25C4CEE7; Fri, 17 Oct 2025 15:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760713520; bh=g71SR9oCoux/U8+rH/cyqoLXFKWS6Kl3KRNSSefY4UM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IADPSamaYY2S4UEPl4k1aavNzWjDeMETegHlyO8KkHA60QHUxzPb+S5EfJHtjkANG UqefxyFAvmVeTQiZhpDs9BBVSZxN/Z8SBrxLlM2VOkl0n8vGfC/OFMTaZiCY3n9F8N 2d7xFQ4unITv+WU1go0X2da/6D0cID4LF/KKJTQM= 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 6.6 026/201] cpufreq: tegra186: Set target frequency for all cpus in policy Date: Fri, 17 Oct 2025 16:51:27 +0200 Message-ID: <20251017145135.704172472@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145134.710337454@linuxfoundation.org> References: <20251017145134.710337454@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-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 7b8fcfa55038b..39186008afbfd 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