]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 17 Dec 2015 09:42:13 +0000 (20:42 +1100)
commita2e850ccd34e2f4942de5fdd6a13c094b3465524
tree51b28ac56040baf1512f1d8e18c23623d42c9aef
parent550e909603873bf42fad988a24919d86f6964292
powerpc/powernv: pr_warn_once on unsupported OPAL_MSG type

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.

Cc: stable@vger.kernel.org
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c