From: Dave Young <dyoung@redhat.com>
To: Saeed Mirzamohammadi <saeed.mirzamohammadi@oracle.com>
Cc: "John Donnelly" <john.p.donnelly@oracle.com>,
"Guilherme Piccoli" <gpiccoli@canonical.com>,
"Kairui Song" <kasong@redhat.com>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
linux-doc@vger.kernel.org,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Bjorn Andersson" <bjorn.andersson@linaro.org>,
"H. Peter Anvin" <hpa@zytor.com>, "Will Deacon" <will@kernel.org>,
"Anson Huang" <Anson.Huang@nxp.com>,
"Jonathan Corbet" <corbet@lwn.net>,
"the arch/x86 maintainers" <x86@kernel.org>,
"Michael Walle" <michael@walle.cc>,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Ingo Molnar" <mingo@redhat.com>,
"Vivek Goyal" <vgoyal@redhat.com>,
"Arnd Bergmann" <arnd@arndb.de>, "Borislav Petkov" <bp@alien8.de>,
"Thomas Gleixner" <tglx@linutronix.de>,
linux-arm-kernel@lists.infradead.org,
"Baoquan He" <bhe@redhat.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
"Randy Dunlap" <rdunlap@infradead.org>,
"kexec mailing list" <kexec@lists.infradead.org>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
"# v4 . 16+" <stable@vger.kernel.org>,
"Li Yang" <leoyang.li@nxp.com>,
"Miguel Ojeda" <miguel.ojeda.sandonis@gmail.com>,
"Vinod Koul" <vkoul@kernel.org>,
"Diego Elio Pettenò" <flameeyes@flameeyes.com>,
"Olof Johansson" <olof@lixom.net>,
"Shawn Guo" <shawnguo@kernel.org>
Subject: Re: [PATCH 1/1] kernel/crash_core.c - Add crashkernel=auto for x86 and ARM
Date: Sat, 23 Jan 2021 11:57:33 +0800 [thread overview]
Message-ID: <20210123035733.GA6865@dhcp-128-65.nay.redhat.com> (raw)
In-Reply-To: <20210123035126.GA6539@dhcp-128-65.nay.redhat.com>
On 01/23/21 at 11:51am, Dave Young wrote:
> Hi Saeed,
> On 01/22/21 at 05:14pm, Saeed Mirzamohammadi wrote:
> > Hi,
> >
> > > On Jan 21, 2021, at 7:12 PM, Dave Young <dyoung@redhat.com> wrote:
> > >
> > > On 01/22/21 at 09:22am, Dave Young wrote:
> > >> Hi John,
> > >>
> > >> On 01/21/21 at 09:32am, john.p.donnelly@oracle.com wrote:
> > >>> On 11/22/20 9:47 PM, Dave Young wrote:
> > >>>> Hi Guilherme,
> > >>>> On 11/22/20 at 12:32pm, Guilherme Piccoli wrote:
> > >>>>> Hi Dave and Kairui, thanks for your responses! OK, if that makes sense
> > >>>>> to you I'm fine with it. I'd just recommend to test recent kernels in
> > >>>>> multiple distros with the minimum "range" to see if 64M is enough for
> > >>>>> crashkernel, maybe we'd need to bump that.
> > >>>>
> > >>>> Giving the different kernel configs and the different userspace
> > >>>> initramfs setup it is hard to get an uniform value for all distributions,
> > >>>> but we can have an interface/kconfig-option for them to provide a value like this patch
> > >>>> is doing. And it could be improved like Kairui said about some known
> > >>>> kernel added extra values later, probably some more improvements if
> > >>>> doable.
> > >>>>
> > >>>> Thanks
> > >>>> Dave
> > >>>>
> > >>>
> > >>> Hi.
> > >>>
> > >>> Are we going to move forward with implementing this for X86 and Arm ?
> > >>>
> > >>> If other platform maintainers want to include this CONFIG option in their
> > >>> configuration settings they have a starting point.
> > >>
> > >> I would expect this become arch independent.
> > >
> > > Clarify a bit, it can be a general config option under arch/Kconfig and
> > > just put the code in general arch independent part.
> >
> > Does this mean that we need to add the option to def_configs in all archs as well?
> >
>
> I think we do not need to add defconfig, something like this will just work?
>
> BTW, it should depend on CRASH_CORE instead of CRASH_DUMP, the logic of
> parsing crashkernel is in kernel/crash_core.c
>
> diff --git a/arch/Kconfig b/arch/Kconfig
> index af14a567b493..fa6efeb52dc5 100644
> --- a/arch/Kconfig
> +++ b/arch/Kconfig
> @@ -14,6 +14,11 @@ menu "General architecture-dependent options"
> config CRASH_CORE
> bool
>
> +config CRASH_AUTO_STR
> + depends on CRASH_CORE
> + string "Memory reserved for crash kernel"
> + default "1G-:128M"
People do not want to see the default value if they do not need kdump
so it would be better to add another kconfig option as a switch which is
set default as off in bool state.
> + ... help text [snip] ...
> +
> config KEXEC_CORE
> select CRASH_CORE
> bool
>
> [...]
>
> > Thanks,
> > Saeed
> >
> > >
> > >>
> > >> Saeed, Kairui, would any of you like to update the patch?
> > >>
> > >>>
> > >>> Thank you,
> > >>>
> > >>> John.
> > >>>
> > >>> ( I am not currently on many of the included dist lists in this email, so
> > >>> hopefully key contributors are included in this exchange )
> > >>>
> > >>
> > >> Thanks
> > >> Dave
> >
>
> Thanks
> Dave
next prev parent reply other threads:[~2021-01-23 3:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 23:24 [PATCH 1/1] kernel/crash_core.c - Add crashkernel=auto for x86 and ARM Saeed Mirzamohammadi
2020-11-19 1:06 ` Randy Dunlap
2020-11-19 20:16 ` Saeed Mirzamohammadi
2020-11-19 6:09 ` Kairui Song
2020-11-19 20:52 ` Saeed Mirzamohammadi
[not found] ` <AC36B9BC-654C-4FC1-8EA3-94B986639F1E@oracle.com>
2020-11-20 9:34 ` Kairui Song
2020-11-22 15:32 ` Guilherme Piccoli
2020-11-23 3:47 ` Dave Young
2021-01-21 15:32 ` john.p.donnelly
2021-01-22 1:22 ` Dave Young
2021-01-22 3:12 ` Dave Young
[not found] ` <730EBE33-5571-49C0-AF38-08C49736EB70@oracle.com>
2021-01-23 3:51 ` Dave Young
2021-01-23 3:57 ` Dave Young [this message]
2020-11-19 21:56 ` Guilherme Piccoli
2020-11-20 2:26 ` Dave Young
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=20210123035733.GA6865@dhcp-128-65.nay.redhat.com \
--to=dyoung@redhat.com \
--cc=Anson.Huang@nxp.com \
--cc=arnd@arndb.de \
--cc=bhe@redhat.com \
--cc=bjorn.andersson@linaro.org \
--cc=bp@alien8.de \
--cc=catalin.marinas@arm.com \
--cc=corbet@lwn.net \
--cc=flameeyes@flameeyes.com \
--cc=geert+renesas@glider.be \
--cc=gpiccoli@canonical.com \
--cc=hpa@zytor.com \
--cc=john.p.donnelly@oracle.com \
--cc=kasong@redhat.com \
--cc=kexec@lists.infradead.org \
--cc=krzk@kernel.org \
--cc=leoyang.li@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=michael@walle.cc \
--cc=miguel.ojeda.sandonis@gmail.com \
--cc=mingo@redhat.com \
--cc=olof@lixom.net \
--cc=rdunlap@infradead.org \
--cc=saeed.mirzamohammadi@oracle.com \
--cc=shawnguo@kernel.org \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=vgoyal@redhat.com \
--cc=vkoul@kernel.org \
--cc=will@kernel.org \
--cc=x86@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).