From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B8E4C433FE for ; Wed, 6 Oct 2021 13:56:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E451B61165 for ; Wed, 6 Oct 2021 13:56:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238320AbhJFN6R (ORCPT ); Wed, 6 Oct 2021 09:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238218AbhJFN6O (ORCPT ); Wed, 6 Oct 2021 09:58:14 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FE8CC061749; Wed, 6 Oct 2021 06:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=E5FS5KeYsBA2zglyqvar557fDUOETk9K+8At4cmpf7k=; b=VfvWhA8dhnyfU6ojtqgYy99v0v kb9spvMYBeJiBeJo/qRdFTkCMLgM8qy5ridzVPhwl9OaF6nS5ygGJ6AknOupO7REEYzSKKcCRA9o2 H1iZhQYzHaVirMottGI3WPjiNNNSUZ0Y4ThmIgFD5ln0wUWBg4u4Jq2XabjqmkjQUXhCaRvl5sySu yzdEErWXOEvCMSN3QlYVodwBnC9Oduldwq6WtBz707sgpXyxb6tRBOT6nUkZZdN+wQiv/d2q3yENY D1W2BtBjlv+gmg1Nn3cHT3vejT8en8J33Q5qLPk+yi/MgB4/N8Fzzft4BCbndkC2Y+PA+/sAYxE3K Wo3rvbqg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mY7Oh-008HuP-7x; Wed, 06 Oct 2021 13:55:51 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id CF66B98623A; Wed, 6 Oct 2021 15:55:50 +0200 (CEST) Date: Wed, 6 Oct 2021 15:55:50 +0200 From: Peter Zijlstra To: Barry Song <21cnbao@gmail.com> Cc: Valentin Schneider , Dietmar Eggemann , LKML , Ingo Molnar , Vincent Guittot , Aubrey Li , Borislav Petkov , Daniel Bristot de Oliveira , Ben Segall , Catalin Marinas , Greg Kroah-Hartman , Guodong Xu , "H. Peter Anvin" , Jonathan Cameron , Juri Lelli , "Cc: Len Brown" , ACPI Devel Maling List , LAK , Linuxarm , Mark Rutland , Mel Gorman , msys.mizuma@gmail.com, "Zengtao (B)" , "Rafael J. Wysocki" , Steven Rostedt , Barry Song , Sudeep Holla , Thomas Gleixner , "Rafael J. Wysocki" , Tim Chen , Will Deacon , x86 , yangyicong , Tian Tao Subject: Re: [PATCH RESEND 1/3] topology: Represent clusters of CPUs within a die Message-ID: <20211006135550.GJ174703@worktop.programming.kicks-ass.net> References: <20210924085104.44806-1-21cnbao@gmail.com> <20210924085104.44806-2-21cnbao@gmail.com> <87o883l9c8.mognet@arm.com> <20211006121858.GI174703@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 07, 2021 at 01:50:43AM +1300, Barry Song wrote: > On Thu, Oct 7, 2021 at 1:20 AM Peter Zijlstra wrote: > > > > On Wed, Oct 06, 2021 at 11:50:35PM +1300, Barry Song wrote: > > > > > > diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c > > > > index 7cb31d959f33..fc0836f460fb 100644 > > > > --- a/drivers/base/arch_topology.c > > > > +++ b/drivers/base/arch_topology.c > > > > @@ -622,7 +622,8 @@ void update_siblings_masks(unsigned int cpuid) > > > > if (cpuid_topo->package_id != cpu_topo->package_id) > > > > continue; > > > > > > > > - if (cpuid_topo->cluster_id == cpu_topo->cluster_id) { > > > > + if (cpuid_topo->cluster_id == cpu_topo->cluster_id && > > > > + cpuid_topo->cluster_id != -1) { > > > > cpumask_set_cpu(cpu, &cpuid_topo->cluster_sibling); > > > > cpumask_set_cpu(cpuid, &cpu_topo->cluster_sibling); > > > > } > > > > > > > > > > Hi Peter, > > > Would you like to change this line in your tree? > > > > Can you please double check: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=sched/next > > yes. It is correct for patch 1/3, thanks! > > BTW, patch2/3 is missing some benchmark data and tested-by/SOB tags, i guess > it is because you are still editing? Urgh, no, that's my script thinking one of the many -------------- lines you got in there was a terminator. Fixed it, should be pushed out again in a few minutes.