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

bootlist: unable to translate OF names for net device with single pci bus per 2 ports (Mellanox cards/ConnectX-3) #32

Open
abdhaleegit opened this issue Jun 19, 2019 · 2 comments
Assignees

Comments

@abdhaleegit
Copy link

Problem:

bootlist fails to translate the OF device to logical interface name for Mellanox net devices with single pci bus per 2 ports

# bootlist -m normal -o
Could not translate /pci@800000020000106/pci15b3,1007@0 to logical device name
Could not translate /pci@800000020000106/pci15b3,1007@0 to logical device name
net0
sda
 # lspci -nn
0106:a0:00.0 Ethernet controller [0200]: Mellanox Technologies MT27520 Family [ConnectX-3 Pro] [15b3:1007]
# lspci -xx
0106:a0:00.0 Ethernet controller: Mellanox Technologies MT27520 Family [ConnectX-3 Pro]
00: b3 15 07 10 46 05 10 00 00 00 00 02 20 00 00 00
10: 04 00 10 f2 00 00 00 00 0c 00 00 f0 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 14 10 e7 04
30: 00 00 00 f2 40 00 00 00 00 00 00 00 ff 01 00 00
 # lscfg -vl 0106:a0:00.0
  0106:a0:00.0 uverbs0 ucm0 mlx4_0 enP262p160s0 enP262p160s0d1 umad1 issm0 umad0 issm1 ptp0 pci15b3,1007 U78CD.001.FZHU566-P1-C6
                                         pci15b3,1007 (14100710)               
        Manufacturer Name.........IBM
        Machine Type-Model........MT27520 Family [ConnectX-3 Pro]
        Engineering Change Level..N99085
        Field Replaceable Unit Number
        ..........................00RX859
        Manufacturer ID...........811X0941951174
        Part Number of assembly...00RX855
        Serial Number.............00RX855YA50YF85W084
        Customer Card ID Number.(CC)
        ..........................57BC
        Device Specific.(Z0)......IBM1200111023
        Device Specific.(YC)......0
        Location Code.(YL)........U78CD.001.FZHU566-P1-C6
# ip a
5: enP262p160s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bondtest state UP group default qlen 1000
    link/ether 50:6b:4b:63:92:80 brd ff:ff:ff:ff:ff:ff
6: enP262p160s0d1: <BROADCAST,MULTICAST,SLAVE> mtu 1500 qdisc mq master bondtest state DOWN group default qlen 1000
    link/ether 50:6b:4b:63:92:81 brd ff:ff:ff:ff:ff:ff
# ethtool -i enP262p160s0 
driver: mlx4_en
version: 4.6-1.0.1
firmware-version: 2.42.5000
expansion-rom-version: 
bus-info: 0106:a0:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: yes

# ethtool -i enP262p160s0d1
driver: mlx4_en
version: 4.6-1.0.1
firmware-version: 2.42.5000
expansion-rom-version: 
bus-info: 0106:a0:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: yes

Machine: Power 9 PowerVM LPAR
Distribution: All distribution
Card Type: all Mellanox cards of type ConnectX-3
powerpc-utils latest version: upstream

---Steps to Reproduce---

  1. Attach a Mellanox ConnectX-3 card to LPAR

  2. Build and install the latest utils git clone https://github.com/ibm-power-utilities/powerpc-utils.git

  3. Check the boot configurations

  4. List the logical device names

# bootlist -m normal -o
sda
net0
  1. display OF names
# bootlist -m service -r
/vdevice/l-lan@30000002:speed=auto,duplex=auto,9.3.80.16,,9.53.171.172,9.53.168.1,5,5,255.255.252.0,512

  1. set the boot configuration for the 2 mellanox interfaces enP262p160s0 and enP262p160s0d1 wich has single pci bus 0106:a0:00.0
    # bootlist -m normal enP262p160s0 enP262p160s0d1 net0 /dev/sda
  2. Check the configurations now
# bootlist -m normal -o
Could not translate /pci@800000020000106/pci15b3,1007@0 to logical device name
Could not translate /pci@800000020000106/pci15b3,1007@0 to logical device name
net0
sda
# bootlist -m service -r
/vdevice/l-lan@30000002:speed=auto,duplex=auto,9.3.80.16,,9.53.171.172,9.53.168.1,5,5,255.255.252.0,512

You can see the bootlist fails to translate the OF device to logical interface name with above error

Also at SMS menu you can see the boot configuration for is not set for enP262p160s0 and enP262p160s0d1 interfaces


Current Boot Sequence

(1) Device is not bootable or removed.
(2) Device is not bootable or removed.
(3) Interpartition Logical LAN
( loc=U9080.M9S.78264B8-V5-C2-T1 )
(4) SCSI 49 GB Harddisk, part=1 ()
( loc=U9080.M9S.78264B8-V5-C105-T1-L8100000000000000 )
(5) None

@abdhaleegit abdhaleegit changed the title bootlist: unable to translate OF names for net device with single pci bus per 2 ports (Mellanox cards/CX3/) bootlist: unable to translate OF names for net device with single pci bus per 2 ports (Mellanox cards/ConnectX-3) Jun 19, 2019
@abdhaleegit
Copy link
Author

@tyreld please have a look

@tyreld
Copy link
Member

tyreld commented Jul 11, 2019

It would help to have the device tree output as well.

@tyreld tyreld self-assigned this Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants