From: Dave Hansen <dave@sr71.net>
To: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>,
Linux MM <linux-mm@kvack.org>,
David Hansen <dave.hansen@intel.com>
Subject: Re: [PATCH] sparsemem: BUILD_BUG_ON when sizeof mem_section is non-power-of-2
Date: Thu, 30 May 2013 12:18:11 -0700 [thread overview]
Message-ID: <51A7A5F3.4040704@sr71.net> (raw)
In-Reply-To: <1369939248-10006-1-git-send-email-cody@linux.vnet.ibm.com>
On 05/30/2013 11:40 AM, Cody P Schafer wrote:
> Instead of leaving a hidden trap for the next person who comes along and
> wants to add something to mem_section, add a big fat warning about it
> needing to be a power-of-2, and insert a BUILD_BUG_ON() in sparse_init()
> to catch mistakes.
>
> Right now non-power-of-2 mem_sections cause a number of WARNs at boot
> (which don't clearly point to the size of mem_section as an issue), but
> the system limps on (temporarily, at least).
>
> This is based upon Dave Hansen's earlier RFC where he ran into the same
> issue:
> "sparsemem: fix boot when SECTIONS_PER_ROOT is not power-of-2"
> http://lkml.indiana.edu/hypermail/linux/kernel/1205.2/03077.html
Thanks for doing that, Cody. At the risk of patting myself on the back:
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
--
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: Dave Hansen <dave@sr71.net>
To: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>,
Linux MM <linux-mm@kvack.org>,
David Hansen <dave.hansen@intel.com>
Subject: Re: [PATCH] sparsemem: BUILD_BUG_ON when sizeof mem_section is non-power-of-2
Date: Thu, 30 May 2013 12:18:11 -0700 [thread overview]
Message-ID: <51A7A5F3.4040704@sr71.net> (raw)
In-Reply-To: <1369939248-10006-1-git-send-email-cody@linux.vnet.ibm.com>
On 05/30/2013 11:40 AM, Cody P Schafer wrote:
> Instead of leaving a hidden trap for the next person who comes along and
> wants to add something to mem_section, add a big fat warning about it
> needing to be a power-of-2, and insert a BUILD_BUG_ON() in sparse_init()
> to catch mistakes.
>
> Right now non-power-of-2 mem_sections cause a number of WARNs at boot
> (which don't clearly point to the size of mem_section as an issue), but
> the system limps on (temporarily, at least).
>
> This is based upon Dave Hansen's earlier RFC where he ran into the same
> issue:
> "sparsemem: fix boot when SECTIONS_PER_ROOT is not power-of-2"
> http://lkml.indiana.edu/hypermail/linux/kernel/1205.2/03077.html
Thanks for doing that, Cody. At the risk of patting myself on the back:
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
next prev parent reply other threads:[~2013-05-30 19:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 23:14 [PATCH] mm: sparse: use __aligned() instead of manual padding in mem_section Cody P Schafer
2013-05-29 23:14 ` Cody P Schafer
2013-05-30 0:54 ` Jiang Liu
2013-05-30 0:54 ` Jiang Liu
2013-05-30 16:36 ` Cody P Schafer
2013-05-30 16:36 ` Cody P Schafer
2013-05-30 17:39 ` Dave Hansen
2013-05-30 17:39 ` Dave Hansen
2013-05-30 18:40 ` [PATCH] sparsemem: BUILD_BUG_ON when sizeof mem_section is non-power-of-2 Cody P Schafer
2013-05-30 18:40 ` Cody P Schafer
2013-05-30 19:18 ` Dave Hansen [this message]
2013-05-30 19:18 ` Dave Hansen
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=51A7A5F3.4040704@sr71.net \
--to=dave@sr71.net \
--cc=akpm@linux-foundation.org \
--cc=cody@linux.vnet.ibm.com \
--cc=dave.hansen@intel.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.