Re: Q: state of pci express hotplug

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

 



* Krishna Kothapalli <krishna_sunitha@xxxxxxxxxxx>:
> 
> > o The pciehp's debug output. We can get this as follows.
>   # /sbin/modprobe pciehp pciehp_debug
>   # dmesg | grep pciehp 
> pciehp 0000:00:09.0:pcie02: Hotplug Controller:
> pciehp 0000:00:09.0:pcie02:   Seg/Bus/Dev/Func/IRQ : 0000:00:09.0 IRQ 2295
> pciehp 0000:00:09.0:pcie02:   Vendor ID            : 0x8086
> pciehp 0000:00:09.0:pcie02:   Device ID            : 0x3410
> pciehp 0000:00:09.0:pcie02:   Subsystem ID         : 0x0000
> pciehp 0000:00:09.0:pcie02:   Subsystem Vendor ID  : 0x0000
> pciehp 0000:00:09.0:pcie02:   PCIe Cap offset      : 0x90
> pciehp 0000:00:09.0:pcie02: Slot Capabilities      : 0x0302005f
> pciehp 0000:00:09.0:pcie02:   Physical Slot Number : 96

Hm, this is merely an observation, but the slot number here seems
wacky compared to the one that acpiphp reports later below.

Did we ever get a dmidecode from this machine?

Also, once you insert the card, what happens if you:

	# echo 1 > /sys/bus/pci/slots/96/power

Does that do anything?

> [root@localhost test]#  /sbin/modprobe acpiphp debug
> [root@localhost test]# dmesg | grep acpiphp
> acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
> acpiphp_glue: found PCI-to-PCI bridge at PCI 0000:00:09.0
> acpiphp_glue: found ACPI PCI Hotplug slot 2 at PCI 0000:09:00
> acpiphp: Slot [2] registered

Here we see that ACPI thinks it's slot 2, not 96.

> acpiphp_glue: Bus 0000:09 has 1 slot
> acpiphp_glue: Total 1 slots
> [root@localhost test]# 
> [root@localhost test]# ls -lt /sys/bus/pci/slots
> total 0
> drwxr-xr-x 2 root root 0 2009-02-04 09:59 2
> ---  Insert PCI express card in the slot
> [root@localhost test]# dmesg | grep acpiphp
> [root@localhost test]# lspci | wc
>     105    1284    9203
> [root@localhost test]# ls -lt /sys/bus/pci/slots/2/
> total 0
> -r--r--r-- 1 root root 4096 2009-02-04 10:01 adapter
> -r--r--r-- 1 root root 4096 2009-02-04 10:01 address
> -rw-r--r-- 1 root root 4096 2009-02-04 10:01 attention
> -r--r--r-- 1 root root 4096 2009-02-04 10:01 latch
> -rw-r--r-- 1 root root 4096 2009-02-04 10:01 power

Can you echo a 1 into the power file above?

> [root@localhost test]# 
> [root@localhost test]# /sbin/rmmod acpiphp
> [root@localhost test]# dmesg | grep acpiphp
> acpiphp: Slot [2] unregistered
> acpiphp: release_slot - physical_slot = 2
> [root@localhost test]# 

Thanks.

/ac

--
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