Re: [PATCH v2 2/4] powerpc/powernv: Fix stale PE primary bus

2016-02-15 Thread Gavin Shan
On Mon, Feb 15, 2016 at 09:38:35PM +1100, Michael Ellerman wrote: >On Fri, 2016-02-12 at 17:09 +1100, Gavin Shan wrote: > >> On Fri, Feb 12, 2016 at 05:02:46PM +1100, Andrew Donnellan wrote: > >> > On 09/02/16 15:50, Gavin Shan wrote: > >> > > When PCI bus is unplugged during full hotplug for EEH r

Re: [PATCH v2 2/4] powerpc/powernv: Fix stale PE primary bus

2016-02-15 Thread Michael Ellerman
On Fri, 2016-02-12 at 17:09 +1100, Gavin Shan wrote: > On Fri, Feb 12, 2016 at 05:02:46PM +1100, Andrew Donnellan wrote: > > On 09/02/16 15:50, Gavin Shan wrote: > > > When PCI bus is unplugged during full hotplug for EEH recovery, > > > the platform PE instance (struct pnv_ioda_pe) isn't releas

Re: [PATCH v2 2/4] powerpc/powernv: Fix stale PE primary bus

2016-02-11 Thread Gavin Shan
On Fri, Feb 12, 2016 at 05:02:46PM +1100, Andrew Donnellan wrote: >On 09/02/16 15:50, Gavin Shan wrote: >>When PCI bus is unplugged during full hotplug for EEH recovery, >>the platform PE instance (struct pnv_ioda_pe) isn't released and >>it dereferences the stale PCI bus that has been released. It

Re: [PATCH v2 2/4] powerpc/powernv: Fix stale PE primary bus

2016-02-11 Thread Andrew Donnellan
On 09/02/16 15:50, Gavin Shan wrote: When PCI bus is unplugged during full hotplug for EEH recovery, the platform PE instance (struct pnv_ioda_pe) isn't released and it dereferences the stale PCI bus that has been released. It leads to kernel crash when referring to the stale PCI bus. This fixes

[PATCH v2 2/4] powerpc/powernv: Fix stale PE primary bus

2016-02-08 Thread Gavin Shan
When PCI bus is unplugged during full hotplug for EEH recovery, the platform PE instance (struct pnv_ioda_pe) isn't released and it dereferences the stale PCI bus that has been released. It leads to kernel crash when referring to the stale PCI bus. This fixes the issue by correcting the PE's prima