Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPALCI: PCI: built-in device not found: Network Mezz (loc: 10) #54

Closed
pridhiviraj opened this issue Dec 15, 2016 · 3 comments
Closed

OPALCI: PCI: built-in device not found: Network Mezz (loc: 10) #54

pridhiviraj opened this issue Dec 15, 2016 · 3 comments

Comments

@pridhiviraj
Copy link
Contributor

cat /sys/firmware/opal/msglog | grep -i skiboot
[ 46.119285813,5] SkiBoot e5477ad starting...

cat /sys/firmware/opal/msglog | grep -i ,3

[    5.309108639,3] PHB#0000: Base location code not found !
[    7.030317466,3] PHB#0001: Base location code not found !
[    8.231482927,3] PHB#0002: Base location code not found !
[   13.310374630,3] FLASH: No ROOTFS partition
[   17.069198739,3] PCI: built-in device not found: Network Mezz (loc: 10)

lspci
0000:00:00.0 PCI bridge: IBM Device 03dc
0000:01:00.0 Ethernet controller: Broadcom Limited NetXtreme II BCM57810 10 Gigabit Ethernet (rev 10)
0000:01:00.1 Ethernet controller: Broadcom Limited NetXtreme II BCM57810 10 Gigabit Ethernet (rev 10)
0001:00:00.0 PCI bridge: IBM Device 03dc
0001:01:00.0 PCI bridge: PLX Technology, Inc. PEX 8748 48-Lane, 12-Port PCI Express Gen 3 (8 GT/s) Switch, 27 x 27mm FCBGA (rev ca)
0001:02:01.0 PCI bridge: PLX Technology, Inc. PEX 8748 48-Lane, 12-Port PCI Express Gen 3 (8 GT/s) Switch, 27 x 27mm FCBGA (rev ca)
0001:02:08.0 PCI bridge: PLX Technology, Inc. PEX 8748 48-Lane, 12-Port PCI Express Gen 3 (8 GT/s) Switch, 27 x 27mm FCBGA (rev ca)
0001:02:09.0 PCI bridge: PLX Technology, Inc. PEX 8748 48-Lane, 12-Port PCI Express Gen 3 (8 GT/s) Switch, 27 x 27mm FCBGA (rev ca)
0001:02:0a.0 PCI bridge: PLX Technology, Inc. PEX 8748 48-Lane, 12-Port PCI Express Gen 3 (8 GT/s) Switch, 27 x 27mm FCBGA (rev ca)
0001:02:10.0 PCI bridge: PLX Technology, Inc. PEX 8748 48-Lane, 12-Port PCI Express Gen 3 (8 GT/s) Switch, 27 x 27mm FCBGA (rev ca)
0001:02:11.0 PCI bridge: PLX Technology, Inc. PEX 8748 48-Lane, 12-Port PCI Express Gen 3 (8 GT/s) Switch, 27 x 27mm FCBGA (rev ca)
0001:08:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9235 PCIe 2.0 x2 4-port SATA 6 Gb/s Controller (rev 11)
0001:09:00.0 USB controller: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller (rev 02)
0001:0a:00.0 PCI bridge: ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge (rev 03)
0001:0b:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30)
0001:0c:00.0 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
0001:0c:00.1 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
0001:0c:00.2 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
0001:0c:00.3 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
0002:00:00.0 PCI bridge: IBM Device 03dc
0002:01:00.0 RAID bus controller: Adaptec Series 8 12G SAS/PCIe 3 (rev 01)

PCI SLOT Table in Failed condition(Where the message seen):

