powerpc/pseries: Add FW_FEATURE_PLPKS feature flag
authorAndrew Donnellan <ajd@linux.ibm.com>
Fri, 24 Feb 2023 04:10:12 +0000 (15:10 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Apr 2023 03:21:46 +0000 (13:21 +1000)
commitdf9cad09493808dca7d16a2fbcac1a78e8d412af
tree155e3b93631ecfda14ba7d6961273ef16ce81555
parentae7312c09014fceb782a92cfb934e973f08b338f
powerpc/pseries: Add FW_FEATURE_PLPKS feature flag

Add a firmware feature flag, FW_FEATURE_PLPKS, to indicate availability of
Platform KeyStore related hcalls.

Check this flag in plpks_is_available() and pseries_plpks_init() before
trying to make an hcall.

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230224041012.772648-1-ajd@linux.ibm.com
arch/powerpc/include/asm/firmware.h
arch/powerpc/platforms/pseries/firmware.c
arch/powerpc/platforms/pseries/plpks.c