Skip to content
Commit 59063578 authored by Russell Currey's avatar Russell Currey Committed by Greg Kroah-Hartman
Browse files

powerpc/pseries: Avoid hcall in plpks_is_available() on non-pseries

commit f82cdc37 upstream.

plpks_is_available() can be called on any platform via kexec but calls
_plpks_get_config() which makes a hcall, which will only work on pseries.
Fix this by returning early in plpks_is_available() if hcalls aren't
possible.

Fixes: 119da30d

 ("powerpc/pseries: Expose PLPKS config values, support additional fields")
Reported-by: default avatarMurphy Zhou <jencce.kernel@gmail.com>
Signed-off-by: default avatarRussell Currey <ruscur@russell.cc>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230222021708.146257-1-ruscur@russell.cc
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd2c5576
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment