powerpc/64s/powernv: Ratelimit harmless HMI error printing
authorNicholas Piggin <npiggin@gmail.com>
Sat, 28 Nov 2020 07:07:25 +0000 (17:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:23 +0000 (01:01 +1100)
commitf4b239e4c6bddf63d00cd460eabb933232dbc326
tree9cf11ddad8ae9ad94c610f0042808f7b6f1218a7
parent1d15ffdfc94127d75e04a88344ee1ce8c79f05fd
powerpc/64s/powernv: Ratelimit harmless HMI error printing

Harmless HMI errors can be triggered by guests in some cases, and don't
contain much useful information anyway. Ratelimit these to avoid
flooding the console/logs.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Use dedicated ratelimit state, not printk_ratelimit()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201128070728.825934-6-npiggin@gmail.com
arch/powerpc/platforms/powernv/opal-hmi.c