powerpc/pseries/setup: add missing RTAS retry status handling
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 10 Feb 2023 18:41:53 +0000 (12:41 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Feb 2023 11:35:01 +0000 (22:35 +1100)
commitb7d5333c48a21fd6a20f54b6887bcc191d21c273
treeb3386f3e7141bb4df2b9917437becbff528cc287
parent5d08633e5f6564b60f1cbe09af3af40a74d66431
powerpc/pseries/setup: add missing RTAS retry status handling

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

pSeries_cmo_feature_init() ignores this, making it possible to fail to
detect cooperative memory overcommit capabilities during boot.

Move the RTAS call into a conventional rtas_busy_delay()-based
loop, dropping unnecessary clearing of rtas_data_buf.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230125-b4-powerpc-rtas-queue-v3-5-26929c8cce78@linux.ibm.com
arch/powerpc/platforms/pseries/setup.c