[PATCH 0/2] ACPI: HMAT: fix single-initiator target registrations

2022-11-15 Thread Vishal Verma
Patch 1 is an obvious cleanup found while fixing this problem. Patch 2 Fixes a bug with initiator registration for single-initiator systems. More details on this in its commit message. Vishal Verma (2): ACPI: HMAT: remove unnecessary variable initialization ACPI: HMAT: Fix initiator registra

[PATCH 2/2] ACPI: HMAT: Fix initiator registration for single-initiator systems

2022-11-15 Thread Vishal Verma
In a system with a single initiator node, and one or more memory-only 'target' nodes, the memory-only node(s) would fail to register their initiator node correctly. i.e. in sysfs: # ls /sys/devices/system/node/node0/access0/targets/ node0 Where as the correct behavior should be: # ls /sys/

[PATCH 1/2] ACPI: HMAT: remove unnecessary variable initialization

2022-11-15 Thread Vishal Verma
In hmat_register_target_initiators(), the variable 'best' gets initialized in the outer per-locality-type for loop. The initialization just before setting up 'Access 1' targets was unnecessary. Remove it. Cc: Rafael J. Wysocki Cc: Liu Shixin Cc: Dan Williams Signed-off-by: Vishal Verma --- dr

[PATCH v2] virtio_pmem: populate numa information

2022-11-15 Thread Michael Sammler
Compute the numa information for a virtio_pmem device from the memory range of the device. Previously, the target_node was always 0 since the ndr_desc.target_node field was never explicitly set. The code for computing the numa node is taken from cxl_pmem_region_probe in drivers/cxl/pmem.c. Signed-