Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4064517ybl; Mon, 13 Jan 2020 07:16:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxSo0PIbY6ATBMgLG78oaRJQyT7+q39RQOwOpPZL4tJjyZXcQ8JPyLMFFs5egC8eyF103lc X-Received: by 2002:aca:f1c2:: with SMTP id p185mr13368430oih.87.1578928609767; Mon, 13 Jan 2020 07:16:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578928609; cv=none; d=google.com; s=arc-20160816; b=SGTlGcAlqi8N5CeXGlOuoeGdECp2Hc65oSikfejbzvrIO2ql/Ad/Otxlu9cC1If1/1 mbTKpZ2nlVQzkwYrc6rfFaBlXCzFCZUYc93+NzcqZOWJYUeya6u83Bk6hZpEt7IJi0IG IGMw85eKHACR8swRQTjdhVZuAnq6Pssd6yjhL2IdslhIkqF2bnEjGu1SDbLecugZY0yM gCGeW9PBDs7+K3bAkV1iYX1y+/h8UgzyV5/hfjy8NtsWVRGtovV+MYXFi9NxKadc+h8J 3iWlMhE7Q3QzhYEBVkQh6OWCj4LRDL7AwGiBGFQK1x9kRq2MdNcnR0CT2nY8cotz2siR 6yjg== 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=gFJgL8rgGQjgOYGjh41Fid2DJyDQCV2y9Z8QSMeDYY4=; b=meGa/6g9N0oXjfYKJeMB4gTrGGLM5AxMTS0N5xRqApTPvymcYI+/F/H048KTVwlRi/ ljbNsqeYvsHs65twt/cSPvhuD8JfKYPWQHif15TjlL38sk6QYblGNq3Mo29ItBK7DSFj XZV6Nd4vThBdbPAMN+YsOprsbgKJ2YaVB9rCRQVnu/isbhYMVplzeukkAhlVS4gdsuxg lcy2UiqX9vYUeaT7lLLakP0d2in7Cuo87qwTu6dh/PGzw59bXuhv4+5NyJogKx8XMwU1 ZiqCgkXRTbYiUBnWop3nnv/mlujKxOQL/lTZqkdmfzxAsaRJxlL6iaFNv+XEVgep9gvM bS+g== 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 k4si5968877oiw.55.2020.01.13.07.16.36; Mon, 13 Jan 2020 07:16:49 -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 S1726567AbgAMPPc (ORCPT + 99 others); Mon, 13 Jan 2020 10:15:32 -0500 Received: from foss.arm.com ([217.140.110.172]:40676 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726943AbgAMPPc (ORCPT ); Mon, 13 Jan 2020 10:15:32 -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 281F011B3; Mon, 13 Jan 2020 07:15:31 -0800 (PST) Received: from [10.1.194.46] (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 23E713F68E; Mon, 13 Jan 2020 07:15:30 -0800 (PST) Subject: Re: [PATCH] cpu-topology: warn if NUMA configurations conflicts with lower layer To: Dietmar Eggemann , "Zengtao (B)" , Morten Rasmussen Cc: Sudeep Holla , Linuxarm , Greg Kroah-Hartman , "Rafael J. Wysocki" , "linux-kernel@vger.kernel.org" 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> <678F3D1BB717D949B966B68EAEB446ED340AFCA0@dggemm526-mbx.china.huawei.com> <20200103114011.GB19390@bogus> <678F3D1BB717D949B966B68EAEB446ED340B31E9@dggemm526-mbx.china.huawei.com> <20200109104306.GA10914@e105550-lin.cambridge.arm.com> <678F3D1BB717D949B966B68EAEB446ED340BEDD6@dggemm526-mbx.china.huawei.com> <1a8f7963-97e9-62cc-12d2-39f816dfaf67@arm.com> <1fbe4475-363d-e800-8295-a1591d5e52d9@arm.com> From: Valentin Schneider Message-ID: <3b389423-4bc7-0706-660f-dbddf8445abd@arm.com> Date: Mon, 13 Jan 2020 15:15:28 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <1fbe4475-363d-e800-8295-a1591d5e52d9@arm.com> 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 13/01/2020 14:49, Dietmar Eggemann wrote: > LGTM. This code detects the issue in cpu_coregroup_mask(), which is the > the cpumask function of the sched domain MC level struct > sched_domain_topology_level of ARM64's (and other archs) > default_topology[]. > I wonder how x86 copes with such a config error? > Maybe they do it inside their cpu_coregroup_mask()? > > > We could move validate_topology_spans() into the existing > > for_each_cpu(i, cpu_map) > for_each_sd_topology(tl) > > loop in build_sched_domains() saving some code? > [...] Yeah that should work. Folks might want to gate it under SCHED_DEBUG, but that's another discussion.