linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Setup RFI flush after PowerVM LPM migration
@ 2018-02-14 21:33 Mauricio Faria de Oliveira
  2018-02-14 21:33 ` [PATCH 1/3] rfi-flush: Move the logic to avoid a redo into the debugfs code Mauricio Faria de Oliveira
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Mauricio Faria de Oliveira @ 2018-02-14 21:33 UTC (permalink / raw)
  To: linuxppc-dev, mpe

This patchset allows for setup_rfi_flush() to be called again
after PowerVM LPM (live partition mobility) aka LPAR migration.

It's originally written by Michael Ellerman; I just rebased it
on top of powerpc/merge as of 2018-02-14 BRST (commit 3f6f556).

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).

Testing:
-------

Fallback flush area allocated at boot time:

    # dmesg | grep rfi-flush
    [    0.000000] rfi-flush: Using fallback displacement flush
    [    0.000000] rfi-flush: patched 8 locations

    # 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: Call setup_rfi_flush() after LPM migration

 arch/powerpc/include/asm/setup.h          |  2 +-
 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    |  2 +-
 5 files changed, 36 insertions(+), 11 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-03-16 16:51 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-14 21:33 [PATCH 0/3] Setup RFI flush after PowerVM LPM migration Mauricio Faria de Oliveira
2018-02-14 21:33 ` [PATCH 1/3] rfi-flush: Move the logic to avoid a redo into the debugfs code Mauricio Faria de Oliveira
2018-02-14 21:33 ` [PATCH 2/3] rfi-flush: Make it possible to call setup_rfi_flush() again Mauricio Faria de Oliveira
2018-02-15  7:13   ` Michal Suchánek
2018-02-16 11:50     ` Mauricio Faria de Oliveira
2018-02-20  9:59       ` Michael Ellerman
2018-02-20 17:06         ` Michal Suchánek
2018-03-05 22:46           ` Mauricio Faria de Oliveira
2018-03-06 10:21             ` Michal Suchánek
2018-03-06 12:15             ` Michael Ellerman
2018-03-06 12:55               ` Michal Suchánek
2018-03-12 23:08                 ` Mauricio Faria de Oliveira
2018-03-13 11:39                   ` Michael Ellerman
2018-03-13 12:14                     ` Mauricio Faria de Oliveira
2018-03-13 17:59                       ` Michal Suchánek
2018-03-13 18:13                         ` Mauricio Faria de Oliveira
2018-03-13 18:36                           ` Michal Suchánek
2018-03-13 20:18                             ` Mauricio Faria de Oliveira
2018-03-16 14:18                               ` Michael Ellerman
2018-03-16 16:51                                 ` Mauricio Faria de Oliveira
2018-02-14 21:33 ` [PATCH 3/3] rfi-flush: Call setup_rfi_flush() after LPM migration Mauricio Faria de Oliveira
2018-02-14 21:39 ` [PATCH] DEBUG: shortcut mobility fixup/migration store, and abuse no_rfi_flush Mauricio Faria de Oliveira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).