]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Fix the state of root PE
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 13 Sep 2016 06:40:24 +0000 (16:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Sep 2016 01:40:09 +0000 (11:40 +1000)
commit291281f35b6ccac1426316ba47e82693eead5226
tree5f7591de275e9336d4bbaac7bfa204264b9d8f7b
parent40dcbb7c42a4668730303f80b502d6fd27ae8833
powerpc/powernv: Fix the state of root PE

The PE for root bus (root PE) can be removed because of PCI hot
remove in EEH recovery path for fenced PHB error. We need update
@phb->root_pe_populated accordingly so that the root PE can be
populated again in forthcoming PCI hot add path. Also, the PE
shouldn't be destroyed as it's global and reserved resource.

Fixes: a06d0cdbd6f4 ("powerpc/powernv: Dynamically release PE")
Reported-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c