ACPI: Only count valid srat memory structures
authorThomas Renninger <trenn@suse.de>
Tue, 31 Jul 2012 15:41:09 +0000 (17:41 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 3 Aug 2012 04:15:53 +0000 (00:15 -0400)
commit095adbb6441172985f5ddc3b9e88cb3191bdeac4
tree60c21d962efe921e98f308e2d40edf5260fe57c1
parentf3946fb6e50b750d34f445188fa6746d14596afa
ACPI: Only count valid srat memory structures

Otherwise you could run into:
WARN_ON in numa_register_memblks(), because node_possible_map is zero

References: https://bugzilla.novell.com/show_bug.cgi?id=757888

On this machine (ProLiant ML570 G3) the SRAT table contains:
  - No processor affinities
  - One memory affinity structure (which is set disabled)

CC: Per Jessen <per@opensuse.org>
CC: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
arch/ia64/kernel/acpi.c
arch/x86/mm/srat.c
drivers/acpi/numa.c
include/linux/acpi.h