Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp617223pxb; Thu, 31 Mar 2022 13:04:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNEYGufzesbLkDogx/kGzcKaFZb6dT73UL3uYfjMOP2rFxDxZhPrNZP6t5Zk7P2u19uRHK X-Received: by 2002:a17:90b:1c0d:b0:1c7:3b02:aa68 with SMTP id oc13-20020a17090b1c0d00b001c73b02aa68mr7988999pjb.187.1648757092004; Thu, 31 Mar 2022 13:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648757091; cv=none; d=google.com; s=arc-20160816; b=K3V7P5dZeZHNQMGHdGz+06n9lcED5zGQZ+692FHITebpzKD48U3utmlhCOXj+DuY8J foxnMTDaTachrAuZF7QNhhWBx/VLg4TyxtDxvx8tEKTK0mwwtIIeI9L4amuKON2/8+Lo C/hikAVZrwEa9c7zcs+XFVvmbWnM4C5AUhCiK3T50yqzCzlgit31Pp/8MN9FtjEVP9yp aOh7HLBeAKv7PZi79fzBeidpU/cQIWrsHMKwU0hnXdPLaeBn3gzF4qK/YqmoL9ogixjt p358m4a4yFeZntzV4xol3kZvFyfzGE4MuJMaRa53T6CKShfXl9HIRWVfqpwJdHesFaU0 gaGQ== 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=JO7Vw+/pZnPh+TsLIqn8ZnA+2f5I4P3+W00cSB5xoHo=; b=KHPwSF12vM2dayp7kQk/K3XqfmzScUJexz+VWq+NEktLx5sDvQQ/y7hoY+5yqpcdwm QeKkZDwgJaVOEjz6ro5PKArFktwH3MnDwnN1A2PT3ltm8eOhm4c5gbZgmZ0OvJe8frfL +maYyaLI+f5A5LHUUW1D+Qu2GqOuJ9CwC8mlWoc7TPvx56cVDhVarP+kchbum7V3ydJr XoGV8A6Sv/KxaumYrfgxkcS8jY4uYd0GBgdogWY65f7jryciskLuEPY4S6pY9kqa32Rg wTLsKNKim6VsuXKpA7nRCM3HSF6K64sobLCx2KGDI+5EP8o+NHESxOcGpAMvZ2iPFOez ZhNg== 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 ob7-20020a17090b390700b001bf6d2ed1a3si4902081pjb.31.2022.03.31.13.04.38; Thu, 31 Mar 2022 13:04:51 -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 S237661AbiCaOjm (ORCPT + 99 others); Thu, 31 Mar 2022 10:39:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234061AbiCaOjk (ORCPT ); Thu, 31 Mar 2022 10:39:40 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 793A4209A54 for ; Thu, 31 Mar 2022 07:37:53 -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 3DCFC13D5; Thu, 31 Mar 2022 07:37:53 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0E2313F73B; Thu, 31 Mar 2022 07:37:51 -0700 (PDT) Message-ID: Date: Thu, 31 Mar 2022 16:37:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2] arch/arm64: Fix topology initialization for core scheduling Content-Language: en-US To: Phil Auld Cc: linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Mark Rutland , Peter Zijlstra , linux-arm-kernel@lists.infradead.org References: <20220330155611.30216-1-pauld@redhat.com> <66f29bee-e26c-b40e-c3af-79d5297565d8@arm.com> <20220331132103.GB17613@pauld.bos.csb> From: Dietmar Eggemann In-Reply-To: <20220331132103.GB17613@pauld.bos.csb> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 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 31/03/2022 15:21, Phil Auld wrote: > On Thu, Mar 31, 2022 at 11:04:31AM +0200 Dietmar Eggemann wrote: >> On 30/03/2022 17:56, Phil Auld wrote: [...] >> Ah, the reason is that smt_mask is not correctly setup, so we bail on >> `cpumask_weight(smt_mask) == 1` for !leaders in: >> >> notify_cpu_starting() >> cpuhp_invoke_callback_range() >> sched_cpu_starting() >> sched_core_cpu_starting() >> >> which leads to rq->core not being correctly set for !leader-rq's. >> > > Exactly, sorry I was not clearer. smt_mask must be setup correctly > by the time sched_core_cpu_starting() is called. (Maybe I should crib > some of the above lines into the commit message?) Yeah, maybe, it wouldn't hurt I guess. IMHO mentioning stress-ng's prctl needs PR_SCHED_CORE support could also be handy since today's stress-ng packages don't seem to have this yet.