From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anand Kanaginhal Date: Fri, 09 Dec 2011 15:03:48 +0000 Subject: RE: PCIe Hotplugging not working Message-Id: List-Id: References: ,,<20111130154022.GA1411@srcf.ucam.org>,,<20111130182423.GA4831@srcf.ucam.org>,,,<20111209124524.GA3488@srcf.ucam.org> In-Reply-To: <20111209124524.GA3488@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: mjg59@srcf.ucam.org Cc: bhelgaas@google.com, greg@kroah.com, Linux PCI mailing , linux kernel mailing , linux hotplug mailing $ ls /sys/class/pci_bus 0000:00=A0 0000:02=A0 0000:04=A0 0000:06=A0 0000:08 0000:01=A0 0000:03=A0 0000:05=A0 0000:07=A0 0000:09 The card doesn't show up in lspci after hotplugging ( or doesnt disappear w= hen pulled out),=20 However the card shows up if the card is plugged in while booting up the PC= .=20 Below is the lspci output when the cards are connected at booting. $ lspci=20 ... 02:00.0 PCI bridge: PLX Technology, Inc. PEX 8533 32-lane, 6-port PCI Expre= ss Switch (rev aa) 03:01.0 PCI bridge: PLX Technology, Inc. PEX 8533 32-lane, 6-port PCI Expre= ss Switch (rev aa) 03:08.0 PCI bridge: PLX Technology, Inc. PEX 8533 32-lane, 6-port PCI Expre= ss Switch (rev aa) 03:09.0 PCI bridge: PLX Technology, Inc. PEX 8533 32-lane, 6-port PCI Expre= ss Switch (rev aa) anand card c1>>>>>>>>04:00.0 Memory controller: Device 174a:0701=A0=20 anand card c2>>>>>>>>05:00.0 Ethernet controller: Agere Systems ET-131x PCI= -E Ethernet Controller (rev 02)=20 .... $=20 Also wanted to know if my assumptions below are correct ? ---------------------------------------------------------------------------= ----- Please correct me if any of my understanding below is incorrect: 1. With the above setup, If I hotplug card c1 and/or c2, will my driver pro= be=20 get invoked.=20 2. I dont have to add any rules for in /etc/udev/rules.d/*.rules for my dri= ver =A0to work.=20 3. The standard hotplug controller driver would get the hotplug event from = the =A0switch and handle it.=20 4. The standard hotplug controller driver will be responsible for invoking = .probe and .remove functions of my driver. --- Thanks Anand > Date: Fri, 9 Dec 2011 12:45:25 +0000 > From: mjg59@srcf.ucam.org > To: anand_dk@hotmail.com > CC: bhelgaas@google.com; greg@kroah.com; linux-pci@vger.kernel.org; linux= -kernel@vger.kernel.org; linux-hotplug@vger.kernel.org > Subject: Re: PCIe Hotplugging not working >=20 > Do you have anything in /sys/class/pci/slots ? Does your card show up in = > lspci when you hotplug it? >=20 > --=20 > Matthew Garrett | mjg59@srcf.ucam.org > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/