Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp510456ybb; Wed, 25 Mar 2020 04:24:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu4nMYrFjkSjP2hi9U4MyrgxzvTDkFOPJsyhasaO0U9rndn1qb1LSzp3TizwFeResj7O5bF X-Received: by 2002:aca:e08a:: with SMTP id x132mr2076856oig.93.1585135472934; Wed, 25 Mar 2020 04:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585135472; cv=none; d=google.com; s=arc-20160816; b=yUEkdu0+kPBdD850n0/Ax1XzmFwoW8zLmBArumFwE66WikABMrWKCpTWbJa6EH5c8R l42ByegKcpugt2Lhu6tQXWFSNN+4xmtk2ZMt9IyLiXfP7j1egIH/ZPUH9nkL6cAluUMI 2zAYMTZAeiWbwnBcfm41Pve50X367t7FV+KNZNa3z0cOu17zxSSsWwmUQd6llzAXRTCu 1pkz92s3bhGIVW+5wYD3ieJxGRBMguyrXoyhC4NQHKjekw0F6lsJ4wY6FUskFxJDz8A1 blfogbf7bL72eRE3/ntsNbUlHOKQr9ds8dY5grCIFh2FIkT/Dm0NNwhq84NRxnuleCIj BtYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:date:in-reply-to:message-id :subject:cc:to:from:user-agent:references; bh=dxZRj21BdLrWpRI+gFXfN3qhmt5+ZQDSnxK+fJ11cYU=; b=WnywhHRn7Fj2cFatAqMMpUzURa3uLdK9SM+1vBDoLJs+RxiDl8TS5GXPSjMp3t0JrA 3uiE2/0ZQHJoIbm1j1rCgEMlj/7WY3zIO6+xJKvf1INwXG7MUSNmoUEkkdhUBxx4z7JF r6VfoG+OOR3K803gnj/i2e3ygPSUfL2leUstGPKAG0jdMUw7UbHjZFtwzzEh1XufN5yX KBJpy7H9cU9Eumhmxh9rbWhO//MmWmwF6cNUzwzrxiAkpnsp4kJFlob3BGrqHUghxrGq 5bxGPJJSi8fvPZT1DFE7d43nXcQZh+fXUi9tD//fTSHWNMPy717beePMYxfs+RVfVMK4 VCQg== 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 i11si1229872otj.33.2020.03.25.04.24.20; Wed, 25 Mar 2020 04:24:32 -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 S1727319AbgCYLW7 (ORCPT + 99 others); Wed, 25 Mar 2020 07:22:59 -0400 Received: from foss.arm.com ([217.140.110.172]:46878 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbgCYLW7 (ORCPT ); Wed, 25 Mar 2020 07:22:59 -0400 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 9A75F31B; Wed, 25 Mar 2020 04:22:58 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 97A883F71F; Wed, 25 Mar 2020 04:22:57 -0700 (PDT) References: <20200324125533.17447-1-valentin.schneider@arm.com> <4aa814d5-abcd-23b3-323c-5a3503ae3d0a@arm.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Dietmar Eggemann Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@kernel.org, vincent.guittot@linaro.org, morten.rasmussen@arm.com, mgorman@techsingularity.net Subject: Re: [PATCH] sched/topology: Fix overlapping sched_group build Message-ID: In-reply-to: <4aa814d5-abcd-23b3-323c-5a3503ae3d0a@arm.com> Date: Wed, 25 Mar 2020 11:22:52 +0000 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 25 2020, Dietmar Eggemann wrote: >> I somehow missed that this triggers the WARN_ON_ONCE() in >> init_overlap_sched_group(). Gotta figure out why. > > Cool, seems like qemu can emulate this! > > > qemu-system-aarch64 -kernel Image -hda ./qemu-image-aarch64.img -append > 'root=/dev/vda console=ttyAMA0 loglevel=8 sched_debug' -smp cores=8 > --nographic -m 512 -cpu cortex-a53 -machine virt -numa > node,cpus=0-1,nodeid=0 -numa node,cpus=2-3,nodeid=1, -numa > node,cpus=4-5,nodeid=2, -numa node,cpus=6-7,nodeid=3, -numa > dist,src=0,dst=1,val=12, -numa dist,src=0,dst=2,val=20, -numa > dist,src=0,dst=3,val=22, -numa dist,src=1,dst=2,val=22, -numa > dist,src=1,dst=3,val=24, -numa dist,src=2,dst=3,val=12 > > ... > [ 0.711685] > [ 0.711767] 10 12 20 22 > [ 0.711860] 12 10 22 24 > [ 0.711917] 20 22 10 12 > [ 0.711970] 22 24 12 10 > [ 0.712036] > [ 0.718356] CPU0 attaching sched-domain(s): > [ 0.718433] domain-0: span=0-1 level=MC > [ 0.718646] groups: 0:{ span=0 cap=1006 }, 1:{ span=1 cap=1015 } > [ 0.718865] domain-1: span=0-3 level=NUMA > [ 0.718906] groups: 0:{ span=0-1 cap=2021 }, 2:{ span=2-3 cap=2014 } > [ 0.719044] domain-2: span=0-5 level=NUMA > [ 0.719082] groups: 0:{ span=0-3 cap=4035 }, 4:{ span=4-7 cap=3855 } > [ 0.719164] ERROR: groups don't span domain->span > [ 0.719191] domain-3: span=0-7 level=NUMA > [ 0.719228] groups: 0:{ span=0-5 mask=0-1 cap=5974 }, 6:{ > span=4-7 mask=6-7 cap=3964 } > [ 0.719961] CPU1 attaching sched-domain(s): > ... > I wasn't aware you could specify the distances directly on the CLI, that's awesome! Thanks for pointing this out.