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 1EA7A28033F; Tue, 27 May 2025 16:55:05 +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=1748364905; cv=none; b=kexjiZ+ZxZ7vZIi95aPVzqDhmX0SgS85KFdybUPj3QWFu04XLCyXfvlkaQjT+z054YulavZcS7TO5XEWDLfWce15uUXpj8tNS3pDrJ+ARu8sOT+ef0O7nBFlMqp1yL0HxOEcFjEIx3S7iJVn+eE3mTWfTqAYKUfBIsGnGfuymBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748364905; c=relaxed/simple; bh=vS86u3n7jU28v2ll7qqWLUI4Yebb41UnS21CHA2cEwk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oQilkrhBkgCMijCHF83o0nWCVA5JEW8xvE5GhVLZ8ciC28eUBnS9y2R5Y+8dI0N8JPR1qm02Yoe4a66iSwt1Wdg7sZreBaz0r30ar4wNSo6TAMUZG38HuUpWaX6jHZvREvTwNWdbzp+UYoJ2KdF27iOKFa0HK9cKAgW2TM3T+Pw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rxA2Raep; 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="rxA2Raep" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99508C4CEE9; Tue, 27 May 2025 16:55:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748364905; bh=vS86u3n7jU28v2ll7qqWLUI4Yebb41UnS21CHA2cEwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rxA2RaepN3VjUMrZXfbZlENx+WMTHLSQ+kHanUCAGQZTgLjSdw8OQqHztjX9k04fd snYcgSs5X5u0rV0QmDhYicFcRif/A7DhtmtxaMNj0k8ltCE/xUd+ysCzuVaFjCWjNs Dj4CroMnNZS3qkgOZhYBrvdE9XUWMPQKDwxgxkT8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sumit Gupta , Thierry Reding , Aaron Kling , Viresh Kumar , Sasha Levin Subject: [PATCH 6.12 203/626] cpufreq: tegra186: Share policy per cluster Date: Tue, 27 May 2025 18:21:36 +0200 Message-ID: <20250527162453.267569163@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250527162445.028718347@linuxfoundation.org> References: <20250527162445.028718347@linuxfoundation.org> User-Agent: quilt/0.68 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.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aaron Kling [ Upstream commit be4ae8c19492cd6d5de61ccb34ffb3f5ede5eec8 ] This functionally brings tegra186 in line with tegra210 and tegra194, sharing a cpufreq policy between all cores in a cluster. Reviewed-by: Sumit Gupta Acked-by: Thierry Reding Signed-off-by: Aaron Kling Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/cpufreq/tegra186-cpufreq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/cpufreq/tegra186-cpufreq.c b/drivers/cpufreq/tegra186-cpufreq.c index 7b8fcfa55038b..4e5b6f9a56d1b 100644 --- a/drivers/cpufreq/tegra186-cpufreq.c +++ b/drivers/cpufreq/tegra186-cpufreq.c @@ -73,11 +73,18 @@ static int tegra186_cpufreq_init(struct cpufreq_policy *policy) { struct tegra186_cpufreq_data *data = cpufreq_get_driver_data(); unsigned int cluster = data->cpus[policy->cpu].bpmp_cluster_id; + u32 cpu; policy->freq_table = data->clusters[cluster].table; policy->cpuinfo.transition_latency = 300 * 1000; policy->driver_data = NULL; + /* set same policy for all cpus in a cluster */ + for (cpu = 0; cpu < ARRAY_SIZE(tegra186_cpus); cpu++) { + if (data->cpus[cpu].bpmp_cluster_id == cluster) + cpumask_set_cpu(cpu, policy->cpus); + } + return 0; } -- 2.39.5