RE: Q: state of pci express hotplug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux