OSDN Git Service

powerpc/rfi-flush: Differentiate enabled and patched flush types
authorMauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Sun, 21 Apr 2019 14:19:53 +0000 (00:19 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:44:45 +0000 (19:44 +0200)
commite5c8265abdbbf623d7d1fa0f199a36956c4bc2c2
tree6bee09d90c3dfdac2937441d7aba92bd291a45fd
parent8b58add49fef14d0df81872f442c05df7a19b689
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