All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ludvig Petrossian <lyudvig.petrosyan@desy.de>
To: Anand Kanaginhal <anand_dk@hotmail.com>
Cc: 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: Tue, 29 Nov 2011 15:17:44 +0000	[thread overview]
Message-ID: <4ED4F798.9020106@desy.de> (raw)
In-Reply-To: <BAY163-W47DD39095DA3EB108AA3F2FBB30@phx.gbl>

On 29/11/11 12:56, Anand Kanaginhal wrote:
>
> I am trying to get PCIe endpoint hot - plugging working
>
> The Set up is such that there is one endpoint (our custom device) connected to PCI  switch PLX 8609 8 port 8 lane switch. 
> 1. I have my driver module compiled, copied into /lib/modules/`uname -r`/kernel/drivers/char/
> 2. I run depmod and "modules.pcimap" also got updated with my module. 
>
> However
>  if I unplug and plug in the endpoint, my driver .probe and .remove functions
>  are not being invoked. Is there something more to be done at the bus 
> level to get the driver to hot plug ?
>
> I have tried various kernel version, Currently I am trying on 2.6.38.12 (UBUNTU flavor).
> First is there anything missing ? Also Please give me some pointers and debug direction.
>
> Thanks
> Anand
>
>  		 	   		  --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Hi Anand

Did You enable the pcie hotplug driver (pciehp)
One can do it adding the next options to the /boot/grub/menu.lst
pciehp.pciehp_force=1 pciehp.pciehp_debug=1
(example of my menu.lst: kernel        /boot/vmlinuz-2.6.32-28-generic
root=UUID30631e1-99a3-46d3-bf52-f4ca23c6b6ef ro pciehp.pciehp_force=1
pciehp.pciehp_debug=1 acpi=off noapic console=tty0 console=ttyS0 quiet )

so You can see the pciehp outputs in /var/log/kern.log

regards

Ludwig

WARNING: multiple messages have this Message-ID (diff)
From: Ludvig Petrossian <lyudvig.petrosyan@desy.de>
To: Anand Kanaginhal <anand_dk@hotmail.com>
Cc: 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: Tue, 29 Nov 2011 16:17:44 +0100	[thread overview]
Message-ID: <4ED4F798.9020106@desy.de> (raw)
In-Reply-To: <BAY163-W47DD39095DA3EB108AA3F2FBB30@phx.gbl>

On 29/11/11 12:56, Anand Kanaginhal wrote:
>
> I am trying to get PCIe endpoint hot - plugging working
>
> The Set up is such that there is one endpoint (our custom device) connected to PCI  switch PLX 8609 8 port 8 lane switch. 
> 1. I have my driver module compiled, copied into /lib/modules/`uname -r`/kernel/drivers/char/
> 2. I run depmod and "modules.pcimap" also got updated with my module. 
>
> However
>  if I unplug and plug in the endpoint, my driver .probe and .remove functions
>  are not being invoked. Is there something more to be done at the bus 
> level to get the driver to hot plug ?
>
> I have tried various kernel version, Currently I am trying on 2.6.38.12 (UBUNTU flavor).
> First is there anything missing ? Also Please give me some pointers and debug direction.
>
> Thanks
> Anand
>
>  		 	   		  --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Hi Anand

Did You enable the pcie hotplug driver (pciehp)
One can do it adding the next options to the /boot/grub/menu.lst
pciehp.pciehp_force=1 pciehp.pciehp_debug=1
(example of my menu.lst: kernel        /boot/vmlinuz-2.6.32-28-generic
root=UUID=330631e1-99a3-46d3-bf52-f4ca23c6b6ef ro pciehp.pciehp_force=1
pciehp.pciehp_debug=1 acpi=off noapic console=tty0 console=ttyS0 quiet )

so You can see the pciehp outputs in /var/log/kern.log

regards

Ludwig

  parent reply	other threads:[~2011-11-29 15:17 UTC|newest]

Thread overview: 37+ 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 11:56   ` Anand Kanaginhal
2011-11-29 14:22   ` Greg KH
2011-11-29 14:22     ` Greg KH
2011-11-29 17:50     ` Anand Kanaginhal
2011-11-29 17:50       ` Anand Kanaginhal
2011-11-29 22:55       ` Greg KH
2011-11-29 22:55         ` Greg KH
2011-11-30 12:00         ` Anand Kanaginhal
2011-11-29 15:17   ` Ludvig Petrossian [this message]
2011-11-29 15:17     ` Ludvig Petrossian
2011-11-30 15:40   ` Matthew Garrett
2011-11-30 17:18     ` Anand Kanaginhal
2011-11-30 17:18       ` Anand Kanaginhal
2011-11-30 18:24       ` Matthew Garrett
2011-12-07 17:23         ` Bjorn Helgaas
2011-12-07 17:23           ` Bjorn Helgaas
2011-12-09 12:41           ` Anand Kanaginhal
2011-12-09 12:41             ` Anand Kanaginhal
2011-12-09 12:45             ` Matthew Garrett
2011-12-09 12:45               ` Matthew Garrett
2011-12-09 15:03               ` Anand Kanaginhal
2011-12-09 15:03                 ` Anand Kanaginhal
2011-12-09 16:42                 ` Greg KH
2011-12-09 16:42                   ` Greg KH
2011-12-09 17:19               ` Anand Kanaginhal
2011-12-09 17:19                 ` Anand Kanaginhal
2011-12-09 18:07                 ` Greg KH
2011-12-09 18:07                   ` Greg KH
     [not found]                   ` <BAY163-W154A24444BB398F609767CFBB90@phx.gbl>
2011-12-09 22:25                     ` Greg KH
2011-12-09 22:25                       ` Greg KH
     [not found]                       ` <BAY163-W582FC4C5828B20E9487D3EFBB90@phx.gbl>
2011-12-09 23:24                         ` Anand Kanaginhal
2011-12-09 23:24                           ` Anand Kanaginhal
2011-12-09 23:45                           ` Greg KH
2011-12-09 23:45                             ` Greg KH
2011-12-10 19:36                       ` John Stoffel
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=4ED4F798.9020106@desy.de \
    --to=lyudvig.petrosyan@desy.de \
    --cc=anand_dk@hotmail.com \
    --cc=linux-hotplug@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.