From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3sZswY3PRmzDsYT for ; Fri, 16 Sep 2016 08:07:41 +1000 (AEST) In-Reply-To: <1473143641-25413-1-git-send-email-gwshan@linux.vnet.ibm.com> To: Gavin Shan , linuxppc-dev@ozlabs.org From: Michael Ellerman Cc: Gavin Shan Subject: Re: powerpc/powernv: Detach from PE on releasing PCI device Message-Id: <3sZswY223Dz9sD5@ozlabs.org> Date: Fri, 16 Sep 2016 08:07:41 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2016-06-09 at 06:34:01 UTC, Gavin Shan wrote: > The PCI hotplug can be part of EEH error recovery. The @pdn and > the device's PE number aren't removed and added afterwords. The > PE number in @pdn should be set to an invalid one. Otherwise, the > PE's device count is decreased on removing devices while failing > to be increased on adding devices. It leads to unbalanced PE's > device count and make normal PCI hotplug path broken. > > Fixes: c5f7700bbd2e ("powerpc/powernv: Dynamically release PE") > Signed-off-by: Gavin Shan Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/29bf282dec94f6015a675c0076 cheers