mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krishna Kothapalli <krishna_sunitha@hotmail.com>
To: <kaneshige.kenji@jp.fujitsu.com>
Cc: <ebiederm@xmission.com>, <linux-pci@vger.kernel.org>,
	<jbarnes@virtuousgeek.org>, <achiang@hp.com>, <djwong@us.ibm.com>,
	<xyzzy@speakeasy.org>, <linux-kernel@vger.kernel.org>
Subject: RE: Q: state of pci express hotplug
Date: Tue, 3 Feb 2009 21:32:43 -0500	[thread overview]
Message-ID: <BAY111-W9013DA1F63973F9E7F8DF88C30@phx.gbl> (raw)
In-Reply-To: <BAY111-W3692AA5F9F7896AA447A1F88C20@phx.gbl>


> Kenji Kaneshige wrote:
> (1) Build all your hotplug drivers as kernel modules.
> (2) Modprobe hotplug drivers one by one, and check which drivers add
> directories under /sys/bus/pci/slots. Before trying the next driver,
> please rmmod the previous driver, because there are hotplug slots
> that can be managed by the several drivers. Note that you don't need
> to try fakephp this time.
>
 
Thanks much for the exact steps. Here are the results (with 2.6.25 and 2.6.28.3 ). Pls let me know if you want me to run them on a different branch or other steps.
 
with 2.6.25-14
-------------------

Built the kernel with these options:-
 
CONFIG_HOTPLUG_PCI=y
CONFIG_HOTPLUG_PCI_FAKE=m
CONFIG_HOTPLUG_PCI_ACPI=m
CONFIG_HOTPLUG_PCI_ACPI_IBM=m
# CONFIG_HOTPLUG_PCI_CPCI is not set
CONFIG_HOTPLUG_PCI_SHPC=m
 
# uname -a
Linux localhost.localdomain 2.6.25-14.fc9.x86_64.kkhp #4 SMP Tue Feb 3 11:12:07 PST 2009 x86_64 x86_64 x86_64 GNU/Linux
 
 
[root@localhost linux-2.6.25.x86_64]#ls -lt /sys/bus/pci/slots
total 0
[root@localhost linux-2.6.25.x86_64]# /sbin/modprobe acpiphp
[root@localhost linux-2.6.25.x86_64]# ls -lt /sys/bus/pci/slots
total 0
drwxr-xr-x 2 root root 0 2009-02-03 11:32 2
[root@localhost linux-2.6.25.x86_64]# /sbin/rmmod acpiphp
[root@localhost linux-2.6.25.x86_64]# ls -lt /sys/bus/pci/slots
total 0
[root@localhost linux-2.6.25.x86_64]# /sbin/modprobe pciehp
[root@localhost linux-2.6.25.x86_64]# ls -lt /sys/bus/pci/slots
total 0
drwxr-xr-x 2 root root 0 2009-02-03 11:33 0009_0096
[root@localhost linux-2.6.25.x86_64]# /sbin/rmmod pciehp
[root@localhost linux-2.6.25.x86_64]# /sbin/modprobe shpchp
[root@localhost linux-2.6.25.x86_64]# ls -lt /sys/bus/pci/slots
total 0

with 2.6.28.3
---------------

build with options
CONFIG_HOTPLUG_PCI=y
CONFIG_HOTPLUG_PCI_FAKE=m
CONFIG_HOTPLUG_PCI_ACPI=m
CONFIG_HOTPLUG_PCI_ACPI_IBM=m
# CONFIG_HOTPLUG_PCI_CPCI is not set
CONFIG_HOTPLUG_PCI_SHPC=m


# uname -a
Linux localhost.localdomain 2.6.28.3 #1 SMP Tue Feb 3 16:51:23 PST 2009 x86_64 x86_64 x86_64 GNU/Linux


#ls -lt /sys/bus/pci/slots
total 0
# /sbin/modprobe acpiphp
# ls -lt /sys/bus/pci/slots
total 0
drwxr-xr-x 2 root root 0 2009-02-03 18:15 2

## /var/log/messages contains following messages
Feb  3 18:15:06 localhost kernel: acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
Feb  3 18:15:06 localhost kernel: acpiphp: Slot [2] registered

