aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorGravatar Russell Currey <ruscur@russell.cc> 2023-02-10 19:03:57 +1100
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2023-02-12 22:12:39 +1100
commit9ee76bd5c7e39b622660cc14833ead1967f2038d (patch)
tree6278695f1f057a1edfdcd62e35c68ecb273639cb /arch/powerpc/include
parentpowerpc/pseries: Clarify warning when PLPKS password already set (diff)
downloadlinux-9ee76bd5c7e39b622660cc14833ead1967f2038d.tar.gz
linux-9ee76bd5c7e39b622660cc14833ead1967f2038d.tar.bz2
linux-9ee76bd5c7e39b622660cc14833ead1967f2038d.zip
powerpc/pseries: Add helper to get PLPKS password length
Add helper function to get the PLPKS password length. This will be used in a later patch to support passing the password between kernels over kexec. Signed-off-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20230210080401.345462-23-ajd@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/plpks.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/plpks.h b/arch/powerpc/include/asm/plpks.h
index 0c49969b0864..757313e00521 100644
--- a/arch/powerpc/include/asm/plpks.h
+++ b/arch/powerpc/include/asm/plpks.h
@@ -171,6 +171,11 @@ u32 plpks_get_maxlargeobjectsize(void);
*/
u64 plpks_get_signedupdatealgorithms(void);
+/**
+ * Returns the length of the PLPKS password in bytes.
+ */
+u16 plpks_get_passwordlen(void);
+
#endif // CONFIG_PSERIES_PLPKS
#endif // _ASM_POWERPC_PLPKS_H