Skip to content

Commit

Permalink
arm64: mm: enable CONFIG_HOLES_IN_ZONE for NUMA
Browse files Browse the repository at this point in the history
The NUMA code may get confused by the presence of NOMAP regions within
zones, resulting in spurious BUG() checks where the node id deviates
from the containing zone's node id.

Since the kernel has no business reasoning about node ids of pages it
does not own in the first place, enable CONFIG_HOLES_IN_ZONE to ensure
that such pages are disregarded.

Acked-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Ard Biesheuvel authored and wildea01 committed Feb 6, 2017
1 parent c0bfc54 commit 6d526ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,10 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK
def_bool y
depends on NUMA

config HOLES_IN_ZONE
def_bool y
depends on NUMA

source kernel/Kconfig.preempt
source kernel/Kconfig.hz

Expand Down

0 comments on commit 6d526ee

Please sign in to comment.