--- v3
+++ v1
@@ -1,34 +1,61 @@
This patchset allows for setup_rfi_flush() to be called again
-after PowerVM LPM (live partition mobility) aka LPAR migration,
-in order to possibly switch to a different flush method.
+after PowerVM LPM (live partition mobility) aka LPAR migration.
-The patches are mostly from Michael Ellerman, I have rebased to
-powerpc/linux.git merge branch as of commit d8443ef (March 14).
+It's originally written by Michael Ellerman; I just rebased it
+on top of powerpc/merge as of 2018-02-14 BRST (commit 3f6f556).
-Testcase and results sent as the last email in the series.
+I tested it with a debug patch (sending shortly) to shortcut
+the LPM functions migration_store() and post_mobility_fixup()
+to just reach pseries_setup_rfi_flush(), and abuse the boot
+option 'no_rfi_flush' not to allocate the fallback flush area
+at boot (to simulate the migration from patched to unpatched
+system).
-v3: add patch 4 to tell flush types are 'available' and not 'Using'.
- remove plumbing patch.
+Testing:
+-------
-v2: add plumbing patch between platforms and setup code to
- force init fallback flush.
+Fallback flush area allocated at boot time:
-Mauricio Faria de Oliveira (1):
- rfi-flush: Differentiate enabled and patched flush types
+ # dmesg | grep rfi-flush
+ [ 0.000000] rfi-flush: Using fallback displacement flush
+ [ 0.000000] rfi-flush: patched 8 locations
-Michael Ellerman (4):
+ # echo > /sys/kernel/mobility/migration
+
+ # dmesg | grep rfi-flush
+ [ 0.000000] rfi-flush: Using fallback displacement flush
+ [ 0.000000] rfi-flush: patched 8 locations
+ [ 51.793238] rfi-flush: Using fallback displacement flush
+ [ 51.793258] rfi-flush: patched 8 locations
+
+Fallback flush area NOT allocated at boot time:
+
+ # grep -o no_rfi_flush /proc/cmdline
+ no_rfi_flush
+
+ # dmesg | grep rfi-flush
+ [ 0.000000] rfi-flush: disabled on command line.
+ [ 0.000000] rfi-flush: re-enabled
+
+ # echo > /sys/kernel/mobility/migration
+
+ # dmesg | grep rfi-flush
+ [ 0.000000] rfi-flush: disabled on command line.
+ [ 0.000000] rfi-flush: re-enabled
+ [ 31.817921] rfi-flush: Error unable to use fallback displacement flush!
+ [ 31.817927] rfi-flush: patched 8 locations
+
+Michael Ellerman (3):
rfi-flush: Move the logic to avoid a redo into the debugfs code
rfi-flush: Make it possible to call setup_rfi_flush() again
- rfi-flush: Always enable fallback flush on pseries
rfi-flush: Call setup_rfi_flush() after LPM migration
arch/powerpc/include/asm/setup.h | 2 +-
- arch/powerpc/kernel/setup_64.c | 25 ++++++++++++++++---------
- arch/powerpc/lib/feature-fixups.c | 9 ++++++++-
+ arch/powerpc/kernel/setup_64.c | 38 +++++++++++++++++++++++--------
arch/powerpc/platforms/pseries/mobility.c | 3 +++
arch/powerpc/platforms/pseries/pseries.h | 2 ++
- arch/powerpc/platforms/pseries/setup.c | 12 ++----------
- 6 files changed, 32 insertions(+), 21 deletions(-)
+ arch/powerpc/platforms/pseries/setup.c | 2 +-
+ 5 files changed, 36 insertions(+), 11 deletions(-)
--
2.7.4