From: Andrew Morton <akpm@linux-foundation.org>
To: "Yinghai Lu" <yhlu.kernel@gmail.com>
Cc: yhlu.kernel.send@gmail.com, mingo@elte.hu, linux-kernel@vger.kernel.org
Subject: Re: x86: memtest bootparam
Date: Fri, 18 Apr 2008 16:32:26 -0700 [thread overview]
Message-ID: <20080418163226.1d8f2a62.akpm@linux-foundation.org> (raw)
In-Reply-To: <86802c440804181507t4baf6c4dl1a68f89d3d7ce47c@mail.gmail.com>
On Fri, 18 Apr 2008 15:07:46 -0700
"Yinghai Lu" <yhlu.kernel@gmail.com> wrote:
> On Fri, Apr 18, 2008 at 2:52 PM, Andrew Morton
> <akpm@linux-foundation.org> wrote:
> > On Fri, 18 Apr 2008 17:17:44 GMT
> > Linux Kernel Mailing List <linux-kernel@vger.kernel.org> wrote:
> >
> > > Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c64df70793a9c344874eb4af19f85e0662d2d3ee
> > > Commit: c64df70793a9c344874eb4af19f85e0662d2d3ee
> > > Parent: 9b967106da0357ef8b08847dce35584a04134f20
> > > Author: Yinghai Lu <yhlu.kernel.send@gmail.com>
> > > AuthorDate: Fri Mar 21 18:56:19 2008 -0700
> > > Committer: Ingo Molnar <mingo@elte.hu>
> > > CommitDate: Thu Apr 17 17:41:21 2008 +0200
> > >
> > > x86: memtest bootparam
> > >
> > > ...
> > >
> > >
> > > + memtest= [KNL,X86_64] Enable memtest
> > > + Format: <integer>
> > > + range: 0,4 : pattern number
> > > + default : 0 <disable>
> >
> > OK. Did the new memtest feature get documented anywhere, btw? I'm only
> > vaguely aware of its existence.
>
> need one text file in Documentation ?
Well if there was a single CONFIG_MEMTEST then it would probably be
sufficent to document it all within the Kconfig help for that option.
But there isn't a CONFIG_MEMTEST. It appears that the presence or absence
of the memtest feature is controlled by CONFIG_MEMTEST_BOOTPARAM which
makes no sense at all!
> > These seem pointless. Why not just unconditionally implement memtest=?
> > All the code for that should be __init anyway so we're hardly saving
> > anything here.
>
> also
> for big box, like 64g above, that will take a while.
So... such users shouldn't add the memtest= boot parameter?
I'd suggest the following:
- Add a CONFIG_MEMTEST. No other config variable needed.
- Put all the memtest code inside #ifdef CONFIG_MEMTEST.
- As part of that memtest code, implement the memtest= boot option
- Make the memtest feature default to "off" if memtest= was not provided.
That's all very simple and conventional?
next prev parent reply other threads:[~2008-04-18 23:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200804181717.m3IHHicT031344@hera.kernel.org>
2008-04-18 21:52 ` x86: memtest bootparam Andrew Morton
2008-04-18 22:07 ` Yinghai Lu
2008-04-18 23:32 ` Andrew Morton [this message]
2008-04-19 0:03 ` Yinghai Lu
2008-04-19 13:33 ` Pavel Machek
2008-04-19 20:54 ` Yinghai Lu
2008-04-21 14:17 ` Ingo Molnar
2008-04-21 16:38 ` Yinghai Lu
[not found] <ak6MP-3wY-3@gated-at.bofh.it>
[not found] ` <ak6MP-3wY-1@gated-at.bofh.it>
2008-04-19 10:50 ` Bodo Eggert
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=20080418163226.1d8f2a62.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=yhlu.kernel.send@gmail.com \
--cc=yhlu.kernel@gmail.com \
/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