Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-01-11 14:43:07 +0100
committerMichal Suchanek <msuchanek@suse.de>2018-01-11 15:47:05 +0100
commit7e36f454d245b443074548aca48c0f002a9039e4 (patch)
tree7f8c15296649f5f206ed078de2619955540d915f
parent739075b0936f567cf0a81c4500a99025f41d9e56 (diff)
powerpc/pseries/rfi-flush: Call setup_rfi_flush() after LPM
migration (bsc#1068032, bsc#1075087). suse-commit: dc49785d061e0d91132a273c7257858f18678575
-rw-r--r--arch/powerpc/platforms/pseries/mobility.c3
-rw-r--r--arch/powerpc/platforms/pseries/pseries.h2
-rw-r--r--arch/powerpc/platforms/pseries/setup.c4
3 files changed, 7 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobility.c
index 34d4b35d7a3e..873e49b93f76 100644
--- a/arch/powerpc/platforms/pseries/mobility.c
+++ b/arch/powerpc/platforms/pseries/mobility.c
@@ -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;
}
diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h
index c6fb83f09671..45f36f41700d 100644
--- a/arch/powerpc/platforms/pseries/pseries.h
+++ b/arch/powerpc/platforms/pseries/pseries.h
@@ -83,4 +83,6 @@ extern struct pci_controller_ops pseries_pci_controller_ops;
unsigned long pseries_memory_block_size(void);
+void pseries_setup_rfi_flush(void);
+
#endif /* _PSERIES_PSERIES_H */
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c
index ec5a16ceeb78..f703b1ffcb15 100644
--- a/arch/powerpc/platforms/pseries/setup.c
+++ b/arch/powerpc/platforms/pseries/setup.c
@@ -545,7 +545,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)
{
unsigned long character, behaviour, rc;
enum l1d_flush_type types;
@@ -600,7 +600,7 @@ static void __init pSeries_setup_arch(void)
fwnmi_init();
- pSeries_setup_rfi_flush();
+ pseries_setup_rfi_flush();
/* By default, only probe PCI (can be overriden by rtas_pci) */
pci_add_flags(PCI_PROBE_ONLY);