Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5462016imm; Tue, 26 Jun 2018 11:38:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfz5IYGXU3UplRHn/sdlld0ahVZbmQPx2UfX3ORbRdHuHKD5DFLdhO3sreBAKevJRwTXSBZ X-Received: by 2002:a62:9652:: with SMTP id c79-v6mr2716914pfe.114.1530038338084; Tue, 26 Jun 2018 11:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530038338; cv=none; d=google.com; s=arc-20160816; b=thfK7beY7/i+EWCzmDY6+P8WtAmFaWNyvWDORRVGmDxuzBQj1oyyqf2vQ7y7oi2dvG fgqq3crpV63PO2dndjpH5Gq+k69DpaiWdKWk8CFoMVfDUv9jBSgai87pRrCDb5Ca3abF vJXgJfaA8mWb5A+QTl8GWMGBJ75xYx72hWEjt8ad56rIDNcs6tao4DMOKVZPY+EFXTWC Ba0PF3vjQq41Wp7t/U7imw6Dxnsh1tEWWS/Vk9m8ZOKON5NVchpTmRIohiZFwiOUj1u/ TPGHhpG/t461vATRCrZei1C2PSDXHyfE0/Gu7M143tLYBd18QLyrXs+MzpxIbSmEJ2sN +cpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=fwpfmazaPbUpslGKiP/7ECWDnmS8TmlHqSVaK1QUgIk=; b=fAwWaNQ3h3sY9wcEqYfDqdz8t2HRh/l01BNS2TOZzCy4FDtu4JJGxekcgXCiUypNuJ B78/nUWwUE65qA1Vtp1wbritRywNhYW1tWkR8Rw9HGbTrdHwO5Bb1xy4zCXO8AWwnOpp 5cZ6SH1/DAcFtSzFFUBDwRXZUrzvC7c4z83vHb83NWNOt8Hg02Je2VcWee/xEbKf+b1N enCw/aVRptOibsOviuwaUJQNi2WXAY1yD1lLug3YN94Wl1+9AAYYDRGs6d5LEJ1EJ0um 1OS+6XRwF8gUwVnsVBi+89IO6tuAUZMc8iH3o7I45ecZfAQQYpjjDzx4egxrWKpHccH8 swIQ== 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 f17-v6si1794524pgv.383.2018.06.26.11.38.44; Tue, 26 Jun 2018 11:38:58 -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 S1753458AbeFZR1F (ORCPT + 99 others); Tue, 26 Jun 2018 13:27:05 -0400 Received: from foss.arm.com ([217.140.101.70]:49964 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752732AbeFZR1E (ORCPT ); Tue, 26 Jun 2018 13:27:04 -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 B901A7A9; Tue, 26 Jun 2018 10:27:03 -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 5AB673F5AD; Tue, 26 Jun 2018 10:27:03 -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 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> Date: Tue, 26 Jun 2018 18:27:01 +0100 In-Reply-To: <20180622184223.00007bc3@huawei.com> (Jonathan Cameron's message of "Fri, 22 Jun 2018 18:42:23 +0100") Message-ID: <87muvhwja2.fsf@e105922-lin.cambridge.arm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) 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