From patchwork Tue Sep 25 15:35:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masayoshi Mizuma X-Patchwork-Id: 10614303 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 72193161F for ; Tue, 25 Sep 2018 15:35:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62A6D2975C for ; Tue, 25 Sep 2018 15:35:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5691D29A78; Tue, 25 Sep 2018 15:35:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 043872975C for ; Tue, 25 Sep 2018 15:35:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EFEB88E00A5; Tue, 25 Sep 2018 11:35:54 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id EAF8D8E00A4; Tue, 25 Sep 2018 11:35:54 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D9FA18E00A5; Tue, 25 Sep 2018 11:35:54 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by kanga.kvack.org (Postfix) with ESMTP id B0E6A8E00A4 for ; Tue, 25 Sep 2018 11:35:54 -0400 (EDT) Received: by mail-qt1-f200.google.com with SMTP id 1-v6so9022191qtp.10 for ; Tue, 25 Sep 2018 08:35:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id; bh=zmMx8yGF2OFaGDrGLP10cOWskpeqGFJHfbD3OLaMleM=; b=hBqy5N9LuV2gTk7s5HVq3fbBbxMz6Ao673ikjeE1EEYMAj3ztIGkedCgRiKYn6i4U7 hphQcFyjDfV1uXja/ssNHEmvSXA62ROnnDxqyw5RLImYsXefQn9NQozCWQLTZ+r69/nP ImUqJLQmMy8HF3+YL1Gg2sioh2WUKITAnubLaFlUlbkbG9qZ6TSqE+HP115IfyCVqris 2L1Bqd6fCAZ4FV8VIdzuZNwX4AeTy05YbwySK7HgUOYX9UB+s0ib/bnvcPwwHgaIXeNC jkmrXdFsKrDWPdPHxzqqwzmH7e/O7FD0/u8Yk11aQlkHJLZtAsXpojeFEyCFZeHz6Nc9 j9KA== X-Gm-Message-State: ABuFfohiQSrNg8yZe12IqM3dW5GzijOBFJlab/N5JVtjb4+o9YpQ+qQI 9v0tpl7yJmdwrwpjLQbRrtwv7p8gkJZctDv7wMQey9CJ5lSdJf2TqydDi5hyXo9Fz5LAJVTYboY zMZs+u+X7/Kvr7BHh62iLFeuc/XJlnFwj7f0Ewnkgo5WaEdxaoLKsQkuM+f9QjjkNAaibtU3sD9 cjvpE8znvHlVghPzcfKTgJElLoA0fdL1BxuIJwniS+HfZ/Kj7UwUReJIfPMNNFqUVmwcDvU/9/I HDygvH7oZHtdagdvapoKGIB1GAmQgheocvRJcrsCAb+zmKsdPUXBeZTILSUNeVHx2Bc4r7MuQTB D1sBvfPH5stDGKSLSkSK1xknqU7NRLWmBA8fBvvpESQoRi+d49dyzSltXqdTWsOSf7P/ms9QS1t c X-Received: by 2002:a0c:ad8e:: with SMTP id w14-v6mr1169763qvc.149.1537889754520; Tue, 25 Sep 2018 08:35:54 -0700 (PDT) X-Received: by 2002:a0c:ad8e:: with SMTP id w14-v6mr1169729qvc.149.1537889753996; Tue, 25 Sep 2018 08:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537889753; cv=none; d=google.com; s=arc-20160816; b=dbic9s7cTtoP+Rk1AcouPtVCGgzTNHD//lWoKG9vHbb2NHm+7UmrQOHoC/PVrAVcyb oAbC/olbI2VbXwx1USbnFVTCE+OB775wjPA0dtfSnVn63q+Eb+puKWq/Zl+IMsrTaQtL tcnjYkNpedqOMF/eP9d3I0E4jn9jZ/+nt9wvABnnIhnZdsx6BRtrMNzihIq5K4xYlyhs fSe59zqWBqqI3UkRYV/sufMKePBUJ75PEJ9rl+TLai/rB/rVDa/cCRcnEpHpe5kxU0gw QwW6RxMV7HR1q3id45SWd3I7qCxYEX2REkmb5sRt/bnLG6QKelHAMniP4aNWCmR7PjEj zg3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=zmMx8yGF2OFaGDrGLP10cOWskpeqGFJHfbD3OLaMleM=; b=bZPjsZE9XsXSUwwSuvUnW8GufvyovCdKVgbdgEky/ua/b+k0A9Bc5qJ952m5XM0XN6 1XXlne5zCGR5DXsJzYtCdHqPs/Ni1Sdx9lNDvcNHxyR8pcHHfIKRn7lRiw4ra+idNszj mJ8s+M43jt7ITo7WiORQ3m34eFaDjdkQz8GKTe3CyaGvm1qJAkk9dYvTpD0c5pca7fuW 699qlcG1VkPTPOgYvMOJiElFYswqe/LXFMWvPZw4O9SgY5yO+GcQwcXquXKeP81MphWI oNgEz+3IFWqsj+c7PO69E4kZNitiytNeibbt/a3SHmsDhflYgXLsjslvPs8QjklkcLHA E+Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uIq1rICa; spf=pass (google.com: domain of msys.mizuma@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=msys.mizuma@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id z4-v6sor869334qtn.44.2018.09.25.08.35.53 for (Google Transport Security); Tue, 25 Sep 2018 08:35:53 -0700 (PDT) Received-SPF: pass (google.com: domain of msys.mizuma@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uIq1rICa; spf=pass (google.com: domain of msys.mizuma@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=msys.mizuma@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=zmMx8yGF2OFaGDrGLP10cOWskpeqGFJHfbD3OLaMleM=; b=uIq1rICakArgZk3qwEvxox6OmyjePwiG7xh9g+kVuhOFuL8b2xrVmTfn6nQadYj8Ra d3NinKLYTjyUKbOwVlKsH+/SGExZfqKyOdBBLI7EUdE1fzh2iK6RlwaJ79SrGntMP5mC LV8e8VBHI2W7oTRCawjmp57F0qRiGizkISSQrZUJ5bdARTXmo/l+4GvQSiG48JuoE/KL pbT3ezTr5cbd6gg4ZnFxwMX7yjVbHrbwMZL/vGi4hRJmHniitVCsPVmb24tBHqlJoA01 QjkHUl4LTtNVbDYg3U2IPoPXUD0YNCdwS8VOcIwAyRu/d9CIQH8wW4QkwxYm3cJH16A9 GvEw== X-Google-Smtp-Source: ACcGV63wS1WKBI0YbhfLHP4QihtHouz+H9wVNMXZhdJdir1trbreD+SW5t6byYt+GdN0dRoX3+cMDg== X-Received: by 2002:aed:2a0d:: with SMTP id c13-v6mr1204944qtd.147.1537889753461; Tue, 25 Sep 2018 08:35:53 -0700 (PDT) Received: from gabell.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id p18-v6sm2056304qtp.3.2018.09.25.08.35.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 08:35:52 -0700 (PDT) From: Masayoshi Mizuma To: linux-mm@kvack.org, Naoya Horiguchi , Pavel Tatashin , Michal Hocko Cc: Masayoshi Mizuma , linux-kernel@vger.kernel.org, x86@kernel.org Subject: [PATCH v2 0/3] mm: Fix for movable_node boot option Date: Tue, 25 Sep 2018 11:35:29 -0400 Message-Id: <20180925153532.6206-1-msys.mizuma@gmail.com> X-Mailer: git-send-email 2.17.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP This patch series are the fix for movable_node boot option issue which was introduced by commit 124049decbb1 ("x86/e820: put !E820_TYPE_RAM regions into memblock.reserved"). First patch, revert the commit. Second and third patch fix the original issue. Masayoshi Mizuma (1): Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved" Naoya Horiguchi (1): mm: zero remaining unavailable struct pages Pavel Tatashin (1): mm: return zero_resv_unavail optimization arch/x86/kernel/e820.c | 15 +++-------- include/linux/memblock.h | 15 ----------- mm/page_alloc.c | 54 +++++++++++++++++++++++++++------------- 3 files changed, 40 insertions(+), 44 deletions(-)