Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp538556imm; Wed, 4 Jul 2018 01:23:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfG+SVQcoFBWOpLllwhx0wtXji+AQrluS26SvjzYGu/yv5eji15zSYmDR+KYIJv3+GdiTdr X-Received: by 2002:a63:1315:: with SMTP id i21-v6mr1006162pgl.147.1530692598649; Wed, 04 Jul 2018 01:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530692598; cv=none; d=google.com; s=arc-20160816; b=eGhL7u1wvEbu3oz4FqZ1ILAFb7lPKv49vR5hhaMMVM9NfcOu63YHPUNMFa1LM7BBK9 QQ5cVjP1z6IukUMcTB4RZpssK5QFtOZv6N5KDZrI6zaMGIXlVlNLXBH/LNxO8Qzva712 iMnE/Qws5J8vkWUK7N99qD0j+mLVJxuudPkXU3aZRukkLoeQGbc+BTdzWMkWqy95RNgV Uh8TZ7p6jtjYaqQY/Kham0fq6NxdxHEf58O73IcXWYlT1oqGeTiZexH3maSdVCodRJgm pfgYrWP6Gw1UgrSb3qr0Gh9wfgFidOCD+ZrvbYpIXwpJQ+Xl6HEFVrEjJjKKxcgp6KMo NPmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=aBzMlpCd4miyHAASu6lI0NrnayFxFWj0CKVW/1z9IAI=; b=R946MGbqVubtDMYQa0aiiQi349maezAwEX+uNDjMWQAwt4KQdp0qx0eU52iNwJezuq SJAAYn4R5EfmU/8c19fRKgcoewHqY/cnAE5WeiPBBjWpthCURoHPqg9gZuKCmdqznrei iPlExGfh+st/LdnpLqPwwfNE/UQbRY33LoDAsnBRr9hI6rLHum0853zJjnfJ+ZnykF3s 65ivo+tvnAQcAevqHOeFadO8BKtLIfj9zQ1DkoEDLoWTXj/l/WBFLTa5KydINmxy0Qqy W/3pvfmhGZwbd1tbrGqZ+KVNlwZ5ckYrkgbCmwIL0hxuF2Nf+28h9bvsxvivBps/iIcc PZkw== 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 x69-v6si3270852pfe.318.2018.07.04.01.23.03; Wed, 04 Jul 2018 01:23:18 -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 S934046AbeGDIWB (ORCPT + 99 others); Wed, 4 Jul 2018 04:22:01 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:33639 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932350AbeGDIV6 (ORCPT ); Wed, 4 Jul 2018 04:21:58 -0400 Received: by mail-vk0-f68.google.com with SMTP id y70-v6so308032vkc.0 for ; Wed, 04 Jul 2018 01:21:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aBzMlpCd4miyHAASu6lI0NrnayFxFWj0CKVW/1z9IAI=; b=VBSQUAeDVaNzRnfSIjaQK1B861mRUHPD670XPmFeZN9IfUAM8+2lCzRzN0RRu/CEPp iXKVQkg03Nu49k05s0fn2rM/yxVk4p0qNkumofaVGcNPFQ4+t/6Z7lOAXHK3rhOJWPLG OclB5T8/WtVyDhH3gwf1f2ZPE6iqm7ForxNddSBM5hESVYVinQEQZfKIfORnOvNHfusD L/HRBeC0oFEPkJMv4QuSxHuAaPNOd/tboQkmXMWn5Rzbn2xM0+7qyBDJ66Nng9G/DZJw ymYLLchivMl2vs/utoIemk8A/2K+nshw+lU/8QJBujIRUWHoChyyJHBkmCtzsFJ2p2SU meLA== X-Gm-Message-State: APt69E1ZtBfwyOWL2OEFQNkgkdrMMnN8SZ5MYThgYC2n3CX5exKNiH17 H2/XCLHB//1EjfIFMDW1sh6CXe8rmeplVKsId4k= X-Received: by 2002:a1f:20d4:: with SMTP id g203-v6mr510885vkg.176.1530692517686; Wed, 04 Jul 2018 01:21:57 -0700 (PDT) MIME-Version: 1.0 References: <1530685696-14672-1-git-send-email-rppt@linux.vnet.ibm.com> <1530685696-14672-4-git-send-email-rppt@linux.vnet.ibm.com> <20180704075410.GF22503@dhcp22.suse.cz> In-Reply-To: <20180704075410.GF22503@dhcp22.suse.cz> From: Geert Uytterhoeven Date: Wed, 4 Jul 2018 10:21:45 +0200 Message-ID: Subject: Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM To: Michal Hocko Cc: Mike Rapoport , Greg Ungerer , Sam Creasey , linux-m68k , Linux MM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, On Wed, Jul 4, 2018 at 9:54 AM Michal Hocko wrote: > 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 No it doesn't. > 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, Thanks, that does the trick! Tested-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds