powerpc/powernv: Fix OPAL console driver OPAL_BUSY loops
authorNicholas Piggin <npiggin@gmail.com>
Mon, 30 Apr 2018 14:55:45 +0000 (00:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Jul 2018 12:09:55 +0000 (22:09 +1000)
commit36d2dabc8762f1f4118f80d85049958390f061a8
treed50f769f534f814b169e31c0964d9ba56945dd5b
parentbd90284cc6c1c9e8e48c8eadd0c79574fcce0b81
powerpc/powernv: Fix OPAL console driver OPAL_BUSY loops

The OPAL console driver does not delay in case it gets OPAL_BUSY or
OPAL_BUSY_EVENT from firmware.

It can't yet be made to sleep because it is called under spinlock,
but it can be changed to the standard OPAL_BUSY loop form, and a
delay added to keep it from hitting the firmware too frequently.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c