Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752189AbeABC3y (ORCPT + 1 other); Mon, 1 Jan 2018 21:29:54 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3213 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752026AbeABC3v (ORCPT ); Mon, 1 Jan 2018 21:29:51 -0500 Subject: Re: [PATCH v5 7/9] arm64: Topology, rename cluster_id To: Morten Rasmussen , Jeremy Linton 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> <20171218124229.GG507@e105550-lin.cambridge.arm.com> CC: Lorenzo Pieralisi , , , , , , , , , , , , , , , , , , , , From: Xiongfeng Wang Message-ID: <965127a6-816b-8e0c-d228-a3d73a8c643a@huawei.com> Date: Tue, 2 Jan 2018 10:29:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20171218124229.GG507@e105550-lin.cambridge.arm.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.32.209] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi, On 2017/12/18 20:42, Morten Rasmussen wrote: > 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 >> [cut] >> >> 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. I think we still need the information describing which cores are in one cluster. Many arm64 chips have the architecture core/cluster/socket. Cores in one cluster may share a same L2 cache. That information can be used to build the sched_domain. If we put cores in one cluster in one sched_domain, the performance will be better.(please see kernel/sched/topology.c:1197, cpu_coregroup_mask() uses 'core_sibling' to build a multi-core sched_domain) So I think we still need variable to record which cores are in one sched_domain for future use. Thanks, Xiongfeng > > Morten > > . >