]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b7b18823d9a0d43ffcb3677dff3dc46f6b7e856
treed50f769f534f814b169e31c0964d9ba56945dd5b
parent73e8b675a91c211921d36a6f985679c1f49de93f
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