]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: HMAT: don't mix pxm and nid when setting memory target processor_pxm
authorBrice Goglin <Brice.Goglin@inria.fr>
Mon, 28 Oct 2019 09:11:18 +0000 (10:11 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Nov 2019 14:46:52 +0000 (15:46 +0100)
commit3b5e6b747e282a8d302488a0f7f872647e6686bf
treee070414ae0cb7c1af48d01c16755c227443afa06
parentcf68f84180909c90fe646141a4d32c1586bb6432
ACPI: HMAT: don't mix pxm and nid when setting memory target processor_pxm

On systems where PXMs and nids are in different order, memory initiators
exposed in sysfs could be wrong: On dual-socket CLX with SNC enabled
(4 nodes, 1 and 2 swapped between PXMs and nids), node1 would only
get node2 as initiator, and node2 would only get node1.

With this patch, we get node1 as the only initiator of itself,
and node2 as the only initiator of itself, as expected.

This should likely go to stable up to 5.2.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/numa/hmat.c