All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Andiry Xu <andiry@gmail.com>, linux-kernel@vger.kernel.org
Cc: Andiry Xu <andiry.xu@gmail.com>, Linux MM <linux-mm@kvack.org>
Subject: Re: [BUG] Description for memmap in kernel-parameters.txt is wrong
Date: Thu, 30 Jan 2014 11:25:08 -0800	[thread overview]
Message-ID: <52EAA714.3080809@infradead.org> (raw)
In-Reply-To: <CAOvWMLa334E8CYJLrHy6-0ZXBRneoMf-05v422SQw+dbGRubow@mail.gmail.com>

[adding linux-mm mailing list]

On 01/30/2014 08:52 AM, Andiry Xu wrote:
> Hi,
> 
> In kernel-parameters.txt, there is following description:
> 
> memmap=nn[KMG]$ss[KMG]
>                         [KNL,ACPI] Mark specific memory as reserved.
>                         Region of memory to be used, from ss to ss+nn.

Should be:
                          Region of memory to be reserved, from ss to ss+nn.

but that doesn't help with the problem that you describe, does it?


> Unfortunately this is incorrect. The meaning of nn and ss is reversed.
> For example:
> 
> Command                  Expected                 Result
> memmap 2G$6G        6G - 8G reserved      2G - 8G reserved
> memmap 6G$2G        2G - 8G reserved      6G - 8G reserved

Are you testing on x86?
The code in arch/x86/kernel/e820.c always parses mem_size followed by start address.
I don't (yet) see where it goes wrong...


> Test kernel version 3.13, but I believe the issue has been there long ago.
> 
> I'm not sure whether the description or implementation should be
> fixed, but apparently they do not match.

I prefer to change the documentation and leave the implementation as is.


-- 
~Randy

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

WARNING: multiple messages have this Message-ID (diff)
From: Randy Dunlap <rdunlap@infradead.org>
To: Andiry Xu <andiry@gmail.com>, linux-kernel@vger.kernel.org
Cc: Andiry Xu <andiry.xu@gmail.com>, Linux MM <linux-mm@kvack.org>
Subject: Re: [BUG] Description for memmap in kernel-parameters.txt is wrong
Date: Thu, 30 Jan 2014 11:25:08 -0800	[thread overview]
Message-ID: <52EAA714.3080809@infradead.org> (raw)
In-Reply-To: <CAOvWMLa334E8CYJLrHy6-0ZXBRneoMf-05v422SQw+dbGRubow@mail.gmail.com>

[adding linux-mm mailing list]

On 01/30/2014 08:52 AM, Andiry Xu wrote:
> Hi,
> 
> In kernel-parameters.txt, there is following description:
> 
> memmap=nn[KMG]$ss[KMG]
>                         [KNL,ACPI] Mark specific memory as reserved.
>                         Region of memory to be used, from ss to ss+nn.

Should be:
                          Region of memory to be reserved, from ss to ss+nn.

but that doesn't help with the problem that you describe, does it?


> Unfortunately this is incorrect. The meaning of nn and ss is reversed.
> For example:
> 
> Command                  Expected                 Result
> memmap 2G$6G        6G - 8G reserved      2G - 8G reserved
> memmap 6G$2G        2G - 8G reserved      6G - 8G reserved

Are you testing on x86?
The code in arch/x86/kernel/e820.c always parses mem_size followed by start address.
I don't (yet) see where it goes wrong...


> Test kernel version 3.13, but I believe the issue has been there long ago.
> 
> I'm not sure whether the description or implementation should be
> fixed, but apparently they do not match.

I prefer to change the documentation and leave the implementation as is.


-- 
~Randy

  reply	other threads:[~2014-01-30 19:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-30 16:52 [BUG] Description for memmap in kernel-parameters.txt is wrong Andiry Xu
2014-01-30 19:25 ` Randy Dunlap [this message]
2014-01-30 19:25   ` Randy Dunlap
2014-01-30 19:33   ` Andiry Xu
2014-01-30 19:33     ` Andiry Xu
2014-01-30 20:26     ` Randy Dunlap
2014-01-30 20:26       ` Randy Dunlap
2014-01-30 22:17       ` David Rientjes
2014-01-30 22:17         ` David Rientjes
2014-01-30 22:54         ` Randy Dunlap
2014-01-30 22:54           ` Randy Dunlap
2014-01-30 23:43           ` Andiry Xu
2014-01-30 23:43             ` Andiry Xu
2014-01-30 23:49             ` Randy Dunlap
2014-01-30 23:49               ` Randy Dunlap

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=52EAA714.3080809@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=andiry.xu@gmail.com \
    --cc=andiry@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.