acpi/hmat: Register processor domain to its memory
authorKeith Busch <keith.busch@intel.com>
Mon, 11 Mar 2019 20:56:03 +0000 (14:56 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Apr 2019 16:41:21 +0000 (18:41 +0200)
commit665ac7e92757fb74d249b2817dd91b3d9439d0a0
tree0ccb1c94826a16a0573f3a6360ce1ef86a65f222
parentacc02a109b0497e917c83f986a89c51e47d0022c
acpi/hmat: Register processor domain to its memory

If the HMAT Subsystem Address Range provides a valid processor proximity
domain for a memory domain, or a processor domain matches the performance
access of the valid processor proximity domain, register the memory
target with that initiator so this relationship will be visible under
the node's sysfs directory.

Since HMAT requires valid address ranges have an equivalent SRAT entry,
verify each memory target satisfies this requirement.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Brice Goglin <Brice.Goglin@inria.fr>
Tested-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/hmat/Kconfig
drivers/acpi/hmat/hmat.c