summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorShivaprasad G Bhat <sbhat@linux.ibm.com>2026-06-26 09:13:03 +0000
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-09-05 11:11:39 +0530
commit8a4978c17a144a6583478cce933bcb2dbb25298d (patch)
tree030d99dbbb84909cb37e1d57e16d76088c20b63f /tools/lib/python/kdoc/python_version.py
parentc5e68706527968282e49de205cc2b935823cb88a (diff)
powerpc/rtas_pci: No hotplug on permanently removed device on pSeries
The eeh_driver disables and offlines the PE permanently when it exceeds the freeze count beyond eeh_max_freeze within the last hour. The PE is only offline, so the device tree entries, eeh device references are all intact till the real unplug of the device from the guest/host takes place. On pSeries, with a new hotplug of any PCI device, the drmgr initiates a system-wide PCI rescan, which finds devices offlined by the eeh_driver and there will be attempts to bring them online. This leads to recurring EEHs either at the config read time itself or a bit later depending on the type of the problem. For PowerNV, the commit d2b0f6f77ee5 ("powerpc/eeh: No hotplug on permanently removed dev") introduced the EEH_DEV_REMOVED flag to prevent such inadvertent rescans on hierarchical toplogies relavent in Baremetal setups. For pSeries, such topologies don't really make sense as the devices are either part of the same PE OR exposed as independent devices on multiple virtual PHBs. However, the inadvertent rescans are still a possibility with either hotplug of a new device or otherwise with manual system-wide pci bus rescan attempts. So the patch checks for EEH_DEV_REMOVED before allowing config space access just like PowerNV, making the PCI core omit the PE, and thus preventing subsequent EEH recurances. The patch is tested on PowerVM and KVM machines with single and multi-function devices, and on the devices behind a switch. The unplug of the affected devices post EEH removal is also working fine as expected. Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com> Reported-by: Tasmiya Nalatwad <tasmiya@linux.ibm.com> Tested-by: Tasmiya Nalatwad <tasmiya@linux.ibm.com> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> References: d2b0f6f77ee5 ("powerpc/eeh: No hotplug on permanently removed dev") Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/178246517230.1267.12206176311111155505.stgit@linux.ibm.com
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions