Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759416AbdLRMmj (ORCPT ); Mon, 18 Dec 2017 07:42:39 -0500 Received: from foss.arm.com ([217.140.101.70]:50072 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758934AbdLRMmg (ORCPT ); Mon, 18 Dec 2017 07:42:36 -0500 Date: Mon, 18 Dec 2017 12:42:29 +0000 From: Morten Rasmussen To: Jeremy Linton Cc: Lorenzo Pieralisi , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sudeep.holla@arm.com, hanjun.guo@linaro.org, rjw@rjwysocki.net, will.deacon@arm.com, catalin.marinas@arm.com, gregkh@linuxfoundation.org, viresh.kumar@linaro.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, jhugo@codeaurora.org, wangxiongfeng2@huawei.com, Jonathan.Zhang@cavium.com, ahs3@redhat.com, Jayachandran.Nair@cavium.com, austinwc@codeaurora.org, lenb@kernel.org, morten.rasmussen@arm.com, dietmar.eggemann@arm.com Subject: Re: [PATCH v5 7/9] arm64: Topology, rename cluster_id Message-ID: <20171218124229.GG507@e105550-lin.cambridge.arm.com> References: <20171201222330.18863-1-jeremy.linton@arm.com> <20171201222330.18863-8-jeremy.linton@arm.com> <20171213180217.GB4060@red-moon> <7bb4e955-f3e5-d22f-4e78-eac97e66a9a6@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7bb4e955-f3e5-d22f-4e78-eac97e66a9a6@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2712 Lines: 76 On Fri, Dec 15, 2017 at 10:36:35AM -0600, Jeremy Linton wrote: > Hi, > > On 12/13/2017 12:02 PM, Lorenzo Pieralisi wrote: > >[+Morten, Dietmar] > > > >$SUBJECT should be: > > > >arm64: topology: rename cluster_id > > Sure.. > > > > >On Fri, Dec 01, 2017 at 04:23:28PM -0600, Jeremy Linton wrote: > >>Lets match the name of the arm64 topology field > >>to the kernel macro that uses it. > >> > >>Signed-off-by: Jeremy Linton > >>--- > >> arch/arm64/include/asm/topology.h | 4 ++-- > >> arch/arm64/kernel/topology.c | 27 ++++++++++++++------------- > >> 2 files changed, 16 insertions(+), 15 deletions(-) > >> > >>diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h > >>index c4f2d50491eb..118136268f66 100644 > >>--- a/arch/arm64/include/asm/topology.h > >>+++ b/arch/arm64/include/asm/topology.h > >>@@ -7,14 +7,14 @@ > >> struct cpu_topology { > >> int thread_id; > >> int core_id; > >>- int cluster_id; > >>+ int physical_id; > > > >package_id ? > > Given the macro is topology_physical_package_id, either makes sense to me. > I will change it in the next set. I would vote for package_id too. arch/arm has 'socket_id' though. > > > >It has been debated before, I know. Should we keep the cluster_id too > >(even if it would be 1:1 mapped to package_id - for now) ? > > Well given that this patch replaces the patch that did that at your > request.. > > I was hoping someone else would comment here, but my take at this point is > that it doesn't really matter in a functional sense at the moment. > Like the chiplet discussion it can be the subject of a future patch along > with the patches which tweak the scheduler to understand the split. > > BTW, given that i'm OoO next week, and the following that are the holidays, > I don't intend to repost this for a couple weeks. I don't think there are > any issues with this set. > > > > >There is also arch/arm to take into account, again, this patch is > >just renaming (as it should have named since the beginning) a > >topology level but we should consider everything from a legacy > >perspective. arch/arm has gone for thread/core/socket for the three topology levels it supports. I'm not sure what short term value keeping cluster_id has? Isn't it just about where we make the package = cluster assignment? Currently it is in the definition of topology_physical_package_id. If we keep cluster_id and add package_id, it gets moved into the MPIDR/DT parsing code. Keeping cluster_id and introducing a topology_cluster_id function could help cleaning up some of the users of topology_physical_package_id that currently assumes package_id == cluster_id though. Morten