sst-linux/arch/powerpc/platforms
Russell Currey 5906357807 powerpc/pseries: Avoid hcall in plpks_is_available() on non-pseries
commit f82cdc37c4bd4ba905bf99ade9782a639b5c12e9 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: 119da30d037d ("powerpc/pseries: Expose PLPKS config values, support additional fields")
Reported-by: Murphy Zhou <jencce.kernel@gmail.com>
Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230222021708.146257-1-ruscur@russell.cc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-03 08:49:53 +02:00
..
4xx
8xx
40x
44x powerpc/44x: select I2C for CURRITUCK 2024-01-25 15:27:19 -08:00
52xx
82xx
83xx
85xx
86xx
512x
amigaone
book3s
cell
chrp
embedded6xx powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc. 2024-03-26 18:20:52 -04:00
maple
microwatt
pasemi
powermac
powernv powerpc/powernv: Add a null pointer check in opal_powercap_init() 2024-01-25 15:27:19 -08:00
ps3
pseries powerpc/pseries: Avoid hcall in plpks_is_available() on non-pseries 2024-08-03 08:49:53 +02:00
fsl_uli1575.c
Kconfig
Kconfig.cputype
Makefile