[   17.069382375,5] PHB#0000:00:00.0 [ROOT] 1014 03dc R:00 C:060400 B:01..01 SLOT=Slot3 
[   17.091008644,5] PHB#0000:01:00.0 [EP  ] 14e4 168e R:10 C:020000 (      ethernet) LOC_CODE=Slot3
[   17.109598415,5] PHB#0000:01:00.1 [EP  ] 14e4 168e R:10 C:020000 (      ethernet) LOC_CODE=Slot3
[   17.142674143,5] PHB#0001:00:00.0 [ROOT] 1014 03dc R:00 C:060400 B:01..11 SLOT=Backplane PLX 
[   17.170699338,5] PHB#0001:01:00.0 [SWUP] 10b5 8748 R:ca C:060400 B:02..11 LOC_CODE=Backplane PLX
[   17.201709901,5] PHB#0001:02:01.0 [SWDN] 10b5 8748 R:ca C:060400 B:03..07 SLOT=Network Mezz 
[   17.225853589,5] PHB#0001:02:08.0 [SWDN] 10b5 8748 R:ca C:060400 B:08..08 SLOT=Storage Mezz 
[   17.258334281,5] PHB#0001:08:00.0 [LGCY] 1b4b 9235 R:11 C:010601 (          sata) LOC_CODE=Storage Mezz
[   17.309228487,5] PHB#0001:02:09.0 [SWDN] 10b5 8748 R:ca C:060400 B:09..09 SLOT=Backplane USB 
[   17.319427565,5] PHB#0001:09:00.0 [EP  ] 104c 8241 R:02 C:0c0330 (      usb-xhci) LOC_CODE=Backplane USB
[   17.352579889,5] PHB#0001:02:0a.0 [SWDN] 10b5 8748 R:ca C:060400 B:0a..0b SLOT=Backplane BMC 
[   17.356115475,5] PHB#0001:0a:00.0 [ETOX] 1a03 1150 R:03 C:060400 B:0b..0b LOC_CODE=Backplane BMC
[   17.406221174,5] PHB#0001:0b:00.0 [PCID] 1a03 2000 R:30 C:030000 (           vga) LOC_CODE=Backplane BMC
[   17.434170287,5] PHB#0001:02:10.0 [SWDN] 10b5 8748 R:ca C:060400 B:0c..0c SLOT=Slot2 
[   17.462803667,5] PHB#0001:0c:00.0 [EP  ] 14e4 1657 R:01 C:020000 (      ethernet) LOC_CODE=Slot2
[   17.488542543,5] PHB#0001:0c:00.1 [EP  ] 14e4 1657 R:01 C:020000 (      ethernet) LOC_CODE=Slot2
[   18.000624471,5] PHB#0001:0c:00.2 [EP  ] 14e4 1657 R:01 C:020000 (      ethernet) LOC_CODE=Slot2
[   18.023915229,5] PHB#0001:0c:00.3 [EP  ] 14e4 1657 R:01 C:020000 (      ethernet) LOC_CODE=Slot2
[   18.063615917,5] PHB#0001:02:11.0 [SWDN] 10b5 8748 R:ca C:060400 B:0d..11 SLOT=Slot1 
[   18.101210514,5] PHB#0002:00:00.0 [ROOT] 1014 03dc R:00 C:060400 B:01..01 SLOT=Slot4 
[   18.155857714,5] PHB#0002:01:00.0 [EP  ] 9005 028d R:01 C:010400 (          raid) LOC_CODE=Slot4

PCI SLOT Table in Working condition(Where the message not seen):

07:38:39 [   15.035227690,5] PHB#0000:00:00.0 [ROOT] 1014 03dc R:00 C:060400 B:01..01 SLOT=Slot3 
07:38:39 [   15.041566803,5] PHB#0000:01:00.0 [EP  ] 14e4 168e R:10 C:020000 (      ethernet) LOC_CODE=Slot3
07:38:39 [   15.080866922,5] PHB#0000:01:00.1 [EP  ] 14e4 168e R:10 C:020000 (      ethernet) LOC_CODE=Slot3
07:38:39 [   15.148525068,5] PHB#0001:00:00.0 [ROOT] 1014 03dc R:00 C:060400 B:01..11 SLOT=Backplane PLX 
07:38:39 [   15.173491418,5] PHB#0001:01:00.0 [SWUP] 10b5 8748 R:ca C:060400 B:02..11 LOC_CODE=Backplane PLX
07:38:39 [   15.254674442,5] PHB#0001:02:01.0 [SWDN] 10b5 8748 R:ca C:060400 B:03..07 SLOT=Network Mezz 
07:38:39 [   15.265485164,5] PHB#0001:02:08.0 [SWDN] 10b5 8748 R:ca C:060400 B:08..08 SLOT=Storage Mezz 
07:38:39 [   15.365108159,5] PHB#0001:08:00.0 [LGCY] 1b4b 9235 R:11 C:010601 (          sata) LOC_CODE=Storage Mezz
07:38:39 [   15.379607674,5] PHB#0001:02:09.0 [SWDN] 10b5 8748 R:ca C:060400 B:09..09 SLOT=Backplane USB 
07:38:39 [   15.473336354,5] PHB#0001:09:00.0 [EP  ] 104c 8241 R:02 C:0c0330 (      usb-xhci) LOC_CODE=Backplane USB
07:38:39 [   16.009020823,5] PHB#0001:02:0a.0 [SWDN] 10b5 8748 R:ca C:060400 B:0a..0b SLOT=Backplane BMC 
07:38:39 [   16.075619566,5] PHB#0001:0a:00.0 [ETOX] 1a03 1150 R:03 C:060400 B:0b..0b LOC_CODE=Backplane BMC
07:38:39 [   16.198482509,5] PHB#0001:0b:00.0 [PCID] 1a03 2000 R:30 C:030000 (           vga) LOC_CODE=Backplane BMC
07:38:39 [   16.230003307,5] PHB#0001:02:10.0 [SWDN] 10b5 8748 R:ca C:060400 B:0c..0c SLOT=Slot2 
07:38:39 [   16.286269061,5] PHB#0001:0c:00.0 [EP  ] 14e4 1657 R:01 C:020000 (      ethernet) LOC_CODE=Slot2
07:38:39 [   16.474850589,5] PHB#0001:0c:00.1 [EP  ] 14e4 1657 R:01 C:020000 (      ethernet) LOC_CODE=Slot2
07:38:39 [   17.055440983,5] PHB#0001:0c:00.2 [EP  ] 14e4 1657 R:01 C:020000 (      ethernet) LOC_CODE=Slot2
07:38:39 [   17.080778044,5] PHB#0001:0c:00.3 [EP  ] 14e4 1657 R:01 C:020000 (      ethernet) LOC_CODE=Slot2
07:38:39 [   17.172248811,5] PHB#0001:02:11.0 [SWDN] 10b5 8748 R:ca C:060400 B:0d..11 SLOT=Slot1 
07:38:39 [   17.198615960,5] PHB#0002:00:00.0 [ROOT] 1014 03dc R:00 C:060400 B:01..01 SLOT=Slot4 
07:38:39 [   17.311650977,5] PHB#0002:01:00.0 [EP  ] 9005 028d R:01 C:010400 (          raid) LOC_CODE=Slot4
@pridhiviraj
Copy link
Contributor Author

