hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/powerpc/platforms/pseries/papr_scm.c
....@@ -1079,6 +1079,13 @@
10791079 return -ENODEV;
10801080 }
10811081
1082
+ /*
1083
+ * open firmware platform device create won't update the NUMA
1084
+ * distance table. For PAPR SCM devices we use numa_map_to_online_node()
1085
+ * to find the nearest online NUMA node and that requires correct
1086
+ * distance table information.
1087
+ */
1088
+ update_numa_distance(dn);
10821089
10831090 p = kzalloc(sizeof(*p), GFP_KERNEL);
10841091 if (!p)