[TriLUG] Associate physical PCI slot with lspci?
Ron Kelley
rkelleyrtp at gmail.com
Wed Oct 5 07:41:45 EDT 2011
Thanks for all the replies, and sorry it has taken so long to get back with a follow-up.
I tried the suggestions below and still can't get what I want. The "pci_slot" module is not available in the CentOS 5.7 release (or at least, not that I can find). Per the lspci man page, the Verbose Output format ("-vmm") option should produce some output with the Physical Slot identifier, but that is not available on my servers. Example:
------------------------------------------------------------------------------------------------------------
[root at server1 ~]# lspci -vmm -s 00:600
Slot: 06:00.0
Class: Ethernet controller
Vendor: Intel Corporation
Device: 82599EB 10-Gigabit SFI/SFP+ Network Connection
SVendor: Intel Corporation
SDevice: Ethernet Server Adapter X520-2
Rev: 01
Slot: 06:00.1
Class: Ethernet controller
Vendor: Intel Corporation
Device: 82599EB 10-Gigabit SFI/SFP+ Network Connection
SVendor: Intel Corporation
SDevice: Ethernet Server Adapter X520-2
Rev: 01
------------------------------------------------------------------------------------------------------------
It turns out the physical card was having problems in the server (it *was* in the right slot). After replacing the card, I now see x8 support (notice the LnkSta line below):
------------------------------------------------------------------------------------------------------------
[root at server1 ~]# lspci -vv -s06:00
06:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01)
<snip>
Capabilities: [a0] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-
MaxPayload 256 bytes, MaxReadReq 512 bytes
DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-
LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s, Latency L0 unlimited, L1 <16us
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Range ABCD, TimeoutDis+
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -6dB
<snip>
Kernel driver in use: ixgbe
Kernel modules: ixgbe
------------------------------------------------------------------------------------------------------------
Thanks again to everyone who took time to reply.
-----------------------------
Ron Kelley
rkelleyrtp at gmail.com
On Oct 1, 2011, at 9:33 PM, Carl Crider wrote:
> Might be for naught, but ...
>
> cat /proc/pci
>
> look for chipset of the card / vendor name, etc.
>
>
>
> On Sat, Oct 1, 2011 at 9:01 PM, Matt Pusateri
> <mpusateri at wickedtrails.com> wrote:
>>
>> Does this help? http://forums.fedoraforum.org/archive/index.php/t-71016.html I haven't tried it, just ran across it...
>>
>>
>> On Sep 30, 2011, at 11:52 PM, Maxwell Spangler wrote:
>>
>>> On Thu, 2011-09-29 at 09:37 -0400, Ron Kelley wrote:
>>>> Greetings all,
>>>>
>>>> I am running CentOS 5.7 x64 and need a way to determine which cards have been inserted into which physical slots in a server. I have a server in the data center with a 10G NIC reporting 1x PCI-E negotiation, but I am sure it is in the correct x8 slot (per the MB manual). I tried using "lspci" to look for the physical slot number but did not find what I was looking for. Without driving to the DC, how can I determine exactly which slot the card is inserted?
>>>
>>> On your CentOS 5.7 system see if you have a module called pci_slot?
>>>
>>> If so, load it then check /sys/bus/pci/slots for any entries?
>>>
>>> Then check lspci -v and see if "Physical slot" shows up.
>>>
>>> I know what you want is technically possible because I use it at work
>>> all the time. Alex Chiang, while at HP in 2008, wrote some nice code to
>>> do all this and it works well.
>>>
>>> BUT what I don't know is how far it made it out of HP and into
>>> distributions and on what systems it works on. My HP Desktop with
>>> Fedora doesn't offer pci_slot or any of the functionality we all want.
>>>
>>> You might google him and email him directly with a query. He's working
>>> for Canonical now.
>>>
>>> --
>>> Maxwell Spangler
>>> ========================================================================
>>> Linux System Administration / Computing Services
>>> Photography / Graphics Design / Writing
>>> Boulder, Colorado
>>> http://www.maxwellspangler.com
>>>
>>>
>>> --
>>> This message was sent to: M. Pusateri <mpusateri at wickedtrails.com>
>>> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
>>> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
>>> Unsubscribe or edit options on the web : http://www.trilug.org/mailman/options/trilug/mpusateri%40wickedtrails.com
>>> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
>>
>> --
>> This message was sent to: Carl <c.crider at gmail.com>
>> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
>> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
>> Unsubscribe or edit options on the web : http://www.trilug.org/mailman/options/trilug/c.crider%40gmail.com
>> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
>>
> --
> This message was sent to: Ron Kelley <rkelleyrtp at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web : http://www.trilug.org/mailman/options/trilug/rkelleyrtp%40gmail.com
> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
More information about the TriLUG
mailing list