Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5462854imm; Tue, 26 Jun 2018 11:39:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK3D2/+MWQx6E9p1KI7CRafEibtyDPUBWt4WGa9AS96/D6ENArwNqF9cVkuMQvhHcYSaZ0w X-Received: by 2002:a17:902:760d:: with SMTP id k13-v6mr2775235pll.56.1530038394576; Tue, 26 Jun 2018 11:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530038394; cv=none; d=google.com; s=arc-20160816; b=nhMOOSpWJlDfZpGlJpAgOW74Ts6JdyWvG8g0NbdKv8+3awzIoUAE2T3Ks6cPrA8XYm /VF7SOEcJYtEjSvCoOqeoKlTLXPzlFsUQZph657b1xGD1BP7ft9GdTjWXnpWwhqqVxje 6n65HSXwPbUlXY0x5YlKV2AUnTeR4islxnMXIr4/CuhYHnhWPq/y6pR5nzkoo33Zkkv0 KKMSIVJizict1BGl8Fmf4zITS78c6qTWX+hE46q9bey05E+szYa2abM5LWVXlCA5e5b2 7KWpDuYglT7Ezpn1GEevE8UC2VZ0cz28p26BgGpmMvKfMBAFb7KeiIT60hHHqBKl2FMH e9+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=fwpfmazaPbUpslGKiP/7ECWDnmS8TmlHqSVaK1QUgIk=; b=e3eg4Yk6OqD8ruUB2H6ZYrq3UgazlS3MPoEUchZl+2C2WGRBMjikxOn/QJazvwx6mb UISYVTVPrJNFYAIjREOTuq1VnaRrY2escM/I9z7jfyKs1z+8Y+winuIDAlupqmckpj5B hzNNBnpL6+5niOO5fyeOKQA7kH1bZKn6jPx91fAwFIpTDw7onWbwUbPMzaw+SKAE4WMM XJUSGFOs7qA8z/YpEc9cbe8FsKRW4imlc7EHzqHhsTyHkJVIDc4hO0XeDFB1JCJMAQCj XjaU+8ufERJw0xvOU/DxdIHmuwVwE6/yl1mj/heqdl/0Zf/9jqmh8MiPsAZh7xSCgimw 1b6A== 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 s10-v6si2145133pfk.213.2018.06.26.11.39.40; Tue, 26 Jun 2018 11:39:54 -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 S1753906AbeFZR1R (ORCPT + 99 others); Tue, 26 Jun 2018 13:27:17 -0400 Received: from foss.arm.com ([217.140.101.70]:50014 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752976AbeFZR1P (ORCPT ); Tue, 26 Jun 2018 13:27:15 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 29062ED1; Tue, 26 Jun 2018 10:27:15 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.206.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C1A543F5AD; Tue, 26 Jun 2018 10:27:14 -0700 (PDT) From: Punit Agrawal To: Jonathan Cameron Cc: Michal Hocko , Lorenzo Pieralisi , Catalin Marinas , , Xie XiuQi , , "Rafael J. Wysocki" , Will Deacon , "Linux Kernel Mailing List" , Jarkko Sakkinen , , Greg Kroah-Hartman , Bjorn Helgaas , linux-arm , Hanjun Guo , Bjorn Helgaas , Andrew Morton , zhongjiang , Subject: Re: [PATCH 1/2] arm64: avoid alloc memory on offline node In-Reply-To: <20180622184223.00007bc3@huawei.com> (Jonathan Cameron's message of "Fri, 22 Jun 2018 18:42:23 +0100") References: <20180619120714.GE13685@dhcp22.suse.cz> <874lhz3pmn.fsf@e105922-lin.cambridge.arm.com> <20180619140818.GA16927@e107981-ln.cambridge.arm.com> <87wouu3jz1.fsf@e105922-lin.cambridge.arm.com> <20180619151425.GH13685@dhcp22.suse.cz> <87r2l23i2b.fsf@e105922-lin.cambridge.arm.com> <20180619163256.GA18952@e107981-ln.cambridge.arm.com> <814205eb-ae86-a519-bed0-f09b8e2d3a02@huawei.com> <87602d3ccl.fsf@e105922-lin.cambridge.arm.com> <5c083c9c-473f-f504-848b-48506d0fd380@huawei.com> <20180622091153.GU10465@dhcp22.suse.cz> <87y3f7yv89.fsf@e105922-lin.cambridge.arm.com> <20180622184223.00007bc3@huawei.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Date: Tue, 26 Jun 2018 18:27:13 +0100 Message-ID: <87lgb1wj9q.fsf@e105922-lin.cambridge.arm.com> 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 Jonathan Cameron writes: [...] > > I'll test it when back in the office, but I had a similar issue with > memory only nodes when I moved the SRAT listing for cpus from the 4 > 4th mode to the 3rd node to fake some memory I could hot unplug. > This gave a memory only node for the last node on the system. > > When I instead moved cpus from the 3rd node to the 4th (so the node > with only memory was now in the middle, everything worked). > > Was odd, and I'd been meaning to chase it down but hadn't gotten to it > yet. If I get time I'll put together some test firmwares as see if there > are any other nasty corner cases we aren't handling. If you get a chance, it'd be really helpful to test reversing the ordering of entries in the SRAT and booting with a restricted NR_CPUS. This issue was found through code inspection. Please make sure to use the updated patch from Lorenzo for your tests[0]. [0] https://marc.info/?l=linux-acpi&m=152998665713983&w=2 > > Jonathan > >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel