Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1035675ioo; Sun, 22 May 2022 01:25:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu0jlNuz1IlRWLz0RWCb5KprvqxUBCRw5wnsbpYzUNS6VVk3ycr1WWXDyK4rgvS6IBVfcQ X-Received: by 2002:a17:90b:33c4:b0:1e0:55d:d625 with SMTP id lk4-20020a17090b33c400b001e0055dd625mr10283282pjb.218.1653207928602; Sun, 22 May 2022 01:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653207928; cv=none; d=google.com; s=arc-20160816; b=LlRONg9geOkHjT3eaLvkkdENcyjs1INEVD5nMMNNxQHaWMMCghQH69YjmMB3O8pJ2Y 9unoXX7KYDKCFiaSU9Z0CdTmqSfJ7Oer7AjZekfP8lwtwldTuZTwRAypTQ+myB1/XeRu ELGmdyGDPJ9Jup3nofqjv7j8HsXzAM9OV4iH9DK3lPUA78ZraF+Y2PkshKH5SsHRm39r adq1NPowA3HZDVR/+DXsJ+sHUMeCHJgdtsj0iMsZNu9+2lHdmICg369O4UbiBbdH/vVq XqRISLWoSu/KRu0tUJA6oPHtvSYDH6mI2nTp0dGn8eTILr+ftbymXTF/FH/TlpqzDcEC 2Tww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AuLZmih30xQLzs+1NB0O57OQZMtAhOmgwGG/MEOq8aw=; b=AbJMobZdPHEjlbETWGAPasNgF47VVXjYNNv+JFFx+oEZ1Z3WeKxWozxrzCXV2j46HM HlDf8EC7F8KP+/6YFTYPP5dmfQqC7/XTu+fduN90fTdpH8bpDg6C1Q/SBdaHbw/OM/b1 XR2MDFqaM8T3dRtpyxW6OlI+cfTrbJI7VqYUH/oTPdCGihPXrM2YDHmDR2lLR7m84H5n IVQadhEonQh9akjPUQKpNDC5VVUEbB8GP2Agr8vojGDq+VRzo5dTVT6arPoT6k26CQQg V9WdXYQrcA3rMr/ofR6waUv0YqqKJM3sb1KT0pGM7uz0MKnNWNwrGJ0EZ6crhkLgoVNg Cqrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a17090a6a8c00b001d9bee7dd25si8854615pjj.101.2022.05.22.01.25.16; Sun, 22 May 2022 01:25:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233277AbiETNVE (ORCPT + 99 others); Fri, 20 May 2022 09:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349641AbiETNUl (ORCPT ); Fri, 20 May 2022 09:20:41 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A16516A260 for ; Fri, 20 May 2022 06:20:35 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AA1C21477; Fri, 20 May 2022 06:20:34 -0700 (PDT) Received: from bogus (unknown [10.57.66.157]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6B74F3F73D; Fri, 20 May 2022 06:20:32 -0700 (PDT) Date: Fri, 20 May 2022 14:20:25 +0100 From: Sudeep Holla To: Dietmar Eggemann Cc: Atish Patra , linux-kernel@vger.kernel.org, Atish Patra , Vincent Guittot , Morten Rasmussen , Qing Wang , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, Rob Herring Subject: Re: [PATCH v2 2/8] arch_topology: Set thread sibling cpumask only within the cluster Message-ID: <20220520132025.sbbmnusnmls3ruow@bogus> References: <20220518093325.2070336-1-sudeep.holla@arm.com> <20220518093325.2070336-3-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 20, 2022 at 02:32:19PM +0200, Dietmar Eggemann wrote: > On 18/05/2022 11:33, Sudeep Holla wrote: > > Currently the cluster identifier is not set on the DT based platforms. > > The reset or default value is -1 for all the CPUs. Once we assign the > > cluster identifier values correctly that imay result in getting the thread > > siblings wrongs as the core identifiers can be same for 2 different CPUs > > belonging to 2 different cluster. > > > > So, in order to get the thread sibling cpumasks correct, we need to > > update them only if the cores they belong are in the same cluster within > > the socket. Let us skip updation of the thread sibling cpumaks if the > > cluster identifier doesn't match. > > So this issue should be there on ACPI systems as well then. Kunpeng920 > and Ampere Altra don't have SMT, so very likely nobody has noticed this > so far. No, I think it is handled correctly. May be the wordings of my commit log needs changing. Previously the core ids were generated and unique across the platform. But with this change I am assigned the id as read from the DT node using core@. That results in the problem and needs to be taken care. This doesn't change the end result(the actual mask) but the way we arrive at that. In short this is not fixing any issue that was broken before. -- Regards, Sudeep