kernel_optimize_test/arch/powerpc
Nathan Lynch c035dcae0b powerpc/pseries/dlpar: handle ibm, configure-connector delay status
[ Upstream commit 768d70e19ba525debd571b36e6d0ab19956c63d7 ]

dlpar_configure_connector() has two problems in its handling of
ibm,configure-connector's return status:

1. When the status is -2 (busy, call again), we call
   ibm,configure-connector again immediately without checking whether
   to schedule, which can result in monopolizing the CPU.
2. Extended delay status (9900..9905) goes completely unhandled,
   causing the configuration to unnecessarily terminate.

Fix both of these issues by using rtas_busy_delay().

Fixes: ab519a011c ("powerpc/pseries: Kernel DLPAR Infrastructure")
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210107025900.410369-1-nathanl@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:38:04 +01:00
..
boot
configs
crypto
include
kernel powerpc/time: Enable sched clock for irqtime 2021-03-04 11:38:01 +01:00
kexec
kvm
lib
math-emu
mm
net
oprofile
perf
platforms powerpc/pseries/dlpar: handle ibm, configure-connector delay status 2021-03-04 11:38:04 +01:00
purgatory
sysdev
tools
xmon
Kbuild
Kconfig powerpc/47x: Disable 256k page size 2021-03-04 11:38:01 +01:00
Kconfig.debug
Makefile
Makefile.postlink