linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Anand Kanaginhal <anand_dk@hotmail.com>
Cc: mjg59@srcf.ucam.org, bhelgaas@google.com,
	Linux PCI mailing <linux-pci@vger.kernel.org>,
	linux kernel mailing <linux-kernel@vger.kernel.org>,
	linux hotplug mailing <linux-hotplug@vger.kernel.org>
Subject: Re: PCIe Hotplugging not working
Date: Fri, 09 Dec 2011 23:45:22 +0000	[thread overview]
Message-ID: <20111209234522.GA6413@kroah.com> (raw)
In-Reply-To: <BAY163-W61A8DF92159F5C3E26103FBB90@phx.gbl>

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

  reply	other threads:[~2011-12-09 23:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BAY163-W52E309F419E3588206D889FBB30@phx.gbl>
2011-11-29 11:56 ` PCIe Hotplugging not working Anand Kanaginhal
2011-11-29 14:22   ` Greg KH
2011-11-29 17:50     ` Anand Kanaginhal
2011-11-29 22:55       ` Greg KH
2011-11-29 15:17   ` Ludvig Petrossian
2011-11-30 15:40   ` Matthew Garrett
2011-11-30 17:18     ` Anand Kanaginhal
2011-11-30 18:24       ` Matthew Garrett
2011-12-07 17:23         ` Bjorn Helgaas
2011-12-09 12:41           ` Anand Kanaginhal
2011-12-09 12:45             ` Matthew Garrett
2011-12-09 15:03               ` Anand Kanaginhal
2011-12-09 16:42                 ` Greg KH
2011-12-09 17:19               ` Anand Kanaginhal
2011-12-09 18:07                 ` Greg KH
     [not found]                   ` <BAY163-W154A24444BB398F609767CFBB90@phx.gbl>
2011-12-09 22:25                     ` Greg KH
     [not found]                       ` <BAY163-W582FC4C5828B20E9487D3EFBB90@phx.gbl>
2011-12-09 23:24                         ` Anand Kanaginhal
2011-12-09 23:45                           ` Greg KH [this message]
2011-12-10 19:36                       ` John Stoffel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111209234522.GA6413@kroah.com \
    --to=greg@kroah.com \
    --cc=anand_dk@hotmail.com \
    --cc=bhelgaas@google.com \
    --cc=linux-hotplug@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).