From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 09 Dec 2011 23:45:22 +0000 Subject: Re: PCIe Hotplugging not working Message-Id: <20111209234522.GA6413@kroah.com> List-Id: References: <20111130182423.GA4831@srcf.ucam.org> <20111209124524.GA3488@srcf.ucam.org> <20111209180708.GA10768@kroah.com> <20111209222520.GA24786@kroah.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Anand Kanaginhal Cc: mjg59@srcf.ucam.org, bhelgaas@google.com, Linux PCI mailing , linux kernel mailing , linux hotplug mailing On Fri, Dec 09, 2011 at 03:24:00PM -0800, Anand Kanaginhal wrote: > > Please make sure your pci hotplug driver is working first. Try turning > > on and off the power to the card slot (in the sysfs directory for the > > slot) and see if that's working. > When I do this, my driver probe and remove gets invoked.=A0 Then part of the pci hotplug controller driver is working, good. > > You also have failed to say exactly what pci hotplug controller you have > > in your system, what is it? You have to have one, and the driver loaded > > for it, for any of this to work at all. >=20 > We are using plx 8533 in our system, What exactly is that? > it hasnt provided controller driver for linux, however the support > team insists that any hotplug controller driver which is compliant to > PCI SIG, should work fine.My assumption was shpc in linux would work > just fine.=A0 The PCI Hotplug SIG said that ACPI would be the way forward for "PCI" hotplug capabilities. For PCI Express, the pciehp driver should work for you, as that follows the spec for PCI Express devices. So it depends on your hardware, what pci hotplug driver do you have loaded, and what does the kernel log messages say when you load it, and then what does it say when you remove your device? Remember, PCI devices are not supposed to be hot-removed, you have to tell the OS ahead of time it is going to go away. PCI Express is a bit different, depending on the type of device (ExpressCard is allowed to be removed without notifying the OS ahead of time, some other PCI Express devices are not, see the spec for details.) greg k-h From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2.smtp.messagingengine.com ([66.111.4.26]:33998 "EHLO out2.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721Ab1LIXpx (ORCPT ); Fri, 9 Dec 2011 18:45:53 -0500 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 1313621357 for ; Fri, 9 Dec 2011 18:45:53 -0500 (EST) Date: Fri, 9 Dec 2011 15:45:22 -0800 From: Greg KH To: Anand Kanaginhal Cc: mjg59@srcf.ucam.org, bhelgaas@google.com, Linux PCI mailing , linux kernel mailing , linux hotplug mailing Subject: Re: PCIe Hotplugging not working Message-ID: <20111209234522.GA6413@kroah.com> References: <20111130182423.GA4831@srcf.ucam.org> <20111209124524.GA3488@srcf.ucam.org> <20111209180708.GA10768@kroah.com> <20111209222520.GA24786@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: Sender: linux-pci-owner@vger.kernel.org List-ID: On Fri, Dec 09, 2011 at 03:24:00PM -0800, Anand Kanaginhal wrote: > > Please make sure your pci hotplug driver is working first. Try turning > > on and off the power to the card slot (in the sysfs directory for the > > slot) and see if that's working. > When I do this, my driver probe and remove gets invoked.  Then part of the pci hotplug controller driver is working, good. > > You also have failed to say exactly what pci hotplug controller you have > > in your system, what is it? You have to have one, and the driver loaded > > for it, for any of this to work at all. > > We are using plx 8533 in our system, What exactly is that? > it hasnt provided controller driver for linux, however the support > team insists that any hotplug controller driver which is compliant to > PCI SIG, should work fine.My assumption was shpc in linux would work > just fine.  The PCI Hotplug SIG said that ACPI would be the way forward for "PCI" hotplug capabilities. For PCI Express, the pciehp driver should work for you, as that follows the spec for PCI Express devices. So it depends on your hardware, what pci hotplug driver do you have loaded, and what does the kernel log messages say when you load it, and then what does it say when you remove your device? Remember, PCI devices are not supposed to be hot-removed, you have to tell the OS ahead of time it is going to go away. PCI Express is a bit different, depending on the type of device (ExpressCard is allowed to be removed without notifying the OS ahead of time, some other PCI Express devices are not, see the spec for details.) greg k-h