powerpc/powernv: pr_warn_once on unsupported OPAL_MSG type
authorStewart Smith <stewart@linux.vnet.ibm.com>
Fri, 11 Dec 2015 01:08:23 +0000 (12:08 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2016 19:23:38 +0000 (11:23 -0800)
commit1e14dd5a386443f9dd4237f7da4df3669d903f0d
tree41d26201fc8e1553ab4869fc93c69cad62b70d19
parenta54d3a4234121d8a9749331f7b10e6ff02f886ba
powerpc/powernv: pr_warn_once on unsupported OPAL_MSG type

commit 98da62b716a3b24ab8e77453c9a8a954124c18cd upstream.

When running on newer OPAL firmware that supports sending extra
OPAL_MSG types, we would print a warning on *every* message received.

This could be a problem for kernels that don't support OPAL_MSG_OCC
on machines that are running real close to thermal limits and the
OCC is throttling the chip. For a kernel that is paying attention to
the message queue, we could get these notifications quite often.

Conceivably, future message types could also come fairly often,
and printing that we didn't understand them 10,000 times provides
no further information than printing them once.

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/opal.c