powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration
authorMichael Ellerman <mpe@ellerman.id.au>
Sat, 26 May 2018 04:27:34 +0000 (14:27 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:51:51 +0000 (07:51 +0200)
commit 921bc6cf807ceb2ab8005319cf39f33494d6b100 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/pseries/mobility.c
arch/powerpc/platforms/pseries/pseries.h
arch/powerpc/platforms/pseries/setup.c

index f7042ad492bafba5ac21e3db9ce24977fd527169..fbea7db043faa0ececbc5e589032031412bc5654 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 1ae1d9f4dbe99935130971cdc390d8f581ad788e..27cdcb69fd18617301b9f19bf31a1f022c007650 100644 (file)
@@ -100,4 +100,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 2708ddab209b3096523686cbb4e58aab75fae043..b2d99b38408989418ca6729039d7be88386029aa 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;