public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Chiang <achiang@hp.com>
To: Krishna Kothapalli <krishna_sunitha@hotmail.com>
Cc: kaneshige.kenji@jp.fujitsu.com, ebiederm@xmission.com,
	linux-pci@vger.kernel.org, jbarnes@virtuousgeek.org,
	djwong@us.ibm.com, xyzzy@speakeasy.org,
	linux-kernel@vger.kernel.org
Subject: Re: Q: state of pci express hotplug
Date: Wed, 4 Feb 2009 16:49:49 -0700	[thread overview]
Message-ID: <20090204234949.GC19517@ldl.fc.hp.com> (raw)
In-Reply-To: <BAY111-W205B70ED6B226F2F9D8E2088C30@phx.gbl>

* Krishna Kothapalli <krishna_sunitha@hotmail.com>:
> 
> > 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


  parent reply	other threads:[~2009-02-04 23:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-31  7:01 Q: state of pci express hotplug 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
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 [this message]
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=20090204234949.GC19517@ldl.fc.hp.com \
    --to=achiang@hp.com \
    --cc=djwong@us.ibm.com \
    --cc=ebiederm@xmission.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=kaneshige.kenji@jp.fujitsu.com \
    --cc=krishna_sunitha@hotmail.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