powerpc/rfi-flush: Differentiate enabled and patched flush types
authorMauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Sat, 26 May 2018 04:27:33 +0000 (14:27 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:51:51 +0000 (07:51 +0200)
commit123f6d5ccaa2c3614b12bd12da14cab2b79f637f
tree559ce5c78a4cf99d6a7fea91c976c5812323c30e
parent6af06dcdea08b1eace8088f6b39852d80a66312f
powerpc/rfi-flush: Differentiate enabled and patched flush types

commit 0063d61ccfc011f379a31acaeba6de7c926fed2c upstream.

Currently the rfi-flush messages print 'Using <type> flush' for all
enabled_flush_types, but that is not necessarily true -- as now the
fallback flush is always enabled on pseries, but the fixup function
overwrites its nop/branch slot with other flush types, if available.

So, replace the 'Using <type> flush' messages with '<type> flush is
available'.

Also, print the patched flush types in the fixup function, so users
can know what is (not) being used (e.g., the slower, fallback flush,
or no flush type at all if flush is disabled via the debugfs switch).

Suggested-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/kernel/setup_64.c
arch/powerpc/lib/feature-fixups.c