linux/arch/powerpc/platforms/pseries
Vaibhav Jain 8f45abd50a powerpc/pseries: Skip vpa_init() for boot cpu in smp_setup_cpu()
During pSeries_setup_arch(), VPA for boot-cpu is first to be
initialized. However later in the boot, smp_setup_cpu() is called for
setting up VPA on boot and secondary cpus that were brought online. This
results in vpa_init() being called twice for boot-cpu and three redundant
H_REGISTER_VPA hcalls being made to the hypervisor.

Fix this by adding an extra condition in smp_set_cpu() to call vpa_init()
only on non boot-cpus.

Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260708015842.274690-1-vaibhav@linux.ibm.com
2026-07-28 10:08:32 +05:30
..
cc_platform.c
cmm.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
dlpar.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
dtl.c powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore 2024-10-29 23:01:36 +11:00
eeh_pseries.c powerpc/pseries/eeh: Fix get PE state translation 2025-01-21 10:43:08 +05:30
event_sources.c
firmware.c powerpc/pseries: Add FW_FEATURE_PLPKS feature flag 2023-04-20 13:21:46 +10:00
hotplug-cpu.c powerpc: Split systemcfg struct definitions out from vdso 2024-11-02 12:37:36 +01:00
hotplug-memory.c mm.git review status for mm-hotfixes-stable..mm-stable 2026-06-19 10:14:34 -07:00
htmdump.c powerpc/pseries/htmdump: Add memory configuration dump support to htmdump module 2026-05-06 07:29:18 +05:30
hvCall_inst.c
hvCall.S powerpc/pseries: Remove unused r0 in the hcall tracing code 2023-09-30 22:52:18 +10:00
hvconsole.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvcserver.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
ibmebus.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
io_event_irq.c powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
iommu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig powerpc/pseries/Kconfig: Enable CONFIG_VPA_PMU to be used with KVM 2026-07-10 17:10:13 +05:30
kexec.c powerpc/pseries: Ensure vpa,slb_shadow & dtl are unregistered during crash 2026-07-28 10:07:39 +05:30
lpar.c powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore 2024-10-29 23:01:36 +11:00
lparcfg.c powerpc/pseries/lparcfg: Replace deprecated strcpy in parse_system_parameter_string 2026-06-02 11:24:33 +05:30
Makefile powerpc/pseries: move the PLPKS config inside its own sysfs directory 2026-01-30 09:27:26 +05:30
mobility.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
msi.c powerpc/pseries: Correct MSI allocation tracking 2026-03-07 16:02:28 +05:30
nvram.c powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
of_helpers.c
of_helpers.h
papr_platform_attributes.c powerpc/pseries: fix memory leak on krealloc failure in papr_init 2026-07-15 08:04:13 +05:30
papr_scm.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
papr-hvpipe.c pseries/papr-hvpipe: Fix style and checkpatch issues in enable_hvpipe_IRQ() 2026-05-06 07:30:25 +05:30
papr-hvpipe.h pseries/papr-hvpipe: Kill task_struct pointer from struct hvpipe_source_info 2026-05-06 07:30:25 +05:30
papr-indices.c powerpc/pseries: Add ibm,get-dynamic-sensor-state RTAS call support 2025-04-17 11:42:29 +05:30
papr-phy-attest.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-platform-dump.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-rtas-common.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-rtas-common.h powerpc/pseries: Define common functions for RTAS sequence calls 2025-04-17 11:42:29 +05:30
papr-sysparm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
papr-vpd.c powerpc/pseries: Define common functions for RTAS sequence calls 2025-04-17 11:42:29 +05:30
pci_dlpar.c drivers/base/node: fold register_node() into register_one_node() 2025-11-16 17:28:02 -08:00
pci.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
plpks_sed_ops.c powerpc/pseries: PLPKS SED Opal keystore support 2023-10-17 09:10:06 -06:00
plpks-secvar.c powerpc/pseries: move the PLPKS config inside its own sysfs directory 2026-01-30 09:27:26 +05:30
plpks-sysfs.c pseries/plpks: expose PowerVM wrapping features via the sysfs 2026-01-30 09:27:26 +05:30
plpks.c powerpc/pseries: plpks: export plpks_wrapping_is_supported 2026-02-11 07:53:54 +05:30
pmem.c powerpc/pseries: Use correct data types from pseries_hp_errorlog struct 2024-08-30 21:31:25 +10:00
power.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
pseries_energy.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
pseries.h powerpc/pseries: Fix scv instruction crash with kexec 2024-06-28 22:05:44 +10:00
ras.c powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
reconfig.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rng.c
rtas-fadump.c powerpc/fadump: Add timeout to RTAS busy-wait loops 2026-06-02 11:23:57 +05:30
rtas-fadump.h powerpc/fadump: Add timeout to RTAS busy-wait loops 2026-06-02 11:23:57 +05:30
rtas-work-area.c powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc 2023-11-07 13:13:44 +11:00
setup.c PCI: Make pci_sriov_resource_alignment() pci_dev const 2026-06-23 12:08:51 -05:00
smp.c powerpc/pseries: Skip vpa_init() for boot cpu in smp_setup_cpu() 2026-07-28 10:08:32 +05:30
suspend.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
svm.c powerpc/machdep: Remove duplicated include in svm.c 2024-11-27 10:38:17 +05:30
vas-sysfs.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
vas.c mm: rename zap_vma_pages() to zap_vma() 2026-04-05 13:53:14 -07:00
vas.h powerpc/pseries/vas: Migration suspend waits for no in-progress open windows 2023-12-13 22:01:47 +11:00
vio.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
vphn.c powerpc/pseries: Move VPHN constants into vphn.h 2023-08-24 22:33:16 +10:00