opal_msg_log_54.txt

OPAL MSG Log.

@pridhiviraj
Copy link
Contributor Author

PHB1 Contains below pci slots/devices:
/sys/firmware/devicetree/base/pciex@3fffe40100000/pci@0/pci@0 # ls

#address-cells             pci@1
#interrupt-cells           pci@10
#size-cells                pci@11
class-code                 pci@8
device-id                  pci@9
device_type                pci@a
ibm,loc-code               phandle
ibm,pci-config-space-type  ranges
interrupt-map              reg
interrupt-map-mask         revision-id
interrupts                 vendor-id
name

Actual slot table PHB1 devices are below:

static const struct slot_table_entry habanero_plx_slots[] = {
        {
                .etype = st_pluggable_slot,
                .location = ST_LOC_DEVFN(1,0),
                .name = "Network Mezz",
        },
        {
                .etype = st_pluggable_slot,
                .location = ST_LOC_DEVFN(2,0),
                .name = "Network Mezz",
        },
        {
                .etype = st_builtin_dev,
                .location = ST_LOC_DEVFN(8,0),
                .name = "Storage Mezz",
        },
        {
                .etype = st_builtin_dev,
                .location = ST_LOC_DEVFN(9,0),
                .name = "Backplane USB",
        },
        {
                .etype = st_builtin_dev,
                .location = ST_LOC_DEVFN(0xa,0),
                .name = "Backplane BMC",
        },
        {
                .etype = st_pluggable_slot,
                .location = ST_LOC_DEVFN(0x10,0),
                .name = "Slot2",
        },
        {
                .etype = st_pluggable_slot,
                .location = ST_LOC_DEVFN(0x11,0),
                .name = "Slot1",
        },
        { .etype = st_end },
};

Below slot/device is not detected in the system.

        {
                .etype = st_pluggable_slot,
                .location = ST_LOC_DEVFN(2,0),
                .name = "Network Mezz",
        },

ghost pushed a commit to stewartsmith/skiboot that referenced this issue Feb 2, 2017
With addition of latest callback of check_all_slot_table found below
error message in habanero platform.

[   17.069198739,3] PCI: built-in device not found: Network Mezz (loc: 10)
open-power#54

So PHB1 already having one Network Mezz(1,0) which is the only one there in the
habanero platform design layout. check_all_slot_table found the additional
Network Mezz(2,0) in slot table is in-correct. Fix this by removing it.

Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
@pridhiviraj
Copy link
Contributor Author

Closing this issue, as it is fixed.

hegdevasant pushed a commit that referenced this issue Sep 21, 2021
hdat: Fix ibm,chip-id property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant