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

[ Upstream commit daa8ab59044610aa8ef2ee45a6c157b5e11635e9 ]

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

pseries_lpar_read_hblkrm_characteristics() ignores this, making it
possible to incorrectly detect TLB block invalidation characteristics
at boot.

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

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Fixes: d8e8b3ec979c ("powerpc/pseries: Read TLB Block Invalidate Characteristics")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230125-b4-powerpc-rtas-queue-v3-3-26929c8cce78@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/pseries/lpar.c