linux/arch/powerpc/platforms/pseries
Nathan Lynch b7d5333c48 powerpc/pseries/setup: add missing RTAS retry status handling
The ibm,get-system-parameter RTAS function may return -2 or 990x,
which indicate that the caller should try again.

pSeries_cmo_feature_init() ignores this, making it possible to fail to
detect cooperative memory overcommit capabilities during boot.

Move the RTAS call into a conventional rtas_busy_delay()-based
loop, dropping unnecessary clearing of rtas_data_buf.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230125-b4-powerpc-rtas-queue-v3-5-26929c8cce78@linux.ibm.com
2023-02-13 22:35:01 +11:00
..
cc_platform.c powerpc/pseries/svm: Add a powerpc version of cc_platform_has() 2021-10-04 11:46:33 +02:00
cmm.c mm: Convert all PageMovable users to movable_operations 2022-08-02 12:34:03 -04:00
dlpar.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
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-07 22:39:50 +11:00
event_sources.c powerpc/pseries: Add __init attribute to eligible functions 2021-12-23 22:33:15 +11:00
firmware.c powerpc/pseries: add FW_FEATURE_WATCHDOG flag 2022-07-20 21:57:39 +10:00
hotplug-cpu.c powerpc/pseries: unregister VPA when hot unplugging a CPU 2022-12-07 20:30:23 +11:00
hotplug-memory.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
hvCall_inst.c powerpc/pseries: Make symbol '__pcpu_scope_hcall_stats' static 2021-04-14 23:04:17 +10:00
hvCall.S powerpc/pseries: hvcall stack frame overhead 2022-12-02 17:54:07 +11:00
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: Add missing of_node_put() in ibmebus 2022-09-05 17:28:26 +10:00
io_event_irq.c
iommu.c powerpc/pseries: Fix formatting to make code look more beautiful 2022-11-24 23:31:46 +11:00
Kconfig powerpc/pseries: Implement secvars for dynamic secure boot 2023-02-13 22:34:33 +11:00
kexec.c powerpc: Don't include asm/setup.h in asm/machdep.h 2022-06-20 11:29:49 +10:00
lpar.c powerpc/pseries/lpar: add missing RTAS retry status handling 2023-02-13 22:35:01 +11:00
lparcfg.c powerpc/pseries/lparcfg: add missing RTAS retry status handling 2023-02-13 22:35:01 +11:00
Makefile powerpc/pseries: Implement secvars for dynamic secure boot 2023-02-13 22:34:33 +11:00
mobility.c powerpc/pseries: reset the RCU watchdogs after a LPM 2022-12-07 20:30:09 +11:00
msi.c powerpc/pseries/msi: Use msi_domain_ops:: Msi_post_free() 2022-11-17 15:15:19 +01:00
nvram.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
of_helpers.c powerpc/pseries: Fix of_read_drc_info_cell() to point at next record 2020-03-25 12:06:43 +11:00
of_helpers.h
papr_platform_attributes.c powerpc: Include asm/firmware.h in all users of firmware_has_feature() 2022-06-29 16:45:05 +10:00
papr_scm.c powerpc/papr_scm: Ensure rc is always initialized in papr_scm_pmu_register() 2022-09-02 18:55:11 +10:00
pci_dlpar.c powerpc/pseries: Fix use after free in remove_phb_dynamic() 2022-03-21 13:17:47 +11:00
pci.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
plpks-secvar.c powerpc/pseries: Implement secvars for dynamic secure boot 2023-02-13 22:34:33 +11:00
plpks.c powerpc/pseries: Pass PLPKS password on kexec 2023-02-12 22:12:39 +11:00
pmem.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
power.c powerpc: declare unmodified attribute_group usages const 2022-03-08 22:15:32 +11:00
pseries_energy.c powerpc/pseries: Fix drc-info mappings of logical cpus to drc-index 2019-11-13 16:57:57 +11:00
pseries.h powerpc/pseries: wire up rng during setup_arch() 2022-06-18 10:19:10 +10:00
ras.c powerpc/mce: Avoid using irq_work_queue() in realmode 2022-03-08 00:05:00 +11:00
reconfig.c powerpc/pseries: block untrusted device tree changes when locked down 2022-09-28 19:22:14 +10:00
rng.c powerpc/pseries: wire up rng during setup_arch() 2022-06-18 10:19:10 +10:00
rtas-fadump.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
rtas-fadump.h powerpc/fadump: support holes in kernel boot memory area 2019-09-14 00:04:46 +10:00
setup.c powerpc/pseries/setup: add missing RTAS retry status handling 2023-02-13 22:35:01 +11:00
smp.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
suspend.c powerpc/pseries/hibernation: remove prepare_late() callback 2020-12-08 21:41:02 +11:00
svm.c swiotlb: add a SWIOTLB_ANY flag to lift the low memory restriction 2022-04-18 07:21:12 +02:00
vas-sysfs.c powerpc/pseries/vas: Call misc_deregister if sysfs init fails 2022-05-22 15:58:31 +10:00
vas.c powerpc/pseries: Use lparcfg to reconfig VAS windows for DLPAR CPU 2022-10-18 22:46:18 +11:00
vas.h powerpc/pseries: Use lparcfg to reconfig VAS windows for DLPAR CPU 2022-10-18 22:46:18 +11:00
vio.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
vphn.c powerpc/vphn: Check for error from hcall_vphn 2020-03-04 22:44:30 +11:00