linux/arch/powerpc/platforms
Haren Myneni 3f91bec308 powerpc/pseries/dlpar: Search DRC index from ibm,drc-indexes for IO add
[ Upstream commit 41a1452759 ]

IO hotplug add event is handled in the user space with drmgr tool.
After the device is enabled, the user space uses /sys/kernel/dlpar
interface with “dt add index <drc_index>” to update the device tree.
The kernel interface (dlpar_hp_dt_add()) finds the parent node for
the specified ‘drc_index’ from ibm,drc-info property. The recent FW
provides this property from 2017 onwards. But KVM guest code in
some releases is still using the older SLOF firmware which has
ibm,drc-indexes property instead of ibm,drc-info.

If the ibm,drc-info is not available, this patch adds changes to
search ‘drc_index’ from the indexes array in ibm,drc-indexes
property to support old FW.

Fixes: 02b98ff44a ("powerpc/pseries/dlpar: Add device tree nodes for DLPAR IO add")
Reported-by: Kowshik Jois <kowsjois@linux.ibm.com>
Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Tested-by: Amit Machhiwal <amachhiw@linux.ibm.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250531235002.239213-1-haren@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:13:40 +02:00
..
8xx Revert "powerpc/8xx: Always pin kernel text TLB" 2024-08-30 21:29:52 +10:00
44x powerpc/476: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-07 22:49:12 +10:00
52xx powerpc: Stop using no_llseek 2024-09-05 22:30:14 +10:00
82xx powerpc/82xx: Select FSL_SOC 2023-09-18 12:23:48 +10:00
83xx powerpc: rename SPRN_HID2 define to SPRN_HID2_750FX 2024-05-08 00:25:00 +10:00
85xx powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
86xx powerpc/86xx: Drop unused CONFIG_MPC8610 2023-12-29 15:23:00 +11:00
512x powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
amigaone powerpc/amigaone: Make several functions static 2024-03-07 00:13:28 +11:00
book3s powerpc/vas: Return -EINVAL if the offset is non-zero in mmap() 2025-06-19 15:32:28 +02:00
cell spufs: fix a leak in spufs_create_context() 2025-04-10 14:39:32 +02:00
chrp MIPS: Remove the obsoleted code for include/linux/mv643xx.h 2024-09-13 21:18:42 -07:00
embedded6xx powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc. 2024-03-07 00:13:28 +11:00
maple powerpc/maple: Remove obsoleted declaration for maple_calibrate_decr() 2024-08-30 21:05:21 +10:00
microwatt powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
pasemi powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
powermac powerpc/powermac/pfunc_base: Use helper function for_each_child_of_node() 2024-08-29 22:30:34 +10:00
powernv powerpc/powernv/memtrace: Fix out of bounds issue in memtrace mmap 2025-06-19 15:32:28 +02:00
ps3 driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
pseries powerpc/pseries/dlpar: Search DRC index from ibm,drc-indexes for IO add 2025-08-15 12:13:40 +02:00
fsl_uli1575.c powerpc/fsl_uli1575: Mark uli_exclude_device() as static 2023-04-20 10:20:50 +10:00
Kconfig powerpc/40x: Remove 40x platforms. 2024-06-28 22:28:47 +10:00
Kconfig.cputype powerpc/mm/64s: Restrict THP to Radix or HPT w/64K pages 2024-09-05 22:29:57 +10:00
Makefile powerpc/platforms: Move files from 4xx to 44x 2024-06-28 22:28:48 +10:00