Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17762261ybl; Thu, 2 Jan 2020 11:32:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzDTNkQKvI+Y+u3MgrRu/8kIT0fHQHTPzsdtBdmXAaU+1z8wzSqe8Ded+K3d6X4NzYV9M1d X-Received: by 2002:a9d:6a5a:: with SMTP id h26mr96136276otn.103.1577993578061; Thu, 02 Jan 2020 11:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577993578; cv=none; d=google.com; s=arc-20160816; b=IGYJelkmW81SWxJblnkAEkt0Eymrmwggi+jxFe8YLWdNZg2eqynHEcN8CJPZjytFA9 XEFtXd0xOH2ZaUM5GIIG5sREztW2ldCUq/C1b84IeY8VBRd2xNc+d4uL25o3rdicVDoZ poHgLYILq42dtdLqFdHA2GvjKvU68mGdxfC5vGwIcY1G8QvhsMB/FGXVYW+MrD4aFNs7 ASmAWJFiT4cKZvzb1ininhdO1JdsHclIwK7671ts+2Hp1tFDFFeB20R74HMhsAUwCdA6 VOY2AyS+RHNrWlmqKqsTJucJRSKQpMGJWU1zft2gCf6j0kZM3pjPerg1HbofAB+rpiZx JzVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=MurwzjAzSdkmJyIEPLb/az+sORBr+B78DJvE+ywHPfY=; b=VB5u9ti7EnSgRUMlQxCXwSQZDYzz8TroqmRckejH+z25NtxWDVevFlpb4z19eHGayj UHPJijEHm6Ik07GP2ybY3xFlwnNsxZNozdFkDco8EFNVFVgyPp6eZIdsFzjGIY6Tqn8p MXrach5diakYz0Nxv1RLH9gc5oh0/JoFB9NDHBoDev8lpN9/TnoRkiAAM73Hk/UDxcPm VdSrBr+W5CIPeYq/tCh3Kkir7kK7v4QrDnqGa6db1m0nNknN1Acra/u/kcUSzQ3ImFve p5C6E5OxtvtFELBEipc+0u747ACTX8w2QTS/aVUWRs2W0M44+/oEsGWAc+MYY1iNTtt/ 3xbA== 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 v28si28285458ote.55.2020.01.02.11.32.45; Thu, 02 Jan 2020 11:32:58 -0800 (PST) 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 S1728324AbgABTbB (ORCPT + 99 others); Thu, 2 Jan 2020 14:31:01 -0500 Received: from foss.arm.com ([217.140.110.172]:49508 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728135AbgABTbB (ORCPT ); Thu, 2 Jan 2020 14:31:01 -0500 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 03130328; Thu, 2 Jan 2020 11:31:01 -0800 (PST) Received: from [192.168.0.7] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B9F863F703; Thu, 2 Jan 2020 11:30:59 -0800 (PST) Subject: Re: [PATCH] cpu-topology: warn if NUMA configurations conflicts with lower layer To: Valentin Schneider , "Zengtao (B)" , Sudeep Holla Cc: Linuxarm , Greg Kroah-Hartman , "Rafael J. Wysocki" , "linux-kernel@vger.kernel.org" , Morten Rasmussen References: <1577088979-8545-1-git-send-email-prime.zeng@hisilicon.com> <20191231164051.GA4864@bogus> <678F3D1BB717D949B966B68EAEB446ED340AE1D3@dggemm526-mbx.china.huawei.com> <20200102112955.GC4864@bogus> <678F3D1BB717D949B966B68EAEB446ED340AEB67@dggemm526-mbx.china.huawei.com> From: Dietmar Eggemann Message-ID: Date: Thu, 2 Jan 2020 20:30:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/01/2020 14:22, Valentin Schneider wrote: > On 02/01/2020 12:47, Zengtao (B) wrote: [...] >> From schedule view of point, lower level sched domain should be a subset of higher >> Level sched domain. >> > > Right, and that is checked when you have sched_debug on the cmdline > (or write 1 to /sys/kernel/debug/sched_debug & regenerate the sched domains) You should even get informed in case CONFIG_SCHED_DEBUG is not set. BUG: arch topology borken With CONFIG_SCHED_DEBUG (and a CPU removed from the cpu_mask (DIE level) on an Arm64 Juno board) you get extra information: BUG: arch topology borken the MC domain not a subset of the DIE domain > Now, I don't know how this plays out for the numa-in-package topologies like > the one suggested by Sudeep. x86 and AMD had to play some games to get > numa-in-package topologies working, see e.g. > > cebf15eb09a2 ("x86, sched: Add new topology for multi-NUMA-node CPUs") > Yeah, the reason why we need this change would be interesting. [...]