From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 09 Dec 2011 22:25:20 +0000 Subject: Re: PCIe Hotplugging not working Message-Id: <20111209222520.GA24786@kroah.com> List-Id: References: <20111130154022.GA1411@srcf.ucam.org> <20111130182423.GA4831@srcf.ucam.org> <20111209124524.GA3488@srcf.ucam.org> <20111209180708.GA10768@kroah.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 01:17:53PM -0800, Anand Kanaginhal wrote: > > > > Date: Fri, 9 Dec 2011 10:07:08 -0800 > > From: greg@kroah.com > > To: anand_dk@hotmail.com > > CC: mjg59@srcf.ucam.org; bhelgaas@google.com; linux-pci@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-hotplug@vger.kernel.org > > Subject: Re: PCIe Hotplugging not working > > > > On Fri, Dec 09, 2011 at 09:19:39AM -0800, Anand Kanaginhal wrote: > > > 1. With the above setup, If I hotplug card c1 and/or c2, will my driver > probe > > > get invoked. > > > > Stop right here. Please get your pci hotplug controller driver working > > first, for your platform. That seems to be the problem. After that, > > the rest of your questions should just resolve themselves. > Thank you Greg for your assistance, perhaps it would be little more helpful, if > you could tell me the basis on which you drew the conclusion. I am no kernel > expert :( As your driver's callbacks aren't being called, that's probably why this isn't working. 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. 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. 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]:40476 "EHLO out2.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750863Ab1LIWZi (ORCPT ); Fri, 9 Dec 2011 17:25:38 -0500 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id DCFC321358 for ; Fri, 9 Dec 2011 17:25:37 -0500 (EST) Date: Fri, 9 Dec 2011 14:25:20 -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: <20111209222520.GA24786@kroah.com> References: <20111130154022.GA1411@srcf.ucam.org> <20111130182423.GA4831@srcf.ucam.org> <20111209124524.GA3488@srcf.ucam.org> <20111209180708.GA10768@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-pci-owner@vger.kernel.org List-ID: On Fri, Dec 09, 2011 at 01:17:53PM -0800, Anand Kanaginhal wrote: > > > > Date: Fri, 9 Dec 2011 10:07:08 -0800 > > From: greg@kroah.com > > To: anand_dk@hotmail.com > > CC: mjg59@srcf.ucam.org; bhelgaas@google.com; linux-pci@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-hotplug@vger.kernel.org > > Subject: Re: PCIe Hotplugging not working > > > > On Fri, Dec 09, 2011 at 09:19:39AM -0800, Anand Kanaginhal wrote: > > > 1. With the above setup, If I hotplug card c1 and/or c2, will my driver > probe > > > get invoked. > > > > Stop right here. Please get your pci hotplug controller driver working > > first, for your platform. That seems to be the problem. After that, > > the rest of your questions should just resolve themselves. > Thank you Greg for your assistance, perhaps it would be little more helpful, if > you could tell me the basis on which you drew the conclusion. I am no kernel > expert :( As your driver's callbacks aren't being called, that's probably why this isn't working. 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. 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. greg k-h