powerpc/powernv: Rate limit opal-elog read failure message
authorAndrew Donnellan <ajd@linux.ibm.com>
Fri, 11 Dec 2020 02:11:41 +0000 (13:11 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Dec 2020 11:53:27 +0000 (22:53 +1100)
commitc88017cf2af614409da69934c1738ed5ff2f7022
tree5f618dd50eccc232522a0bc34bdda0a6f04f92c7
parent20e9de85edae3a5866f29b6cce87c9ec66d62a1b
powerpc/powernv: Rate limit opal-elog read failure message

Sometimes we can't read an error log from OPAL, and we print an error
message accordingly. But the OPAL userspace tools seem to like retrying a
lot, in which case we flood the kernel log with a lot of messages.

Change pr_err() to pr_err_ratelimited() to help with this.

Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201211021140.28402-1-ajd@linux.ibm.com
arch/powerpc/platforms/powernv/opal-elog.c