# /sbin/rmmod acpiphp
# ls -lt /sys/bus/pci/slots
total 0
# /sbin/modprobe pciehp
# ls -lt /sys/bus/pci/slots
total 0
drwxr-xr-x 2 root root 0 2009-02-03 18:19 96

/var/log/messages:-
Feb  3 18:19:35 localhost kernel: pciehp 0000:00:09.0:pcie02: Link Active Reporting supported
Feb  3 18:19:36 localhost kernel: pciehp 0000:00:09.0:pcie02: Command not completed in 1000 msec
Feb  3 18:19:36 localhost kernel: pciehp 0000:00:09.0:pcie02: HPC vendor_id 8086 device_id 3410 ss_vid 0 ss_did 0
Feb  3 18:19:37 localhost kernel: pciehp 0000:00:09.0:pcie02: Command not completed in 1000 msec
Feb  3 18:19:37 localhost kernel: pciehp 0000:00:09.0:pcie02: Registering domain:bus:dev=0000:09:00 hp_slot=0 sun=60 slot_device_offset=0
Feb  3 18:19:37 localhost kernel: pciehp 0000:00:09.0:pcie02: get_power_status: physical_slot = 96
Feb  3 18:19:37 localhost kernel: pciehp 0000:00:09.0:pcie02: hpc_get_power_status: SLOTCTRL a8 value read 7bf
Feb  3 18:19:37 localhost kernel: pciehp 0000:00:09.0:pcie02: get_attention_status: physical_slot = 96
Feb  3 18:19:37 localhost kernel: pciehp 0000:00:09.0:pcie02: hpc_get_attention_status: SLOTCTRL a8, value read 7bf
Feb  3 18:19:37 localhost kernel: pciehp 0000:00:09.0:pcie02: get_latch_status: physical_slot = 96
Feb  3 18:19:37 localhost kernel: pciehp 0000:00:09.0:pcie02: get_adapter_status: physical_slot = 96
Feb  3 18:19:37 localhost kernel: pciehp: PCI Express Hot Plug Controller Driver version: 0.4

# /sbin/rmmod pciehp
# /sbin/modprobe shpchp
# ls -lt /sys/bus/pci/slots
total 0
/var/log/messages:-
Feb  3 18:21:05 localhost kernel: shpchp: Standard Hot Plug PCI Controller Driver version: 0.4

# /sbin/rmmod shpchp
# 


[root@localhost linux-2.6.25.x86_64]# /sbin/rmmod shpchp
[root@localhost linux-2.6.25.x86_64]# 
 
 

Thanks,
Krishna
 
_________________________________________________________________
Windows Live™ Hotmail®…more than just e-mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_012009

  reply	other threads:[~2009-02-04  2:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-31  7:01 Eric W. Biederman
2009-01-31 18:13 ` Rafael J. Wysocki
2009-02-02  2:19 ` Kenji Kaneshige
2009-02-02 17:15   ` Krishna Kothapalli
2009-02-03  0:51     ` Kenji Kaneshige
2009-02-03 20:48       ` Krishna Kothapalli
2009-02-04  2:32         ` Krishna Kothapalli [this message]
2009-02-04  5:51           ` Kenji Kaneshige
2009-02-04 18:17             ` Krishna Kothapalli
2009-02-04 19:40               ` Mark Lord
2009-02-04 23:49               ` Alex Chiang
2009-02-05  0:02               ` Kenji Kaneshige
2009-02-05  1:53                 ` Krishna Kothapalli
2009-02-05  6:42                   ` Kenji Kaneshige
2009-02-06 20:37                     ` Krishna Kothapalli
2009-02-02 17:01 ` Alex Chiang

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=BAY111-W9013DA1F63973F9E7F8DF88C30@phx.gbl \
    --to=krishna_sunitha@hotmail.com \
    --cc=achiang@hp.com \
    --cc=djwong@us.ibm.com \
    --cc=ebiederm@xmission.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=kaneshige.kenji@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=xyzzy@speakeasy.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

all inboxes | Powered by JetHome®