Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4465862imu; Tue, 29 Jan 2019 01:57:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN5KLNV4o+690au/jPL8NWDuE9NLVGRI0KcK/3G6abXd1wWElodryzj0rzjmWuEJemRep7ZJ X-Received: by 2002:a62:a99:: with SMTP id 25mr25114521pfk.121.1548755849441; Tue, 29 Jan 2019 01:57:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548755849; cv=none; d=google.com; s=arc-20160816; b=JY5CNr8Y/j6XrAf4Mn/CLw8BiwLEhyeXcUeL/tu1qutafNdx+WD0UZMiKWQ+KUt6gO Ohw9XJZJ25Gob+PIUuNU09kJhaDQy29Js7KRobyxgBFbnkul/RKYUl+/h/7zb39Dyxu4 +eVJEVVVLS2iKYhnatCdLTQ1gBjcJs9B04usF4sib2PtSX2lflUefFEi6dyoWcdeW0GF cSacC5GFYFHy73W1j0/gUbv0oHvI0r/BfU59kR/lB8BqnUu6iBt5MCfhsb4GPUikHNbr 6iN9jl2VgTW1vqvDPNrzDA4XLXG0TrLDhDcO3BeRg5juodlxPEjine84ImVuUQOA8Esp JG7g== 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:references :in-reply-to:subject:cc:to:from; bh=WbE8t9KAvtVePuQuvsmVC/LGoOb3TuwrhK/Zmu4WaXI=; b=UhIqTyEAbi9S4ofEWf4wJpPJhjoPSvoelCvCcxQH0eg2vMWmKvI4dCwGc84yN7u2AU uTYCMD0NyzsktKK7yhZXQc4H5ZrhrHTlHJqiOoGnFbHgsTAe/M/842NAZ9IxFE/ck16r lIcGh4sQWtICI4VkK6SSJGYCovhr6HJq6DTS10+4sZ/b2yoXoFbswpFlxGOXZ4ukptVb 1gWSa7+Ne0HIrhqG+nU3EntQRolmXebjJW/YEc/JPvqeDqQWDJZjKHwtolpXceIHONH2 A5T5Mvd6lFbsOtgY2lw7MJ/n03ZXbG0OPrHgFc4rmtZ1Mg27+wtufJHguwVZeFiZBOI8 YRIg== 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 y4si11572921pfk.172.2019.01.29.01.57.09; Tue, 29 Jan 2019 01:57:29 -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 S1728051AbfA2J5A (ORCPT + 99 others); Tue, 29 Jan 2019 04:57:00 -0500 Received: from ozlabs.org ([203.11.71.1]:39591 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725810AbfA2J47 (ORCPT ); Tue, 29 Jan 2019 04:56:59 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43phjg3h9Pz9sDr; Tue, 29 Jan 2019 20:56:55 +1100 (AEDT) From: Michael Ellerman To: Mike Rapoport , linux-mm@kvack.org Cc: Andrew Morton , Catalin Marinas , Christoph Hellwig , "David S. Miller" , Dennis Zhou , Geert Uytterhoeven , Greentime Hu , Greg Kroah-Hartman , Guan Xuetao , Guo Ren , Heiko Carstens , Mark Salter , Matt Turner , Max Filippov , Michal Simek , Paul Burton , Petr Mladek , Rich Felker , Richard Weinberger , Rob Herring , Russell King , Stafford Horne , Tony Luck , Vineet Gupta , Yoshinori Sato , devicetree@vger.kernel.org, kasan-dev@googlegroups.com, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, linux-usb@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, x86@kernel.org, xen-devel@lists.xenproject.org, Mike Rapoport Subject: Re: [PATCH v2 06/21] memblock: memblock_phys_alloc_try_nid(): don't panic In-Reply-To: <1548057848-15136-7-git-send-email-rppt@linux.ibm.com> References: <1548057848-15136-1-git-send-email-rppt@linux.ibm.com> <1548057848-15136-7-git-send-email-rppt@linux.ibm.com> Date: Tue, 29 Jan 2019 20:56:54 +1100 Message-ID: <87y373rdll.fsf@concordia.ellerman.id.au> 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 Mike Rapoport writes: > diff --git a/arch/arm64/mm/numa.c b/arch/arm64/mm/numa.c > index ae34e3a..2c61ea4 100644 > --- a/arch/arm64/mm/numa.c > +++ b/arch/arm64/mm/numa.c > @@ -237,6 +237,10 @@ static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) > pr_info("Initmem setup node %d []\n", nid); > > nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); > + if (!nd_pa) > + panic("Cannot allocate %zu bytes for node %d data\n", > + nd_size, nid); > + > nd = __va(nd_pa); Acked-by: Michael Ellerman (powerpc) cheers