Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4106153imm; Mon, 14 May 2018 02:39:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqZiZZrHHNtcSK/iTETjS2/hyDFsRClUqz7UMoH4rf/rE6TLQy8+CjYIg8TwfpguJ0oPl6s X-Received: by 2002:a17:902:8a:: with SMTP id a10-v6mr9019844pla.89.1526290785273; Mon, 14 May 2018 02:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526290785; cv=none; d=google.com; s=arc-20160816; b=DAAn4Tj8jSmfnyM70qX/tUa2+hjhK0U1tZNTbeZ0b8HGtJZca8letfXvZDzk5xJMwU UK5tpyq4C371RhMjVHernKNFGjclFLEsHQ5KD18NWHpKLvoCpqnXNCYGzpt+4h0I+b7Q gwjC4jkF9F83ouA8gqqdC0drPYleT+7E7h680AVmIy8NhtQhASwhDDVxVpYXzhZHmXYR Qs3jPNcPf47pxpIJZryAZrCg88EQs4Q66p/dXuu/fmU95LN1AZIaE2aLPO6k7Dxl+bEA ppoWxqcNbS80y8B/5DyVF1R0ymmMm8FV15k9XsiZTEl9m6o97gPNaY0JECQe2NyNVcef 23Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=OOw6HNZ7CH7m3nyB6E7Jsc2p/5IMjOCPUhz4UISTKYc=; b=UIs8qcdF3jAGnKlyEOGq3O7X0vI9RZuOpMMfl1Cnv1082aNGMDG1MzMWl4ZpMm1V85 VMDlZ6HKctUSSSJ9Zm/e8ayrHCYbKquYOQv4K8kId5BIOGV0pZkLEKxH6K26iqtKsEuH 66N/bgX0q3tv1rB8uKcT+NfeWT4zzC82Q8EpqVaQKeumxE7n/9D3VzcjEaxJhzZ4X9pW k2h5ByJs10n9IOhgsMezJQAtFBjRnDIxyhd8dqOkNddbzUZg2+AqyxwhrtQNiCktKV6e MJxa5MEvn+Po2VnpVo9CNnG9gMlXXAy/xsYnV2wJFM2nz/GrNyXTnWo5/LhUKrXV1M0g JB0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=TLU1gAZ6; 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 o9-v6si7753762pgn.199.2018.05.14.02.39.30; Mon, 14 May 2018 02:39:45 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=TLU1gAZ6; 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 S1752297AbeENJjO (ORCPT + 99 others); Mon, 14 May 2018 05:39:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56526 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbeENJjN (ORCPT ); Mon, 14 May 2018 05:39:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OOw6HNZ7CH7m3nyB6E7Jsc2p/5IMjOCPUhz4UISTKYc=; b=TLU1gAZ6CH/rw1OQfRnTA2JI/ WjcxCTwwPx03Zh8RG/KxGhQVqByu07PJyVe8f1WOSmOJwYQ9S/gzuoB4TQTpv0xFyGaHvgszqdBHB OxfqWJYt2xsvbeXfPk3+KaToeJy6swHCBFEL1/NYIBdNmMv5p5nInCI9GVZ5cC9qLmhUlOMNioFlJ pahH4hERT/dMG+0TT/1qR54q0LJBcxa+MCWESq+kJTgRVSv+/qXmS5vQi+6ggk2ltQBQrSyiaJ6OO +9XVpQ9kkWJRiZz0B30F5CdRGuUloOcOtlYLtniIaHaki8NLYP2llGijRL8q4ej9Hqur76ydsjeq8 hDKlIAHmg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fI9wl-000371-DQ; Mon, 14 May 2018 09:39:11 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4B17B2029F86C; Mon, 14 May 2018 11:39:09 +0200 (CEST) Date: Mon, 14 May 2018 11:39:09 +0200 From: Peter Zijlstra To: Heiko Carstens Cc: Suravee Suthikulpanit , Ingo Molnar , Andre Wild , linux-kernel@vger.kernel.org Subject: Re: [bisected] 051f3ca02e46 "Introduce NUMA identity node sched domain" breaks fake NUMA on s390 Message-ID: <20180514093909.GO12217@hirez.programming.kicks-ass.net> References: <20180512100233.GB3738@osiris> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180512100233.GB3738@osiris> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 12, 2018 at 12:02:33PM +0200, Heiko Carstens wrote: > Hello, > > Andre Wild reported that fake NUMA doesn't work on s390 anymore. Doesn't > work means it crashed for Andre, or it is in an endless loop within > init_sched_groups_capacity() for me (sg != sd->groups is always true). > > I could reproduce this with a very simple setup with only two nodes, where > each node has only one CPU. This allowed me to bisect it down to commit > 051f3ca02e46 ("sched/topology: Introduce NUMA identity node sched domain"). > > With that commit reverted the system comes up again and the scheduling > domains look like this: > > [ 0.148592] smp: Bringing up secondary CPUs ... > [ 0.148984] smp: Brought up 2 nodes, 2 CPUs > [ 0.149097] CPU0 attaching sched-domain(s): > [ 0.149099] domain-0: span=0-1 level=NUMA > [ 0.149101] groups: 0:{ span=0 }, 1:{ span=1 } > [ 0.149106] CPU1 attaching sched-domain(s): > [ 0.149107] domain-0: span=0-1 level=NUMA > [ 0.149108] groups: 1:{ span=1 }, 0:{ span=0 } > [ 0.149111] span: 0-1 (max cpu_capacity = 1024) > > Any idea what's going wrong? Not yet; still trying to decipher your fake nume implementation. But meanwhile; could you provide me with: $ cat /sys/devices/system/node/node*/distance $ cat /sys/devices/system/node/node*/cpulist