Skip to content

Commit

Permalink
powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman committed Mar 27, 2018
1 parent 0063d61 commit 921bc6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/pseries/mobility.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/platforms/pseries/pseries.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/pseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 921bc6c

Please sign in to comment.