From: Baoquan He <bhe@redhat.com>
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 <bhe@redhat.com>
Subject: [PATCH] mm/page_alloc: Deprecate kernelcore=nn and movable_core=
Date: Tue, 17 Jul 2018 21:18:37 +0800 [thread overview]
Message-ID: <20180717131837.18411-1-bhe@redhat.com> (raw)
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 <mhocko@kernel.org>
Signed-off-by: Baoquan He <bhe@redhat.com>
---
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);
}
--
2.13.6
next reply other threads:[~2018-07-17 13:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-17 13:18 Baoquan He [this message]
2018-07-17 13:31 ` [PATCH] mm/page_alloc: Deprecate kernelcore=nn and movable_core= Michal Hocko
2018-07-17 14:24 ` Baoquan He
2018-07-17 14:28 ` Michal Hocko
2018-07-17 20:46 ` David Rientjes
2018-07-17 23:31 ` Baoquan He
2018-07-18 20:16 ` David Rientjes
2018-07-18 15:10 ` Michal Hocko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180717131837.18411-1-bhe@redhat.com \
--to=bhe@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).