linux/arch/powerpc/platforms
Haren Myneni eca9f6e6f8 powerpc/pseries/vas: Ignore VAS update for DLPAR if copy/paste is not enabled
The hypervisor supports user-mode NX from Power10.

pseries_vas_dlpar_cpu() is called from lparcfg_write() to update VAS
windows for DLPAR event in shared processor mode and the kernel gets
-ENOTSUPP for HCALLs if the user-mode NX is not supported. The current
VAS implementation also supports only with Radix page tables. Whereas in
dedicated processor mode, pseries_vas_notifier() is registered only if
the copy/paste feature is enabled. So instead of displaying HCALL error
messages, update VAS capabilities if the copy/paste feature is
available.

This patch ignores updating VAS capabilities in pseries_vas_dlpar_cpu()
and returns success if the copy/paste feature is not enabled. Then
lparcfg_write() completes the processor DLPAR operations without any
failures.

Fixes: 2147783d6b ("powerpc/pseries: Use lparcfg to reconfig VAS windows for DLPAR CPU")
Cc: stable@vger.kernel.org # v6.1+
Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Reviewed-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/1d0e727e7dbd9a28627ef08ca9df9c86a50175e2.camel@linux.ibm.com
2023-03-29 23:01:35 +11:00
..
4xx powerpc/msi: Fix deassociation of MSI descriptors 2022-12-17 10:58:48 +00:00
8xx powerpc/8xx: Add missing of_node_put() in tqm8xx_setup.c 2022-09-05 17:28:25 +10:00
40x powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
44x powerpc: Check !irq instead of irq == NO_IRQ and remove NO_IRQ 2023-01-30 17:53:05 +11:00
52xx powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
82xx powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
83xx powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe() 2022-12-02 20:09:48 +11:00
85xx powerpc/sgy_cts1000: convert to using gpiod API and facelift 2022-11-24 23:31:48 +11:00
86xx powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
512x powerpc/512x: Add missing of_node_put() in clock-commonclk.c 2022-09-05 17:30:24 +10:00
amigaone powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
book3s mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
cell powerpc updates for 6.3 2023-02-25 11:00:06 -08:00
chrp powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
embedded6xx powerpc/embedded6xx/ls_uart: Add missing of_node_put() 2022-09-05 17:28:26 +10:00
maple powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
microwatt random: remove CONFIG_ARCH_RANDOM 2022-07-18 15:03:37 +02:00
pasemi powerpc updates for 6.2 2022-12-19 07:13:33 -06:00
powermac powerpc/powermac: Fix symbol not declared warnings 2022-11-24 23:31:50 +11:00
powernv powerpc/secvar: Handle max object size in the consumer 2023-02-12 22:12:37 +11:00
ps3 powerpc updates for 6.3 2023-02-25 11:00:06 -08:00
pseries powerpc/pseries/vas: Ignore VAS update for DLPAR if copy/paste is not enabled 2023-03-29 23:01:35 +11:00
fsl_uli1575.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
Kconfig powerpc: Rename PPC_NATIVE to PPC_HASH_MMU_NATIVE 2021-12-02 22:57:22 +11:00
Kconfig.cputype powerpc/64: Replace -mcpu=e500mc64 by -mcpu=e5500 2023-02-15 22:41:11 +11:00
Makefile powerpc: Add Microwatt platform 2021-06-21 21:15:26 +10:00