powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Mar 2018 22:40:42 +0000 (19:40 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 08:25:14 +0000 (19:25 +1100)
We might have migrated to a machine that uses a different flush type,
or doesn't need flushing at all.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/mobility.c
arch/powerpc/platforms/pseries/pseries.h
arch/powerpc/platforms/pseries/setup.c

index 0f7fb7170b03ce5646aa13b9b9b55f5965f09aae..8a8033a249c738f10bfa3bf60e861b2fc8c715d3 100644 (file)
@@ -348,6 +348,9 @@ void post_mobility_fixup(void)
                printk(KERN_ERR "Post-mobility device tree update "
                        "failed: %d\n", rc);
 
+       /* Possibly switch to a new RFI flush type */
+       pseries_setup_rfi_flush();
+
        return;
 }
 
index c73351cea276a256b820c176a8d76a74c238f8a4..60db2ee511fb4669bc53d84686fddc317bda4148 100644 (file)
@@ -108,4 +108,6 @@ static inline unsigned long cmo_get_page_size(void)
 
 int dlpar_workqueue_init(void);
 
+void pseries_setup_rfi_flush(void);
+
 #endif /* _PSERIES_PSERIES_H */
index b20d1074acb944cd81cf6761dff21044ed2630d8..f34f9081ec6021a8a368756ab01df473738f7812 100644 (file)
@@ -459,7 +459,7 @@ static void __init find_and_init_phbs(void)
        of_pci_check_probe_only();
 }
 
-static void pseries_setup_rfi_flush(void)
+void pseries_setup_rfi_flush(void)
 {
        struct h_cpu_char_result result;
        enum l1d_flush_type types;