Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp515868imm; Wed, 4 Jul 2018 00:55:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfTVwrUjeNseaHqVTpr461GF+bHRregrGC5oVqfvkUmexYrDg6d5SR6e2D623e7SpEpJkwb X-Received: by 2002:a63:5421:: with SMTP id i33-v6mr926572pgb.417.1530690916589; Wed, 04 Jul 2018 00:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530690916; cv=none; d=google.com; s=arc-20160816; b=kUiXW/brZKwgKJo5dg1agFSUdeetcdqDl8HKcWjsfL9RuA5rZtRAqPFZLZyjIU90M1 a6szT12TJGRPXdRkfFI2wzkE/zHEFPPJklKHtBjOzVMfUw0AJOxZI8ncWe4eCOwY5MlS +5XSjZ+RSJbuz97uMbmN9pyo/9l71VPhYUjsfSJNZ9NCdcUhZbf2Hv+QJwxBmag0YINl 5w1a1vViEHtNhyIzszthciD6yfPOwLjPIY/Y0v9hlNswTb3gL3THAMFUdleY/h1Nzjq5 yChrDBb02EdiNGRfyIbJsImn0/zRp1TQcD3LQfgzaVKIINYv979FUHQzx/4Gqw1iAK22 ygkQ== 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:arc-authentication-results; bh=+FCynpXPD3FURpmkX9oyHIlQ+dA4XdV/st7ub+/eZYg=; b=IJnfEWQr4T4K7mj6cPtHeoIQUe/GeDk6TXES43sX1OYcLekRqBIp5TUqfrfpJSrXDd zhRqr5rB4OZ4XEiOhMnkz8nK5Yr9ZDWH2DRwb4w4IraWXfyZdCmqmgbjFc/bhZPw8ntg JZjfHRV2Y/gTCk3lLeVTvOWLGWwKYD6WbTpCO8+id8AltmpDjvtlcaZl/jaAS6OxrB4D JaNcplD+f0i9tM8RVowsPHZoG2HRAO47XD0ePJsGDXYEfcxlwPtMR1L/V3h4jGR5mKmC ghQA99V8tsd6lUl3z3rj3VWk143dNV2Zq0cBaoBnu5wdrtm2prrhtMAjuNIq7wRx6Qnm aiuw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f62-v6si2918847pfg.165.2018.07.04.00.55.01; Wed, 04 Jul 2018 00:55:16 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932835AbeGDHyO (ORCPT + 99 others); Wed, 4 Jul 2018 03:54:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:57394 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932290AbeGDHyN (ORCPT ); Wed, 4 Jul 2018 03:54:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1946FADF4; Wed, 4 Jul 2018 07:54:12 +0000 (UTC) Date: Wed, 4 Jul 2018 09:54:10 +0200 From: Michal Hocko To: Geert Uytterhoeven Cc: Mike Rapoport , Greg Ungerer , Sam Creasey , linux-m68k , Linux MM , Linux Kernel Mailing List Subject: Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM Message-ID: <20180704075410.GF22503@dhcp22.suse.cz> References: <1530685696-14672-1-git-send-email-rppt@linux.vnet.ibm.com> <1530685696-14672-4-git-send-email-rppt@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 04-07-18 09:44:14, Geert Uytterhoeven wrote: [...] > ------------[ cut here ]------------ > WARNING: CPU: 0 PID: 0 at mm/memblock.c:230 > memblock_find_in_range_node+0x11c/0x1be > memblock: bottom-up allocation failed, memory hotunplug may be affected This only means that hotplugable memory might contain non-movable memory now. But does your system even support memory hotplug. I would be really surprised. So I guess we just want this instead diff --git a/mm/memblock.c b/mm/memblock.c index cc16d70b8333..c0dde95593fd 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -228,7 +228,8 @@ phys_addr_t __init_memblock memblock_find_in_range_node(phys_addr_t size, * so we use WARN_ONCE() here to see the stack trace if * fail happens. */ - WARN_ONCE(1, "memblock: bottom-up allocation failed, memory hotunplug may be affected\n"); + WARN_ONCE(IS_ENABLED(CONFIG_MEMORY_HOTREMOVE), + "memblock: bottom-up allocvation failed, memory hotunplug may be affected\n"); } return __memblock_find_range_top_down(start, end, size, align, nid, -- Michal Hocko SUSE Labs