Re: Cabled PCIE device hotplug/hot-removal

Greg KH <[email protected]>
Newsgroups gmane.linux.hotplug.devel,gmane.linux.kernel.pci
Message-ID <[email protected]>
On Thu, Jul 26, 2012 at 08:03:09PM +0300, Shlomo Pongratz wrote:
> Hi,
> 
> I have a  PCIe device connected with cables to a host (kernel 3.5.0-rc7+).
> What are the handler I need to add to a driver in order to catch cable
> pull-out / push-in?

You shouldn't need anything special, aren't you already getting probe
and disconnect callbacks when the device is discovered and removed?

> The pcisig presentation
> "http://www.pcisig.com/developers/main/training_materials/get_document?doc_id=f4ca40ec1721aa7fadd05e2903b0172c36656294"
> talks about PERST# detection for cabled PCIe hotplug.
> 
> Does the kernel detect it?
> 
> None of the pci_driver or pci_error_handlers callbacks were called
> when using powered down/up the device (electrically).

Do you have the pciehp driver loaded properly when this happens?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.