-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drmgr/pci: Do not add partner device if exists in the device tree
For PCI hotplug interface, the partner device will be added or removed if configured with the primary device add / remove. Whereas for PHB interface, drmgr notifies the user to add / remove partner device if configured with the primary device. So there is a possibility of partner PCI node exists in the device tree when PCI interface for ADD is executed. The current ADD code in drslot_chrp_pci.c does not check whether the partner device node is present and may add / enable partner device again which may give EEH errors. See the following sequence to get this scenario: drmgr -r -c phb -s "PHB 1336" --> Remove primary PHB node drmgr -r -c pci -s "U50EE.001.WZS000E-P3-C24-R2" --> Remove partner PCI node drmgr -a -c phb -s "PHB 1336" --> Add primary PHB node drmgr -a -c pci -s "U50EE.001.WZS000E-P3-C24-R2" --> Add partner PCI node and can try to add primary PCI node again. In this case "U50EE.001.WZS000E-P3-C24-R1". This patch fixes the issue by checking the device node in the device tree and add the device if does not present and remove only if the corresponding device node exists. Fixes: 4e6670d ("drmgr/pci: Add multipath partner device support for hotplug add") Signed-off-by: Haren Myneni <[email protected]> [tyreld: fixed up white space and replace/remove phrasing] Signed-off-by: Tyrel Datwyler <[email protected]>
- Loading branch information
Showing
1 changed file
with
52 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters