[OpenIndiana-discuss] How to find which device is connected to specific pci slot?

Predrag Zečević - Technical Support Analyst predrag.zecevic at 2e-systems.com
Thu Dec 7 08:40:59 UTC 2017



On 12/07/17 08:11, Carsten Grzemba wrote:
> 
> <signaturebeforequotedtext></signaturebeforequotedtext>
> On 06.12.17 16:56, Predrag Zečević - Technical Support Analyst  <predrag.zecevic at 2e-systems.com> wrote:
>>
>> Hi all,
>>
>> I had few crashes of OI /hipster in last couple days. Today, I have
>> tried to identify cause:
>>
>> $ mdb -k 3
>> Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc apix
>> scsi_vhci zfs sata sd ip hook neti sockfs arp usba xhci uhci mm fctl
>> stmf stmf_sbd lofs random idm nfs smbsrv ipc sppp cpc crypto fcip fcp
>> ufs logindmux nsmb ptm ]
>>   > ::status
>> debugging crash dump vmcore.3 (64-bit) from solarix
>> operating system: 5.11 illumos-c5bab7026b (i86pc)
>> image uuid: ae4e3b13-3532-6a73-880d-c486e7bc264f
>> panic message: pcieb-3: PCI(-X) Express Fatal Error. (0x43)
>> dump content: kernel pages only
>>
>> OK, device on PCI Express is causing it.
>>
>> But, what is connected there?
>>
>> $ pfexec cfgadm pci
>> Ap_Id Type Receptacle Occupant
>> Condition
>> pci: No matching library found
>>
>> Another option is to use prtconf/prtconf -v - but I do not know how to
>> match its output with "pcieb-3" ID
>>
>> Tried also (but also no idea how to match output):
>> $ scanpci | grep "PCI Express"
>>   Intel Corporation Sunrise Point-H PCI Express Root Port #5
>>   Intel Corporation Sunrise Point-H PCI Express Root Port #9
>>   Intel Corporation Sunrise Point-H PCI Express Root Port #12
>>   Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit
>> Ethernet Controller
>>
>> This shows info which I already got from crash file (or I could use
>> dmesg to get that info):
>> $ dmesg | grep -i pci
>> [2017-12-06 13:32:12] solarix genunix: [ID 936769 kern.info] ecpp0 is
>> /pci at 0,0/isa at 1f/lp at 1,378
>> [2017-12-06 13:32:12] solarix genunix: [ID 936769 kern.info] asy0 is
>> /pci at 0,0/isa at 1f/asy at 1,3f8
>> [2017-12-06 16:11:40] solarix savecore: [ID 570001 auth.error] reboot
>> after panic: pcieb-3: PCI(-X) Express Fatal Error. (0x43)
>>
>> Also, sysdef command is useful (verbose), but I also did not manage to
>> match.
>>
>> Any ideas?
>> <signatureafterquotedtext></signatureafterquotedtext>
>>
> The most complete view you get with:
> 
> # prtconf -Dv
> 
> in the best case is pcieb-3: pcieb instance 3
Hi Carsten,

indeed, tried and (here just part of output):
---<snip>---
         pci8086,a11b, instance #3 (driver name: pcieb)
             System software properties:
                 name='ddi-forceattach' type=int items=1
                     value=00000001
             Driver properties:
...
                 name='acpi-namespace' type=string items=1
                     value='\_SB_.PCI0.RP12'
...
                 name='compatible' type=string items=8
                     value='pciex8086,a11b.f1' + 'pciex8086,a11b' + 
'pciexclass,060400' + 'pciexclass,0604' + 'pci8086,a11b.f1' + 
'pci8086,a11b' + 'pciclass,060400' + 'pciclass,0604'
                 name='model' type=string items=1
                     value='PCI-PCI bridge'
...
                 name='vendor-name' type=string items=1
                     value='Intel Corporation'
                 name='device-name' type=string items=1
                     value='Sunrise Point-H PCI Express Root Port #12'
             Device Minor Nodes:
                 dev=(174,1023)
                     dev_path=/pci at 0,0/pci8086,a11b at 1d,3:devctl
                         spectype=chr type=minor
---</snip>---

$ grep pci8086,a11b /etc/path_to_inst
"/pci at 0,0/pci8086,a11b at 1d,3" 3 "pcieb"
"/pci at 0,0/pci8086,a11b at 1d,3/pci10ec,8168 at 0" 0 "rge"

So, it is network card, which brings next question - but first some 
explanation:

* I have assembled PC and installed OI /hipster, but at that time 
illumos did not provided driver for onboard "Intel Corporation Ethernet 
Connection (2) I219-V" Ethernet card
* That has resulted in obtaining a PCIe network card (Realtek 
Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet 
Controller) and used it since driver was available for it (rge0)
* Meantime, driver for Intel Ethernet card was added, so I switched to 
that GB ethernet adapter (e1000g0). Then rge0 one started to crash 
system whilst it was idle [LAN cable was moved to e1000g0] (???)
* I have solved crashing problem by activating rge0 card again (and I 
know I can remove it from PC)

So, why would PCIe Ethernet card (rge0) trigger system crash when is not 
in use?

With best regards.
Predrag Zečević
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
> 

-- 
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

tel: +49 - 6196 - 95058 - 15
mob: +49 - 174 - 3109288
fax: +49 - 6196 - 95058 - 94
e-mail: predrag.zecevic at 2e-systems.com

headquarter: 2e Systems GmbH, Koenigsteiner Str. 87, 65812 Bad Soden am 
Taunus, Germany
registration: Amtsgericht Koenigstein (Germany), HRB 7303
managing director: Phil Douglas

http://www.2e-systems.com/ - Making your business fly!



More information about the openindiana-discuss mailing list