linux-stable/arch/powerpc/platforms/pseries
Nayna Jain ef27c8adce powerpc/pseries: Expose PLPKS config values, support additional fields
[ Upstream commit 119da30d03 ]

The plpks driver uses the H_PKS_GET_CONFIG hcall to retrieve configuration
and status information about the PKS from the hypervisor.

Update _plpks_get_config() to handle some additional fields. Add getter
functions to allow the PKS configuration information to be accessed from
other files. Validate that the values we're getting comply with the spec.

While we're here, move the config struct in _plpks_get_config() off the
stack - it's getting large and we also need to make sure it doesn't cross
a page boundary.

Signed-off-by: Nayna Jain <nayna@linux.ibm.com>
[ajd: split patch, extend to support additional v3 API fields, minor fixes]
Co-developed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Russell Currey <ruscur@russell.cc>
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-17-ajd@linux.ibm.com
Stable-dep-of: 932bed4121 ("powerpc/kexec_file: fix cpus node update to FDT")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:49:18 +02:00
..
cc_platform.c
cmm.c mm: Convert all PageMovable users to movable_operations 2022-08-02 12:34:03 -04:00
dlpar.c
dtl.c powerpc/pseries: Fix CONFIG_DTL=n build 2022-10-13 22:30:07 +11:00
eeh_pseries.c powerpc/pseries/eeh: use correct API for error log size 2022-12-31 13:32:52 +01:00
event_sources.c
firmware.c
hotplug-cpu.c powerpc/pseries: Add missing of_node_put()s in hotplug-cpu.c 2022-09-05 17:30:24 +10:00
hotplug-memory.c powerpc/pseries/memhp: Fix access beyond end of drmem array 2024-01-25 15:27:19 -08:00
hvCall.S powerpc/pseries: Fix hcall tracepoints with JUMP_LABEL=n 2023-09-13 09:42:48 +02:00
hvCall_inst.c
hvconsole.c
hvcserver.c powerpc: move from strlcpy with unused retval to strscpy 2022-08-26 11:02:20 +10:00
ibmebus.c powerpc/pseries: fix possible memory leak in ibmebus_bus_init() 2023-09-23 11:11:05 +02:00
io_event_irq.c
iommu.c powerpc/pseries/iommu: LPAR panics during boot up with a frozen PE 2024-05-17 11:56:03 +02:00
Kconfig powerpc/pseries: Implement CONFIG_PARAVIRT_TIME_ACCOUNTING 2022-09-05 14:14:02 +10:00
kexec.c powerpc/pseries: Fix scv instruction crash with kexec 2024-07-11 12:47:15 +02:00
lpar.c powerpc/pseries: Add failure related checks for h_get_mpp and h_get_ppp 2024-06-12 11:03:47 +02:00
lparcfg.c powerpc/pseries/lparcfg: drop error message from guest name lookup 2024-06-12 11:03:59 +02:00
Makefile powerpc/pseries: Fix CONFIG_DTL=n build 2022-10-13 22:30:07 +11:00
mobility.c powerpc/pseries: Move vas_migration_handler early during migration 2022-09-28 19:22:12 +10:00
msi.c
nvram.c
of_helpers.c
of_helpers.h
papr_platform_attributes.c powerpc/pseries: Fix potential memleak in papr_get_attr() 2024-03-26 18:20:52 -04:00
papr_scm.c powerpc/papr_scm: Update the NUMA distance table for the target node 2023-04-20 12:35:14 +02:00
pci.c
pci_dlpar.c
plpks.c powerpc/pseries: Expose PLPKS config values, support additional fields 2024-08-03 08:49:18 +02:00
pmem.c
power.c
pseries.h powerpc/pseries: Fix scv instruction crash with kexec 2024-07-11 12:47:15 +02:00
pseries_energy.c
ras.c
reconfig.c powerpc/pseries: block untrusted device tree changes when locked down 2022-09-28 19:22:14 +10:00
rng.c
rtas-fadump.c
rtas-fadump.h
setup.c powerpc/pseries: Whitelist dtl slub object for copying to userspace 2024-07-25 09:49:17 +02:00
smp.c
suspend.c
svm.c
vas-sysfs.c
vas.c powerpc/vas: Limit open window failure messages in log bufffer 2023-11-20 11:52:12 +01:00
vas.h powerpc/pseries: Use lparcfg to reconfig VAS windows for DLPAR CPU 2022-10-18 22:46:18 +11:00
vio.c
vphn.c