Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1379673ioo; Sun, 22 May 2022 12:35:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhUznZh78SV14xjwiuTSfk2oD/gB7hmYPwh+lom2HXKFWPHijbJN9bg1lBuqpHXvUoNv+z X-Received: by 2002:a17:90a:d713:b0:1df:d114:deef with SMTP id y19-20020a17090ad71300b001dfd114deefmr21477045pju.13.1653248142951; Sun, 22 May 2022 12:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653248142; cv=none; d=google.com; s=arc-20160816; b=mM1Bv/OqstfPQ4xyCbw2V7GrCwNBYxKmflePQAf2Kxe4gq9llVNe0sV5Zi7h9RxuKF HCGcocKC0wW7JV6iz0XO32MX60Pz3ZcKx3yE26udJd/5I7QwOagu2lDLcxkvz8FbXOVF 8CyQELlFo5Zp3pcdv5mb+MK3Lb/iLs7PT966PRxpSMwyiQluHJqwFUeSDxpglwVdYeW9 08hR6snyja6ignL1Jdp960zCak1K7BUTtrKjuOaUHYT1/WjKbi61x+7aFMEd0wSIY/6U 5eYMV6jY7HvkDIejGiD/zB6sFvDwOuaTzPw5bQivBd05ri74N2pn3aMmFkxY9Zdbq0XW Uvbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=uQSUgms9AnYGn5DwqYxex+S71aBrFXoCV8a/8Dbobu8=; b=iN+p1q/Tfad4o9H+AHNuMi8mYDhksZQL7ogleX7SZZHKOYGfXOKFPw5iwHrbGEud61 BEhF0sC/FgrH9fIkMue/+41UDWc7PVNqGL+XHoJULPFB3GU0dnaq1JDSKxEFH4mIpR0J GYmwkzI8zkBIYZfQVxTSuO6pia1VUigCrIYtEVWp0Qs5q8MEVchqOVjV025EUxHMqHzK sc+1XAZ0GiJj8p2dGmbZ3iawGZM5+QvMYv3/zsygAQAA63OFTrNNA3tnHhD9tzNg2NeG /PSlFE/w4OgB8pxuqaza0TfQsOXVlnIf8XxKrGugw6SvqgHzTNGwdCrQwWACiT157LuL U1+A== 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 j19-20020aa78dd3000000b005105cb7e94fsi9298661pfr.271.2022.05.22.12.35.31; Sun, 22 May 2022 12:35:42 -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 S1349262AbiETMcg (ORCPT + 99 others); Fri, 20 May 2022 08:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243910AbiETMcd (ORCPT ); Fri, 20 May 2022 08:32:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7BD6B985A6 for ; Fri, 20 May 2022 05:32:32 -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 4A7EF1477; Fri, 20 May 2022 05:32:32 -0700 (PDT) Received: from [172.29.1.145] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC9513F718; Fri, 20 May 2022 05:32:29 -0700 (PDT) Message-ID: Date: Fri, 20 May 2022 14:32:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 2/8] arch_topology: Set thread sibling cpumask only within the cluster Content-Language: en-US To: Sudeep Holla , Atish Patra , linux-kernel@vger.kernel.org Cc: Atish Patra , Vincent Guittot , Morten Rasmussen , Qing Wang , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, Rob Herring References: <20220518093325.2070336-1-sudeep.holla@arm.com> <20220518093325.2070336-3-sudeep.holla@arm.com> From: Dietmar Eggemann In-Reply-To: <20220518093325.2070336-3-sudeep.holla@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 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. [...]