Skip to content

Commit e716e01

Browse files
shangwozbenh
authored andcommitted
powerpc/eeh: Do not invalidate PE properly
While the EEH does recovery on the specific PE that has PCI errors, the PCI devices belonging to the PE will be removed and the PE will be marked as invalid since we still need the information stored in the PE. We only invalidate the PE when it doesn't have associated EEH devices and valid child PEs. However, the code used to check that is wrong. The patch fixes that. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent bb46188 commit e716e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/platforms/pseries/eeh_pe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ int eeh_rmv_from_parent_pe(struct eeh_dev *edev, int purge_pe)
449449
if (list_empty(&pe->edevs)) {
450450
cnt = 0;
451451
list_for_each_entry(child, &pe->child_list, child) {
452-
if (!(pe->type & EEH_PE_INVALID)) {
452+
if (!(child->type & EEH_PE_INVALID)) {
453453
cnt++;
454454
break;
455455
}

0 commit comments

Comments
 (0)