Revision b5c6660ea60fa37f12b985b640b1223587e54d2c authored by Jonathan Cameron on 07 March 2024, 16:03:26 UTC, committed by Michael Tokarev on 13 March 2024, 18:52:34 UTC
With a numa set up such as

-numa nodeid=0,cpus=0 \
-numa nodeid=1,memdev=mem \
-numa nodeid=2,cpus=1

and appropriate hmat_lb entries the initiator list is correctly
computed and writen to HMAT as 0,2 but then the LB data is accessed
using the node id (here 2), landing outside the entry_list array.

Stash the reverse lookup when writing the initiator list and use
it to get the correct array index index.

Fixes: 4586a2cb83 ("hmat acpi: Build System Locality Latency and Bandwidth Information Structure(s)")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20240307160326.31570-3-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 74e2845c5f95b0c139c79233ddb65bb17f2dd679)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
1 parent 313e746
History
File Mode Size
meson.build -rw-r--r-- 67 bytes
softfloat-parts-addsub.c.inc -rw-r--r-- 1.6 KB
softfloat-parts.c.inc -rw-r--r-- 45.7 KB
softfloat-specialize.c.inc -rw-r--r-- 28.9 KB
softfloat.c -rw-r--r-- 148.3 KB

back to top