ACPI, x86: Use SRAT table rev to use 8bit or 32bit PXM fields (x86/x86-64)
commitef9a04d5b336853aeb3f3975c4e52b07c1c4d3ec
authorKurt Garloff <kurt@garloff.de>
Tue, 17 Jan 2012 09:20:31 +0000 (17 04:20 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 01:24:57 +0000 (25 17:24 -0800)
tree2f2472a300dd97cffed5a5018bd3721431fe75c7
parent643147c50fde7eb0456953f468cc277d621f629e
ACPI, x86: Use SRAT table rev to use 8bit or 32bit PXM fields (x86/x86-64)

commit cd298f60a2451a16e0f077404bf69b62ec868733 upstream.

In SRAT v1, we had 8bit proximity domain (PXM) fields; SRAT v2 provides
32bits for these. The new fields were reserved before.
According to the ACPI spec, the OS must disregrard reserved fields.

x86/x86-64 was rather inconsistent prior to this patch; it used 8 bits
for the pxm field in cpu_affinity, but 32 bits in mem_affinity.
This patch makes it consistent: Either use 8 bits consistently (SRAT
rev 1 or lower) or 32 bits (SRAT rev 2 or higher).

cc: x86@kernel.org
Signed-off-by: Kurt Garloff <kurt@garloff.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/mm/srat.c