powerpc/rtasd: simplify handle_rtas_event(), emit message on events
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 12 Jun 2020 05:12:32 +0000 (00:12 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:12:38 +0000 (13:12 +1000)
commit91713ac377859893a7798999cb2e3a388d8ae710
treecca026107130d6cafc3d43bcc482b12f972e0f9c
parent1835303e5690cbeef2c07a9a5416045475ddaa13
powerpc/rtasd: simplify handle_rtas_event(), emit message on events

prrn_is_enabled() always returns false/0, so handle_rtas_event() can
be simplified and some dead code can be removed. Use machine_is()
instead of #ifdef to run this code only on pseries, and add an
informational ratelimited message that we are ignoring the
events. PRRN events are relatively rare in normal operation and
usually arise from operator-initiated actions such as a DPO (Dynamic
Platform Optimizer) run.

Eventually we do want to consume these events and update the device
tree, but that needs more care to be safe vs LPM and DLPAR.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200612051238.1007764-13-nathanl@linux.ibm.com
arch/powerpc/kernel/rtasd.c