Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp618833ybb; Fri, 10 Apr 2020 06:51:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJ/t4GvN5h0sGYx3XsAHuVfmcqn5ZNH3Onnf4LeNHgQswt14Z2yLdHD0EKmZHB0GEOPQhwc X-Received: by 2002:a05:6214:12af:: with SMTP id w15mr5327330qvu.89.1586526663051; Fri, 10 Apr 2020 06:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586526663; cv=none; d=google.com; s=arc-20160816; b=texc9HXAw6RJZNzSA/B8hOi+3scggPyWu8PbD7bINsZGzEQCBlGSuyugTEl1AayCnR igaviwNtJQ5S8tYeWUdL4pSCrNTtCkb6GCaDqIhjHou+R3wUKkPH51XpMxDU9d196kYa 8+x9SRUhr6hBvafLL493oagM+xYGyWG8L9BJkpxadcW7oefDqRyzSGGgemAQ+LxNocmv Du85MDSKmt4fq+zvv33ycLNkyMoNowjXdAm+GDMMI+NgXzhRT+DkltkY6aOP7ar3Arfe iSOJ9Zo4owddB2pXWumroTL1G1Nvu1HJ2UtyZK3/7elo6hjcfALOjdG68zuAv3oUHDdY 7ZjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=0ic4v8FNgO4etMIMUQ2PBdOjLmhcFVpjkvslnSb+jLE=; b=Bct4ZcqTsWZxJLmGlD6mOkGa4foRzO3nMdxiXcHh8xnPqVwbdTOXxCMT7qJs75/T7s nr1Ttcq1Ncp+4WpZy3Nuv8BZg4/ZaKBx3qAsIvPjw78obdYnqrIzgAmyxVygNzrKO3/L aUjgPF3OBgPRAyFXgPTUVTKj0VTakLQ8vTg7xLhkjmvJ1oNPTo71b5UKWYpzlO3u8ajB phHKW3GkTw88KYzDJzv5KQR14aOCgrluCS/T8V8rxwEZOPXNUK9hspDyyPkk7cs8rmRm 2NtrlCPXXymTw8s/0KCFPmTfmNdllKsG+dio0swZRE06KBa6AB62jAKOQLs7QizLkj3Q eilA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si1191774qtz.282.2020.04.10.06.50.47; Fri, 10 Apr 2020 06:51:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726594AbgDJNth (ORCPT + 99 others); Fri, 10 Apr 2020 09:49:37 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:49360 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726092AbgDJNth (ORCPT ); Fri, 10 Apr 2020 09:49:37 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 596B9A9B2A27F0B6AE9F; Fri, 10 Apr 2020 21:49:32 +0800 (CST) Received: from [127.0.0.1] (10.133.217.205) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Apr 2020 21:49:21 +0800 Subject: Re: [PATCH] sched/arm64: store cpu topology before notify_cpu_starting To: Joel Fernandes CC: Vineeth Remanan Pillai , , , , "Cc: Frederic Weisbecker" , Julien Desfossez , "Joel Fernandes (Google)" , Kees Cook , Greg Kerr , LKML , , Ingo Molnar , , , , , Peter Zijlstra , Paul Turner , Thomas Gleixner , , Linus Torvalds , Valentin Schneider , , , , "chengjian (D)" , "wxf.wang@hisilicon.com >> Xuefeng Wang" References: <855831b59e1b3774b11c3e33050eac4cc4639f06.1583332765.git.vpillai@digitalocean.com> <20200401114215.36640-1-cj.chengjian@huawei.com> From: "chengjian (D)" Message-ID: <5cf3996f-0a35-1d98-ec11-9247e95e01e6@huawei.com> Date: Fri, 10 Apr 2020 21:49:18 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.133.217.205] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/4/10 1:54, Joel Fernandes wrote: > On Wed, Apr 1, 2020 at 7:27 AM Cheng Jian wrote: >> when SCHED_CORE enabled, sched_cpu_starting() uses thread_sibling as >> SMT_MASK to initialize rq->core, but only after store_cpu_topology(), >> the thread_sibling is ready for use. >> >> notify_cpu_starting() >> -> sched_cpu_starting() # use thread_sibling >> >> store_cpu_topology(cpu) >> -> update_siblings_masks # set thread_sibling >> >> Fix this by doing notify_cpu_starting later, just like x86 do. >> >> Signed-off-by: Cheng Jian > Just a high-level question, why does core-scheduling matter on ARM64? > Is it for HPC workloads? > > Thanks, > > - Joel Hi, Joel I am analyzing the mainline scheduling patches and find this problem. ARM has some platforms that support SMT, and provides some emulate can be used. Thanks. --Cheng Jian