]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/lparcfg: add missing RTAS retry status handling
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 10 Feb 2023 18:41:52 +0000 (12:41 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:51 +0000 (16:43 +0100)
commit0eaef30a93121035f58496571cc743ff37babffa
treed76505865e1c55f78d74411187651a9cbdfab0a9
parent615dae9b147965489450ffe290dfdfc66de8cc6a
powerpc/pseries/lparcfg: add missing RTAS retry status handling

[ Upstream commit 5d08633e5f6564b60f1cbe09af3af40a74d66431 ]

The ibm,get-system-parameter RTAS function may return -2 or 990x,
which indicate that the caller should try again.

lparcfg's parse_system_parameter_string() ignores this, making it
possible to intermittently report incorrect SPLPAR characteristics.

Move the RTAS call into a coventional rtas_busy_delay()-based loop.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230125-b4-powerpc-rtas-queue-v3-4-26929c8cce78@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/pseries/lparcfg.c