platform/x86: ISST: Fix optimization with use of numa
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 27 Jul 2021 16:50:52 +0000 (09:50 -0700)
committerHans de Goede <hdegoede@redhat.com>
Thu, 12 Aug 2021 07:25:38 +0000 (09:25 +0200)
commitd36d4a1d75d2a8bd14ec00d5cb0ce166f6886146
tree74decf783b4934ab9067541447c7175f1e6384e1
parente184b1e589a7fbb80bfdd0364c11422999a17a26
platform/x86: ISST: Fix optimization with use of numa

When numa is used to map CPU to PCI device, the optimized path to read
from cached data is not working and still calls _isst_if_get_pci_dev().

The reason is that when caching the mapping, numa information is not
available as it is read later. So move the assignment of
isst_cpu_info[cpu].numa_node before calling _isst_if_get_pci_dev().

Fixes: aa2ddd242572 ("platform/x86: ISST: Use numa node id for cpu pci dev mapping")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20210727165052.427238-1-srinivas.pandruvada@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel_speed_select_if/isst_if_common.c