From patchwork Tue Jul 17 13:18:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 10529389 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 086CA603ED for ; Tue, 17 Jul 2018 13:18:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0BA3229182 for ; Tue, 17 Jul 2018 13:18:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 004252918D; Tue, 17 Jul 2018 13:18:51 +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=-2.9 required=2.0 tests=BAYES_00, 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 97D2329182 for ; Tue, 17 Jul 2018 13:18:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A6CF86B0003; Tue, 17 Jul 2018 09:18:50 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A212E6B0005; Tue, 17 Jul 2018 09:18:50 -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 936396B000A; Tue, 17 Jul 2018 09:18:50 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f200.google.com (mail-qk0-f200.google.com [209.85.220.200]) by kanga.kvack.org (Postfix) with ESMTP id 6A7A16B0003 for ; Tue, 17 Jul 2018 09:18:50 -0400 (EDT) Received: by mail-qk0-f200.google.com with SMTP id e3-v6so741126qkj.17 for ; Tue, 17 Jul 2018 06:18:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=+S4GPFOQbxcRLVXvFbJzW8zkM76apkhg9xgPQdzE2h0=; b=fo4xQh19K3qhbxQkQYZ4Bf8Drx+zsIDJpZVPPR7zkXKZlgxNy0UtvouU1gQN6n4/AW Pc068DGBaNCVqkSt8fOIbnuil1L0cCz5fguKrcjyJ4+mUT9A/RGzBG82mfXXUreQN+lu R0KFtyByRC7dHJmMf8Iomm2tYDn0y244UT8MfE3cJGk2VebgDFT3MT2Wx5StWMitUW+O qean6k0WyXVdGaolWC3M3xebug8oshsGeHJeSmhDt4tQdE6SKabW7uOW8zcreQLeTe5m ItQwpBHCOM3146XWumB+/1lNkCO57Zw7uS50cwlgmKOsFmIxbfszCaMyILplC3xANJNW kdcA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of bhe@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: AOUpUlHa3PIPcIIBgNwUpi/uYzHOc9M3lXIz42NKNUs/VsOLW8LQ/9nG wPwkAPmzIiZ6lK3EoGm3eoFT1BhXiyMwYyqw3QUn0LK80vcp4YIz8ApIicDAmgCcsE3BJEBufMm r8zTDZuyX3s/dEOB43KguxmV6FYy/gDyt3GaQ/bAMzOgJxJAyL6yNwvnxoOUo+ExZtQ== X-Received: by 2002:a37:6b84:: with SMTP id g126-v6mr1331099qkc.231.1531833530206; Tue, 17 Jul 2018 06:18:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdrphGjx3FtVqg9FgbA6UjZmFHFaw8ku/npAPummjr3mBgpV3YgQxGWU/kDGhjDsUuDTtZs X-Received: by 2002:a37:6b84:: with SMTP id g126-v6mr1331038qkc.231.1531833529411; Tue, 17 Jul 2018 06:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531833529; cv=none; d=google.com; s=arc-20160816; b=Ih/ns4XjH+9hKR7NQ1G/TXPRYTC6jj4ox29w63REl4Yo9yeJuU4LjHt/oeU96t0EB9 cP7jTddlv6dG6nplZp/i+k3i7C+BsBcDPcYgoTu7UFNoDyc0eo0YD6FAh6RQfTAQq7X7 2RYfNWaQT0x+55y4uvSJh86qW+Yc1Akxn16NRPt1SVqQSKmp6Foo9EPL9xVSSwvFQuZ0 fjePsGVBpcaqUGK0gPh7dockgVprS4CY8jvMa0V07RB2hSk8vBFAJ5xfmMsenVHji0mr Uy86SdPAllUNFXXl9ERLABtg8ElPnix8OG90qT+ka53svGgXeT5XFLc6onF48qSgqCyn ujwQ== 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:arc-authentication-results; bh=+S4GPFOQbxcRLVXvFbJzW8zkM76apkhg9xgPQdzE2h0=; b=0JWuxS9rkiLnvRyOpBHpPAwqkRaEmUeaMRzcB0215MXf1IdM627q4PUeOxx3oTsOby uyG2ZPqalU1x3rBAbGhDTEpcLw6rySpdL5XOPbkh7HlUODpcQxNqZA1rZjwvpGsI8Mwe h2bOMd11rNujezBkTFY+FE1vN1WD8oOU1HeKG+nm+3GsXDK5Nq5HXTYK52F1y1OaJV5+ PAcR3eJENqPfcq6QvwDaJOEBbtt69Di7AgqKvwRKvgeOkyXOOLn2HZuH71tpuYH8h+K4 AXVMD3KPnYvFKWyKhvkFv7rEG4pCYb44escG2mpcGOLVXohUsBXUNJP6VN2b46iPhgS9 1pyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of bhe@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx3-rdu2.redhat.com. [66.187.233.73]) by mx.google.com with ESMTPS id z19-v6si1070734qvj.60.2018.07.17.06.18.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 06:18:49 -0700 (PDT) Received-SPF: pass (google.com: domain of bhe@redhat.com designates 66.187.233.73 as permitted sender) client-ip=66.187.233.73; Authentication-Results: mx.google.com; spf=pass (google.com: domain of bhe@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1947877885; Tue, 17 Jul 2018 13:18:49 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id E06FB111C481; Tue, 17 Jul 2018 13:18:45 +0000 (UTC) From: Baoquan He To: mhocko@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, corbet@lwn.net, linux-doc@vger.kernel.org, Baoquan He Subject: [PATCH] mm/page_alloc: Deprecate kernelcore=nn and movable_core= Date: Tue, 17 Jul 2018 21:18:37 +0800 Message-Id: <20180717131837.18411-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 17 Jul 2018 13:18:49 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 17 Jul 2018 13:18:49 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'bhe@redhat.com' RCPT:'' 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 We can still use 'kernelcore=mirror' or 'movable_node' for the usage of hotplug and movable zone. If somebody shows up with a valid usecase we can reconsider. Suggested-by: Michal Hocko Signed-off-by: Baoquan He --- Documentation/admin-guide/kernel-parameters.txt | 2 ++ mm/page_alloc.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index efc7aa7a0670..1e22c49866a2 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -1855,6 +1855,7 @@ keepinitrd [HW,ARM] kernelcore= [KNL,X86,IA-64,PPC] + [Usage of kernelcore=nn[KMGTPE] | nn% is deprecated] Format: nn[KMGTPE] | nn% | "mirror" This parameter specifies the amount of memory usable by the kernel for non-movable allocations. The requested @@ -2395,6 +2396,7 @@ reporting absolute coordinates, such as tablets movablecore= [KNL,X86,IA-64,PPC] + [Deprecated] Format: nn[KMGTPE] | nn% This parameter is the complement to kernelcore=, it specifies the amount of memory used for migratable diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 1521100f1e63..86cf05f48b5f 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6899,6 +6899,8 @@ static int __init cmdline_parse_kernelcore(char *p) return 0; } + pr_warn("Only kernelcore=mirror supported, " + "usage of kernelcore=nn[KMGTPE]|nn%% is deprecated.\n"); return cmdline_parse_core(p, &required_kernelcore, &required_kernelcore_percent); } @@ -6909,6 +6911,7 @@ static int __init cmdline_parse_kernelcore(char *p) */ static int __init cmdline_parse_movablecore(char *p) { + pr_warn("Option movablecore= is deprecated.\n"); return cmdline_parse_core(p, &required_movablecore, &required_movablecore_percent); }