]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
powerpc/pseries: Update hv-24x7 information after migration
authorKajol Jain <kjain@linux.ibm.com>
Mon, 25 May 2020 10:43:07 +0000 (16:13 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 May 2020 13:24:40 +0000 (23:24 +1000)
Function 'read_sys_info_pseries()' is added to get system parameter
values like number of sockets and chips per socket.
and it gets these details via rtas_call with token
"PROCESSOR_MODULE_INFO".

Incase lpar migrate from one system to another, system
parameter details like chips per sockets or number of sockets might
change. So, it needs to be re-initialized otherwise, these values
corresponds to previous system values.
This patch adds a call to 'read_sys_info_pseries()' from
'post-mobility_fixup()' to re-init the physsockets and physchips values

Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200525104308.9814-6-kjain@linux.ibm.com
arch/powerpc/platforms/pseries/mobility.c

index b571285f6c149e272928011d145e6c633776d4a5..10d98299773636e47f07d9dd01d6a00409bcfa52 100644 (file)
@@ -371,6 +371,9 @@ void post_mobility_fixup(void)
        /* Possibly switch to a new RFI flush type */
        pseries_setup_rfi_flush();
 
+       /* Reinitialise system information for hv-24x7 */
+       read_24x7_sys_info();
+
        return;
 }