Subject: Rare project developers
List archive
- From: Gawen Davey <>
- To: Frédéric LOUI <>, Alexander Gall <>, "" <>
- Cc: "" <>, Alexander Jeffries <>
- Subject: Re: [rare-dev] Access
- Date: Wed, 22 Jun 2022 13:09:31 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aps-networks.com; dmarc=pass action=none header.from=aps-networks.com; dkim=pass header.d=aps-networks.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iyF3pw+z8zvGmFrRGwONI3l1XzC30uMpGJ9DeV2hT5Q=; b=SYAwKANuEUEDCVNTAD9MyanN5dH0LLL/U/tfgG+3jgXzqHe3oxEM6xseNOFKkwlVLETb4rPjQVMQKQZftWamYtJDKaVX9oMWO0fH6k2t8b8Ct83z1z1M1bKqOBdLG+j7DSYB1zgZ6ewn0KAVwLyPvg+yWjIE+yu/WMMEYD0+SjNiRm/+fNVRniHF6zUn0Hy4AYl7utUTeiVLtzxnIAY6YDACD3cvHgL56fgER3w8z4H/bxpmSfCdQrizMi8qZ7UKhQbpRCU6BP6PE001dynrxK4qoCMth52+B6wlG9OGxjkhdlTq0sLcp5pubrGPzHCTckAXvmnEkCrBTiJ2H+Q4sQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nTnzojT5HN+e88+5/H+1xY6E7m2ArueDUkS3+bcpL08NdUkrznHb/Tt/xomWxCWPw9yk8yRbTzTFLLlOo8QHajseP/6zCbmtDwnkoCmgufSOI+2GElPNGOKohID6RkwKsGrJWwufiCDMBdicB2Xk6vkIL3BCQforA5KnO5knoYVRg34lW2EObyx67PYQTBWX1VJi0FX1tGrPcjQ3l73TSmb6omfKG0d/7fCMfRZ6Y4LQD3rAsnHGJAd7H0h0EpQ7leUT/POVm9l0ZSMAh2lRyufbdndvFITAf4dUmK8iZyTtBXOPuumGE8hNJU8wHz5KeIjdSsq5c2VAiN2A0H+UTg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=aps-networks.com;
- Suggested_attachment_session_id: 6171fe6c-0beb-8fff-e0ad-87b25b40dced
That could work, let's try that. When is good? If now, I need half hour to charge my headphones.
From: mc36 <>
Sent: 22 June 2022 14:05
To: Gawen Davey <>; Frédéric LOUI <>; Alexander Gall <>
Cc: <>; Alexander Jeffries <>
Subject: Re: Access
Sent: 22 June 2022 14:05
To: Gawen Davey <>; Frédéric LOUI <>; Alexander Gall <>
Cc: <>; Alexander Jeffries <>
Subject: Re: Access
directly not, it's remote for me too and when i kick off the old sde
then it's basically depends only on the local infra, which is closed...
but we can have a vc where i can allow you access to my console?
thanks,
cs
On 6/22/22 15:01, Gawen Davey wrote:
> Any chance I could ssh onto the box and have a look?
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* mc36 <>
> *Sent:* 22 June 2022 12:50
> *To:* Gawen Davey <>; Fr d ric LOUI <>; Alexander Gall <>
> *Cc:* <>; Alexander Jeffries <>
> *Subject:* Re: Access
> hi,
> with all these in effect, i successfully started the box...
> the bad news is that i lost all my 100g qsfp plug...
> (after-before shows below)
> thanks,
> cs
>
> bfshell> version
> 9.9.0bfshell> ucli
> Starting UCLI from bf-shell
> bf-sde> pm
> bf-sde.pm> show
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 47/0 |23/2|134|3/ 6|10G |NONE|Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> 49/0 |20/0|156|3/28|100G | RS |Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> bf-sde.pm> show -a
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 1/0 | 8/0| 0|0/ 0|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 2/0 | 8/1| 1|0/ 1|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 3/0 | 8/2| 2|0/ 2|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 4/0 | 8/3| 3|0/ 3|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 5/0 | 7/0| 4|0/ 4|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 6/0 | 7/1| 5|0/ 5|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 7/0 | 7/2| 6|0/ 6|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 8/0 | 7/3| 7|0/ 7|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 9/0 | 6/0| 12|0/12|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 10/0 | 6/1| 13|0/13|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 11/0 | 6/2| 14|0/14|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 12/0 | 6/3| 15|0/15|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 13/0 | 4/0| 28|0/28|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 14/0 | 4/1| 29|0/29|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 15/0 | 4/2| 30|0/30|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 16/0 | 4/3| 31|0/31|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 17/0 | 2/0| 44|0/44|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 18/0 | 2/1| 45|0/45|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 19/0 | 2/2| 46|0/46|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 20/0 | 2/3| 47|0/47|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 21/0 | 0/0| 60|0/60|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 22/0 | 0/1| 61|0/61|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 23/0 | 0/2| 62|0/62|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 24/0 | 0/3| 63|0/63|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 25/0 |30/0|176|3/48|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 26/0 |30/1|177|3/49|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 27/0 |30/2|178|3/50|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 28/0 |30/3|179|3/51|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 29/0 |28/0|160|3/32|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 30/0 |28/1|161|3/33|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 31/0 |28/2|162|3/34|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 32/0 |28/3|163|3/35|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 33/0 |26/0|144|3/16|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 34/0 |26/1|145|3/17|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 35/0 |26/2|146|3/18|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 36/0 |26/3|147|3/19|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 37/0 |25/0|136|3/ 8|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 38/0 |25/1|137|3/ 9|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 39/0 |25/2|138|3/10|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 40/0 |25/3|139|3/11|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 41/0 |24/0|128|3/ 0|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 42/0 |24/1|129|3/ 1|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 43/0 |24/2|130|3/ 2|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 44/0 |24/3|131|3/ 3|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 45/0 |23/0|132|3/ 4|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 46/0 |23/1|133|3/ 5|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 47/0 |23/2|134|3/ 6|10G |NONE|Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> 48/0 |23/3|135|3/ 7|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 49/0 |20/0|156|3/28|100G | RS |Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> 49/1 |20/1|157|3/29|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 49/2 |20/2|158|3/30|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 49/3 |20/3|159|3/31|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 50/0 |22/0|140|3/12|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 50/1 |22/1|141|3/13|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 50/2 |22/2|142|3/14|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 50/3 |22/3|143|3/15|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 51/0 |16/0|188|3/60|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 51/1 |16/1|189|3/61|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 51/2 |16/2|190|3/62|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 51/3 |16/3|191|3/63|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 52/0 |18/0|172|3/44|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 52/1 |18/1|173|3/45|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 52/2 |18/2|174|3/46|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 52/3 |18/3|175|3/47|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 53/0 |12/0| 32|0/32|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 53/1 |12/1| 33|0/33|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 53/2 |12/2| 34|0/34|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 53/3 |12/3| 35|0/35|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 54/0 |14/0| 48|0/48|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 54/1 |14/1| 49|0/49|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 54/2 |14/2| 50|0/50|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 54/3 |14/3| 51|0/51|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 55/0 | 9/0| 8|0/ 8|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 55/1 | 9/1| 9|0/ 9|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 55/2 | 9/2| 10|0/10|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 55/3 | 9/3| 11|0/11|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 56/0 |10/0| 16|0/16|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 56/1 |10/1| 17|0/17|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 56/2 |10/2| 18|0/18|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 56/3 |10/3| 19|0/19|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 57/0 |32/0| 64|0/64|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 57/1 |32/1| 65|0/65|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 57/2 |32/2| 66|0/66|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 57/3 |32/3| 67|0/67|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> bf-sde.pm> ..
> bf-sde> bf_pltfm
> bf-sde.bf_pltfm> qsfp
> bf-sde.bf_pltfm.qsfp> show
> Max ports supported ==> 56
> ================
> Show for QSFP :
> ================
> --------------------------------------------------------------------------------
> port id vendor part_num eth ext-eth Om-len Cu-Len Qsfp-type
> cmpl cmpl
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
>
> ================
> Show for CMIS:
> ================
> --------------------------------------------------------------------------------
> port id vendor part_num Cu-Len conn-type
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
> port id vendor part_num Optics conn-type
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
>
> ================
> Show for SFP:
> ================
> ---------------------------------------------------------------------------------
> Port ID Vendor Part No. Cable Length Type
> ---------------------------------------------------------------------------------
> bf-sde.bf_pltfm.qsfp>
>
>
> *******************************************************************************************************
>
>
> bfshell> version
> 9.7.0bfshell> ucli
> Cannot read termcap database;
> using dumb terminal settings.
> bf-sde.pm> show
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 47/0 |23/2|134|3/ 6|10G |NONE|Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> 49/0 |20/0|156|3/28|100G | RS |Ds|Au|YES|ENB|UP | NONE | 5247| 2926|
> bf-sde.pm> ..
> bf-sde> bf
> bf-sde> bf_pltfm
> bf-sde.bf_pltfm> qs
> bf-sde.bf_pltfm> qsfp
> bf-sde.bf_pltfm.qsfp> show
> Max ports supported ==> 76
> ================
> Show for QSFP :
> ================
> --------------------------------------------------------------------------------
> port id vendor part_num eth ext-eth Om-len Cu-Len Qsfp-type
> cmpl cmpl
> --------------------------------------------------------------------------------
> 1 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 2 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 3 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 4 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 5 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 6 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 7 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 8 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 9 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 10 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 11 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 12 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 13 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 14 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 15 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 16 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 49 0x11 CISCO-INNOLIGHT TF-FC020-NC2 0x80 0x01 --0-- 20 m Optical
> 57 0x00 0x00 0x00 --0-- 0 m Copper Loop
> --------------------------------------------------------------------------------
>
> ================
> Show for CMIS:
> ================
> --------------------------------------------------------------------------------
> port id vendor part_num Cu-Len conn-type
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
> port id vendor part_num Optics conn-type
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
> bf-sde.bf_pltfm.qsfp>
>
>
>
>
>
>
> On 6/22/22 12:56, Gawen Davey wrote:
>> Additionally, the BSP build script should have -DTHRIFT_ENABLED=off in the cmake invocation as well.
>>
>> Sorry there's a lot going on at the moment and struggling a bit to keep up with everything.
>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>> *From:* mc36 <>
>> *Sent:* 22 June 2022 11:44
>> *To:* Gawen Davey <>; Fr d ric LOUI <>; Alexander Gall <>
>> *Cc:* <>; Alexander Jeffries <>
>> *Subject:* Re: Access
>> hi,
>> after applying your patch, recompiled everything and given it a try... i still get segfault and bfswd does not start...
>> thanks,
>> cs
>>
>>
>> mc36@stordis:~$ ./s.sh
>> [sudo] password for mc36:
>> 256
>> i2c-1 i2c igb BB I2C adapter
>> i2c-2 smbus SMBus I801 adapter at f000 SMBus adapter
>> i2c-0 i2c igb BB I2C adapter
>> Using SDE /home/mc36/bf-sde-9.9.0/
>> Using SDE_INSTALL /home/mc36/bf-sde-9.9.0//install/
>> Setting up DMA Memory Pool
>> Using TARGET_CONFIG_FILE /home/mc36/bf-sde-9.9.0//install//share/p4/targets/tofino/bf_router.conf
>> Using PATH /home/mc36/bf-sde-9.9.0//install//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>> Using LD_LIBRARY_PATH /usr/local/lib:/home/mc36/bf-sde-9.9.0//install//lib:
>> checking for bf_sysfs_fname /sys/class/bf/bf0/device/dev_add
>> kernel mode packet driver present, forcing kernel_pkt option!
>> bf_switchd: Install dir: /home/mc36/bf-sde-9.9.0//install/
>> bf_switchd: system services initialized
>> bf_switchd: loading conf_file /home/mc36/bf-sde-9.9.0//install//share/p4/targets/tofino/bf_router.conf...
>> bf_switchd: processing device configuration...
>> Configuration for dev_id 0
>> Family : tofino
>> pci_sysfs_str : /sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0
>> pci_int_mode : 0
>> sds_fw_path : share/tofino_sds_fw/avago/firmware
>> bf_switchd: processing P4 configuration...
>> P4 profile for dev_id 0
>> num P4 programs 1
>> p4_name: bf_router
>> p4_pipeline_name: pipe
>> libpd:
>> libpdthrift:
>> context: /home/mc36/bf-sde-9.9.0//install//bf_router.tofino/pipe/context.json
>> config: /home/mc36/bf-sde-9.9.0//install//bf_router.tofino/pipe/tofino.bin
>> Pipes in scope [0 1 2 3 ]
>> diag:
>> accton diag:
>> Agent[0]: /home/mc36/bf-sde-9.9.0//install//lib/libpltfm_mgr.so
>> bf_switchd: library /home/mc36/bf-sde-9.9.0//install//lib/libpltfm_mgr.so loaded
>> bf_switchd: agent[0] initialized
>>
>> Platform Manager: Starting BF2556X-1T
>> Platform Manager: Initialising SMB (i2c) subsystem
>> Platform SMB: Detecting system device
>> Platform SMB: System i2c bus found at /dev/i2c-2
>> Platform Manager: Initialising QSFP subsystem
>> Platform Manager: Initialising IPC (socket) subsystem
>> Platform IPC: Socket at /tmp/tofino_usocket ready
>> Platform Manager: Initialising IPMI (sensor) subsystem
>>
>> Device 0: Operational mode set to ASIC
>> Initialized the device types using platforms infra API
>> ASIC detected at PCI /sys/class/bf/bf0/device
>> ASIC pci device id is 16 (0x0010)
>> Skipped pkt-mgr init
>> Starting PD-API RPC server on port 9090
>> bf_switchd: drivers initialized
>> \
>> Platform Manager: Initialising LED subsystem
>> Platform Manager: Initialising MDIO subsystem
>> Platform Manager: Starting health monitor
>>
>> bf_switchd: dev_id 0 initialized
>>
>> bf_switchd: initialized 1 devices
>> 2022-06-22 12:42:12.185073 BF_SYS ERROR - /home/mc36/bf-sde-9.9.0//install//lib/libdriver.so(+0x1c53bf2) [0x7f15747cabf2]
>> 2022-06-22 12:42:12.185127 BF_SYS ERROR - /home/mc36/bf-sde-9.9.0//install//lib/libdriver.so(bf_switchd_lib_init+0x12ff) [0x7f15747d0dff]
>> 2022-06-22 12:42:12.185148 BF_SYS ERROR - bf_switchd(+0x3773) [0x558c1b10d773]
>> 2022-06-22 12:42:12.185165 BF_SYS ERROR - /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f157275ad0a]
>> 2022-06-22 12:42:12.185180 BF_SYS ERROR - bf_switchd(+0x398a) [0x558c1b10d98a]
>> /home/mc36/bf-sde-9.9.0//run_switchd.sh: line 218: 1092 Segmentation fault sudo env "SDE=$SDE" "SDE_INSTALL=$SDE_INSTALL" $ASAN_ON_ERROR "PATH=$PATH"
>> "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" $DBG bf_switchd "$SERVER_LISTEN_LOCAL_ONLY" --install-dir $SDE_INSTALL --conf-file $TARGET_CONFIG_FILE "--init-mode=$INIT_MODE" $SKIP_HLD_STR
>> $SKIP_P4_STR $SKIP_PORT_ADD_STR $STS_PORT_STR $KERNEL_PKT_STR $SHELL_NO_WAIT $@
>> mc36@stordis:~$
>> mc36@stordis:~$
>> mc36@stordis:~$ sudo dmesg | tail -n 50
>> [ 21.682010] i2c /dev entries driver
>> [ 21.713375] igb: Intel(R) Gigabit Ethernet Network Driver
>> [ 21.719450] igb: Copyright (c) 2007-2014 Intel Corporation.
>> [ 22.086426] igb 0000:08:00.0: added PHC on eth0
>> [ 22.090376] igb 0000:08:00.0 enp8s0f0: renamed from eth0
>> [ 22.091505] igb 0000:08:00.0: Intel(R) Gigabit Ethernet Network Connection
>> [ 22.105133] igb 0000:08:00.0: enp8s0f0: (PCIe:5.0Gb/s:Width x1) 84:c7:8f:02:20:61
>> [ 22.113580] igb 0000:08:00.0: enp8s0f0: PBA No: 106300-000
>> [ 22.119720] igb 0000:08:00.0: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
>> [ 22.490289] igb 0000:08:00.1: added PHC on eth0
>> [ 22.494004] igb 0000:08:00.1 enp8s0f1: renamed from eth0
>> [ 22.495370] igb 0000:08:00.1: Intel(R) Gigabit Ethernet Network Connection
>> [ 22.508998] igb 0000:08:00.1: enp8s0f1: (PCIe:5.0Gb/s:Width x1) 84:c7:8f:02:20:62
>> [ 22.517446] igb 0000:08:00.1: enp8s0f1: PBA No: 106300-000
>> [ 22.523582] igb 0000:08:00.1: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
>> [ 22.532840] igb 0000:0a:00.0: PHY reset is blocked due to SOL/IDER session.
>> [ 22.565111] pps pps0: new PPS source ptp2
>> [ 22.568073] igb 0000:0a:00.0 enp10s0: renamed from eth0
>> [ 22.569754] igb 0000:0a:00.0: added PHC on enp10s0
>> [ 22.580807] igb 0000:0a:00.0: Intel(R) Gigabit Ethernet Network Connection
>> [ 22.588505] igb 0000:0a:00.0: enp10s0: (PCIe:2.5Gb/s:Width x1) 84:c7:8f:02:20:60
>> [ 22.596826] igb 0000:0a:00.0: enp10s0: PBA No: 000300-000
>> [ 22.602870] igb 0000:0a:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
>> [ 22.631318] i801_smbus 0000:00:1f.3: SMBus using PCI interrupt
>> [ 22.638472] i2c i2c-2: 2/4 memory slots populated (from DMI)
>> [ 22.672393] igb 0000:0a:00.0 enp10s0: igb: enp10s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
>> [ 22.683389] IPv6: ADDRCONF(NETDEV_CHANGE): enp10s0: link becomes ready
>> [ 22.928611] bf_kpkt: loading out-of-tree module taints kernel.
>> [ 22.965925] bf_kpkt: module verification failed: signature and/or required key missing - tainting kernel
>> [ 22.986580] bf_kpkt: Intel(R) Switch ASIC Linux Packet Driver - version 1.0
>> [ 22.994366] bf_kpkt: Copyright (c) 2015-2022 Intel Corporation.
>> [ 23.001003] bf device class created
>> [ 23.004901] Use MSI interrupt
>> [ 23.008215] kpkt_mode 1 hd_room 32 dr_int_en 1 rx_count 256
>> [ 23.014506] bf 0000:05:00.0: enabling device (0100 -> 0102)
>> [ 23.020908] pmd_set_huge: Cannot satisfy [mem 0x383ff8000000-0x383ff8200000] with a huge-page mapping due to MTRR override.
>> [ 23.033696] bf using 2 MSI irq from 104
>> [ 23.033859] BF allocating 2 MSI vectors from 104
>> [ 23.039121] bf 0000:05:00.0: bf device 0 registered with irq 104
>> [ 23.045826] bf probe ok
>> [ 23.048559] bf_kpkt: NAPI Net Driver,version 9.9.0-22-cpr (01May2017)
>>
>> [ 23.057882] bf_pci0 BF PCI-MAC is up
>> [ 23.059777] bf 0000:05:00.0 ens1: renamed from bf_pci0
>> [ 23.061901] bf_kpkt kernel processing enabled for dev 0 subdev_id 0
>> [ 25.849946] bf_m_init 31
>> [ 29.379258] bf_dev_add
>> [ 29.383494] IPv6: ADDRCONF(NETDEV_CHANGE): ens1: link becomes ready
>> [ 29.392419] bf_switchd[1093]: segfault at 0 ip 0000000000000000 sp 00007ffeb74bff18 error 14 in bf_switchd[558c1b10a000+3000]
>> [ 29.405071] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
>> mc36@stordis:~$
>>
>> On 6/22/22 11:08, Gawen Davey wrote:
>>> Yes, It will go on the portal. But it's beta, not ready for general release.
>>>
>>> With respect to the latest error, looks like SDE 9.9.0 removed some code that handled a case where a part number is not properly burned into the "efuse". This is not something that
>>> can be fixed by the BSP, and requires a patched bf-drivers package. So the SDE version as it comes from Intel won't ever work.
>>>
>>> I've got a script as a workaround. It unpacks the SDE and bf-drivers package, applies the necessary patch, and packages everything back up again. It expects the original SDE
>>> tarball to be in the same directory as itself, and will replace it in-situ.
>>>
>>> Probably don't need to create an entire SDE tarball, so the last three lines are probably unecessary.
>>>
>>> In any case, I've raised a ticket with Intel, but this certainly sets back my plans. I don't want to add more scripts and instructions to our documentation and downloads, so
>>> nothing will be going on the support portal until I hear back from Intel.
>>>
>>> #! /usr/bin/env bash
>>>
>>> set -eE
>>>
>>> script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
>>>
>>> cd ${script_dir}
>>>
>>> tar xvf bf-sde-9.9.0.tgz
>>> cd bf-sde-9.9.0/packages
>>> tar xvf bf-drivers-9.9.0.tgz
>>> rm bf-drivers-9.9.0.tgz
>>>
>>> patch -p0 <<'EOM'
>>> Index: bf-drivers-9.9.0/src/lld/lld_efuse_tof.c
>>> ===================================================================
>>> --- bf-drivers-9.9.0.orig/src/lld/lld_efuse_tof.c
>>> +++ bf-drivers-9.9.0/src/lld/lld_efuse_tof.c
>>> @@ -117,6 +117,15 @@ int lld_efuse_tof_load(bf_dev_id_t dev_i
>>> dev_p->efuse_data.voltage_scaling =
>>> extract_bit_fld_128(hi64, lo64, (245 - 128), (243 - 128));
>>> + /* If either pipes or ports are disabled in efuse we'll pretend
>>> + * this is a tofin-small */
>>> + if ((dev_p->efuse_data.pipe_disable != 0) ||
>>> + (dev_p->efuse_data.port_disable_map_lo != 0)) {
>>> + /* This is a temporary hack since some of the Tofino lite chip dont have
>>> + have the chip part number burned correctly in the efuse */
>>> + dev_p->efuse_data.chip_part_number = BFN_PART_NBR_BFNT10032D; // T-3.2-Half
>>> + }
>>> +
>>> if (dev_p->efuse_data.chip_part_number == BFN_PART_NBR_BFNT10032D) {
>>> // T-3.2-Half
>>> uint64_t p = dev_p->efuse_data.port_disable_map_lo;
>>> EOM
>>>
>>>
>>> tar cvf bf-drivers-9.9.0.tgz bf-drivers-9.9.0
>>> rm -rf bf-drivers-9.9.0
>>> cd ${script_dir}
>>> rm bf-sde-9.9.0.tgz
>>> tar cvf bf-sde-9.9.0.tgz bf-sde-9.9.0
>>>
>>>
>>>
then it's basically depends only on the local infra, which is closed...
but we can have a vc where i can allow you access to my console?
thanks,
cs
On 6/22/22 15:01, Gawen Davey wrote:
> Any chance I could ssh onto the box and have a look?
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* mc36 <>
> *Sent:* 22 June 2022 12:50
> *To:* Gawen Davey <>; Fr d ric LOUI <>; Alexander Gall <>
> *Cc:* <>; Alexander Jeffries <>
> *Subject:* Re: Access
> hi,
> with all these in effect, i successfully started the box...
> the bad news is that i lost all my 100g qsfp plug...
> (after-before shows below)
> thanks,
> cs
>
> bfshell> version
> 9.9.0bfshell> ucli
> Starting UCLI from bf-shell
> bf-sde> pm
> bf-sde.pm> show
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 47/0 |23/2|134|3/ 6|10G |NONE|Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> 49/0 |20/0|156|3/28|100G | RS |Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> bf-sde.pm> show -a
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 1/0 | 8/0| 0|0/ 0|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 2/0 | 8/1| 1|0/ 1|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 3/0 | 8/2| 2|0/ 2|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 4/0 | 8/3| 3|0/ 3|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 5/0 | 7/0| 4|0/ 4|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 6/0 | 7/1| 5|0/ 5|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 7/0 | 7/2| 6|0/ 6|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 8/0 | 7/3| 7|0/ 7|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 9/0 | 6/0| 12|0/12|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 10/0 | 6/1| 13|0/13|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 11/0 | 6/2| 14|0/14|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 12/0 | 6/3| 15|0/15|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 13/0 | 4/0| 28|0/28|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 14/0 | 4/1| 29|0/29|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 15/0 | 4/2| 30|0/30|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 16/0 | 4/3| 31|0/31|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 17/0 | 2/0| 44|0/44|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 18/0 | 2/1| 45|0/45|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 19/0 | 2/2| 46|0/46|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 20/0 | 2/3| 47|0/47|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 21/0 | 0/0| 60|0/60|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 22/0 | 0/1| 61|0/61|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 23/0 | 0/2| 62|0/62|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 24/0 | 0/3| 63|0/63|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 25/0 |30/0|176|3/48|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 26/0 |30/1|177|3/49|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 27/0 |30/2|178|3/50|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 28/0 |30/3|179|3/51|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 29/0 |28/0|160|3/32|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 30/0 |28/1|161|3/33|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 31/0 |28/2|162|3/34|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 32/0 |28/3|163|3/35|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 33/0 |26/0|144|3/16|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 34/0 |26/1|145|3/17|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 35/0 |26/2|146|3/18|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 36/0 |26/3|147|3/19|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 37/0 |25/0|136|3/ 8|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 38/0 |25/1|137|3/ 9|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 39/0 |25/2|138|3/10|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 40/0 |25/3|139|3/11|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 41/0 |24/0|128|3/ 0|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 42/0 |24/1|129|3/ 1|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 43/0 |24/2|130|3/ 2|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 44/0 |24/3|131|3/ 3|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 45/0 |23/0|132|3/ 4|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 46/0 |23/1|133|3/ 5|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 47/0 |23/2|134|3/ 6|10G |NONE|Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> 48/0 |23/3|135|3/ 7|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 49/0 |20/0|156|3/28|100G | RS |Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> 49/1 |20/1|157|3/29|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 49/2 |20/2|158|3/30|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 49/3 |20/3|159|3/31|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 50/0 |22/0|140|3/12|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 50/1 |22/1|141|3/13|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 50/2 |22/2|142|3/14|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 50/3 |22/3|143|3/15|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 51/0 |16/0|188|3/60|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 51/1 |16/1|189|3/61|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 51/2 |16/2|190|3/62|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 51/3 |16/3|191|3/63|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 52/0 |18/0|172|3/44|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 52/1 |18/1|173|3/45|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 52/2 |18/2|174|3/46|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 52/3 |18/3|175|3/47|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 53/0 |12/0| 32|0/32|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 53/1 |12/1| 33|0/33|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 53/2 |12/2| 34|0/34|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 53/3 |12/3| 35|0/35|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 54/0 |14/0| 48|0/48|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 54/1 |14/1| 49|0/49|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 54/2 |14/2| 50|0/50|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 54/3 |14/3| 51|0/51|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 55/0 | 9/0| 8|0/ 8|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 55/1 | 9/1| 9|0/ 9|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 55/2 | 9/2| 10|0/10|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 55/3 | 9/3| 11|0/11|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 56/0 |10/0| 16|0/16|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 56/1 |10/1| 17|0/17|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 56/2 |10/2| 18|0/18|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 56/3 |10/3| 19|0/19|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 57/0 |32/0| 64|0/64|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 57/1 |32/1| 65|0/65|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 57/2 |32/2| 66|0/66|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> 57/3 |32/3| 67|0/67|-------|----|--|--|NO |---|---|--------|----------------|----------------|-
> bf-sde.pm> ..
> bf-sde> bf_pltfm
> bf-sde.bf_pltfm> qsfp
> bf-sde.bf_pltfm.qsfp> show
> Max ports supported ==> 56
> ================
> Show for QSFP :
> ================
> --------------------------------------------------------------------------------
> port id vendor part_num eth ext-eth Om-len Cu-Len Qsfp-type
> cmpl cmpl
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
>
> ================
> Show for CMIS:
> ================
> --------------------------------------------------------------------------------
> port id vendor part_num Cu-Len conn-type
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
> port id vendor part_num Optics conn-type
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
>
> ================
> Show for SFP:
> ================
> ---------------------------------------------------------------------------------
> Port ID Vendor Part No. Cable Length Type
> ---------------------------------------------------------------------------------
> bf-sde.bf_pltfm.qsfp>
>
>
> *******************************************************************************************************
>
>
> bfshell> version
> 9.7.0bfshell> ucli
> Cannot read termcap database;
> using dumb terminal settings.
> bf-sde.pm> show
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> PORT |MAC |D_P|P/PT|SPEED |FEC |AN|KR|RDY|ADM|OPR|LPBK |FRAMES RX |FRAMES TX |E
> -----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
> 47/0 |23/2|134|3/ 6|10G |NONE|Ds|Au|NO |ENB|DWN| NONE | 0| 0|
> 49/0 |20/0|156|3/28|100G | RS |Ds|Au|YES|ENB|UP | NONE | 5247| 2926|
> bf-sde.pm> ..
> bf-sde> bf
> bf-sde> bf_pltfm
> bf-sde.bf_pltfm> qs
> bf-sde.bf_pltfm> qsfp
> bf-sde.bf_pltfm.qsfp> show
> Max ports supported ==> 76
> ================
> Show for QSFP :
> ================
> --------------------------------------------------------------------------------
> port id vendor part_num eth ext-eth Om-len Cu-Len Qsfp-type
> cmpl cmpl
> --------------------------------------------------------------------------------
> 1 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 2 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 3 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 4 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 5 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 6 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 7 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 8 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 9 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 10 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 11 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 12 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 13 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 14 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 15 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 16 0x00 0x00 0x00 --0-- 0 m Copper Loop
> 49 0x11 CISCO-INNOLIGHT TF-FC020-NC2 0x80 0x01 --0-- 20 m Optical
> 57 0x00 0x00 0x00 --0-- 0 m Copper Loop
> --------------------------------------------------------------------------------
>
> ================
> Show for CMIS:
> ================
> --------------------------------------------------------------------------------
> port id vendor part_num Cu-Len conn-type
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
> port id vendor part_num Optics conn-type
> --------------------------------------------------------------------------------
> --------------------------------------------------------------------------------
> bf-sde.bf_pltfm.qsfp>
>
>
>
>
>
>
> On 6/22/22 12:56, Gawen Davey wrote:
>> Additionally, the BSP build script should have -DTHRIFT_ENABLED=off in the cmake invocation as well.
>>
>> Sorry there's a lot going on at the moment and struggling a bit to keep up with everything.
>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>> *From:* mc36 <>
>> *Sent:* 22 June 2022 11:44
>> *To:* Gawen Davey <>; Fr d ric LOUI <>; Alexander Gall <>
>> *Cc:* <>; Alexander Jeffries <>
>> *Subject:* Re: Access
>> hi,
>> after applying your patch, recompiled everything and given it a try... i still get segfault and bfswd does not start...
>> thanks,
>> cs
>>
>>
>> mc36@stordis:~$ ./s.sh
>> [sudo] password for mc36:
>> 256
>> i2c-1 i2c igb BB I2C adapter
>> i2c-2 smbus SMBus I801 adapter at f000 SMBus adapter
>> i2c-0 i2c igb BB I2C adapter
>> Using SDE /home/mc36/bf-sde-9.9.0/
>> Using SDE_INSTALL /home/mc36/bf-sde-9.9.0//install/
>> Setting up DMA Memory Pool
>> Using TARGET_CONFIG_FILE /home/mc36/bf-sde-9.9.0//install//share/p4/targets/tofino/bf_router.conf
>> Using PATH /home/mc36/bf-sde-9.9.0//install//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>> Using LD_LIBRARY_PATH /usr/local/lib:/home/mc36/bf-sde-9.9.0//install//lib:
>> checking for bf_sysfs_fname /sys/class/bf/bf0/device/dev_add
>> kernel mode packet driver present, forcing kernel_pkt option!
>> bf_switchd: Install dir: /home/mc36/bf-sde-9.9.0//install/
>> bf_switchd: system services initialized
>> bf_switchd: loading conf_file /home/mc36/bf-sde-9.9.0//install//share/p4/targets/tofino/bf_router.conf...
>> bf_switchd: processing device configuration...
>> Configuration for dev_id 0
>> Family : tofino
>> pci_sysfs_str : /sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0
>> pci_int_mode : 0
>> sds_fw_path : share/tofino_sds_fw/avago/firmware
>> bf_switchd: processing P4 configuration...
>> P4 profile for dev_id 0
>> num P4 programs 1
>> p4_name: bf_router
>> p4_pipeline_name: pipe
>> libpd:
>> libpdthrift:
>> context: /home/mc36/bf-sde-9.9.0//install//bf_router.tofino/pipe/context.json
>> config: /home/mc36/bf-sde-9.9.0//install//bf_router.tofino/pipe/tofino.bin
>> Pipes in scope [0 1 2 3 ]
>> diag:
>> accton diag:
>> Agent[0]: /home/mc36/bf-sde-9.9.0//install//lib/libpltfm_mgr.so
>> bf_switchd: library /home/mc36/bf-sde-9.9.0//install//lib/libpltfm_mgr.so loaded
>> bf_switchd: agent[0] initialized
>>
>> Platform Manager: Starting BF2556X-1T
>> Platform Manager: Initialising SMB (i2c) subsystem
>> Platform SMB: Detecting system device
>> Platform SMB: System i2c bus found at /dev/i2c-2
>> Platform Manager: Initialising QSFP subsystem
>> Platform Manager: Initialising IPC (socket) subsystem
>> Platform IPC: Socket at /tmp/tofino_usocket ready
>> Platform Manager: Initialising IPMI (sensor) subsystem
>>
>> Device 0: Operational mode set to ASIC
>> Initialized the device types using platforms infra API
>> ASIC detected at PCI /sys/class/bf/bf0/device
>> ASIC pci device id is 16 (0x0010)
>> Skipped pkt-mgr init
>> Starting PD-API RPC server on port 9090
>> bf_switchd: drivers initialized
>> \
>> Platform Manager: Initialising LED subsystem
>> Platform Manager: Initialising MDIO subsystem
>> Platform Manager: Starting health monitor
>>
>> bf_switchd: dev_id 0 initialized
>>
>> bf_switchd: initialized 1 devices
>> 2022-06-22 12:42:12.185073 BF_SYS ERROR - /home/mc36/bf-sde-9.9.0//install//lib/libdriver.so(+0x1c53bf2) [0x7f15747cabf2]
>> 2022-06-22 12:42:12.185127 BF_SYS ERROR - /home/mc36/bf-sde-9.9.0//install//lib/libdriver.so(bf_switchd_lib_init+0x12ff) [0x7f15747d0dff]
>> 2022-06-22 12:42:12.185148 BF_SYS ERROR - bf_switchd(+0x3773) [0x558c1b10d773]
>> 2022-06-22 12:42:12.185165 BF_SYS ERROR - /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f157275ad0a]
>> 2022-06-22 12:42:12.185180 BF_SYS ERROR - bf_switchd(+0x398a) [0x558c1b10d98a]
>> /home/mc36/bf-sde-9.9.0//run_switchd.sh: line 218: 1092 Segmentation fault sudo env "SDE=$SDE" "SDE_INSTALL=$SDE_INSTALL" $ASAN_ON_ERROR "PATH=$PATH"
>> "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" $DBG bf_switchd "$SERVER_LISTEN_LOCAL_ONLY" --install-dir $SDE_INSTALL --conf-file $TARGET_CONFIG_FILE "--init-mode=$INIT_MODE" $SKIP_HLD_STR
>> $SKIP_P4_STR $SKIP_PORT_ADD_STR $STS_PORT_STR $KERNEL_PKT_STR $SHELL_NO_WAIT $@
>> mc36@stordis:~$
>> mc36@stordis:~$
>> mc36@stordis:~$ sudo dmesg | tail -n 50
>> [ 21.682010] i2c /dev entries driver
>> [ 21.713375] igb: Intel(R) Gigabit Ethernet Network Driver
>> [ 21.719450] igb: Copyright (c) 2007-2014 Intel Corporation.
>> [ 22.086426] igb 0000:08:00.0: added PHC on eth0
>> [ 22.090376] igb 0000:08:00.0 enp8s0f0: renamed from eth0
>> [ 22.091505] igb 0000:08:00.0: Intel(R) Gigabit Ethernet Network Connection
>> [ 22.105133] igb 0000:08:00.0: enp8s0f0: (PCIe:5.0Gb/s:Width x1) 84:c7:8f:02:20:61
>> [ 22.113580] igb 0000:08:00.0: enp8s0f0: PBA No: 106300-000
>> [ 22.119720] igb 0000:08:00.0: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
>> [ 22.490289] igb 0000:08:00.1: added PHC on eth0
>> [ 22.494004] igb 0000:08:00.1 enp8s0f1: renamed from eth0
>> [ 22.495370] igb 0000:08:00.1: Intel(R) Gigabit Ethernet Network Connection
>> [ 22.508998] igb 0000:08:00.1: enp8s0f1: (PCIe:5.0Gb/s:Width x1) 84:c7:8f:02:20:62
>> [ 22.517446] igb 0000:08:00.1: enp8s0f1: PBA No: 106300-000
>> [ 22.523582] igb 0000:08:00.1: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
>> [ 22.532840] igb 0000:0a:00.0: PHY reset is blocked due to SOL/IDER session.
>> [ 22.565111] pps pps0: new PPS source ptp2
>> [ 22.568073] igb 0000:0a:00.0 enp10s0: renamed from eth0
>> [ 22.569754] igb 0000:0a:00.0: added PHC on enp10s0
>> [ 22.580807] igb 0000:0a:00.0: Intel(R) Gigabit Ethernet Network Connection
>> [ 22.588505] igb 0000:0a:00.0: enp10s0: (PCIe:2.5Gb/s:Width x1) 84:c7:8f:02:20:60
>> [ 22.596826] igb 0000:0a:00.0: enp10s0: PBA No: 000300-000
>> [ 22.602870] igb 0000:0a:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
>> [ 22.631318] i801_smbus 0000:00:1f.3: SMBus using PCI interrupt
>> [ 22.638472] i2c i2c-2: 2/4 memory slots populated (from DMI)
>> [ 22.672393] igb 0000:0a:00.0 enp10s0: igb: enp10s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
>> [ 22.683389] IPv6: ADDRCONF(NETDEV_CHANGE): enp10s0: link becomes ready
>> [ 22.928611] bf_kpkt: loading out-of-tree module taints kernel.
>> [ 22.965925] bf_kpkt: module verification failed: signature and/or required key missing - tainting kernel
>> [ 22.986580] bf_kpkt: Intel(R) Switch ASIC Linux Packet Driver - version 1.0
>> [ 22.994366] bf_kpkt: Copyright (c) 2015-2022 Intel Corporation.
>> [ 23.001003] bf device class created
>> [ 23.004901] Use MSI interrupt
>> [ 23.008215] kpkt_mode 1 hd_room 32 dr_int_en 1 rx_count 256
>> [ 23.014506] bf 0000:05:00.0: enabling device (0100 -> 0102)
>> [ 23.020908] pmd_set_huge: Cannot satisfy [mem 0x383ff8000000-0x383ff8200000] with a huge-page mapping due to MTRR override.
>> [ 23.033696] bf using 2 MSI irq from 104
>> [ 23.033859] BF allocating 2 MSI vectors from 104
>> [ 23.039121] bf 0000:05:00.0: bf device 0 registered with irq 104
>> [ 23.045826] bf probe ok
>> [ 23.048559] bf_kpkt: NAPI Net Driver,version 9.9.0-22-cpr (01May2017)
>>
>> [ 23.057882] bf_pci0 BF PCI-MAC is up
>> [ 23.059777] bf 0000:05:00.0 ens1: renamed from bf_pci0
>> [ 23.061901] bf_kpkt kernel processing enabled for dev 0 subdev_id 0
>> [ 25.849946] bf_m_init 31
>> [ 29.379258] bf_dev_add
>> [ 29.383494] IPv6: ADDRCONF(NETDEV_CHANGE): ens1: link becomes ready
>> [ 29.392419] bf_switchd[1093]: segfault at 0 ip 0000000000000000 sp 00007ffeb74bff18 error 14 in bf_switchd[558c1b10a000+3000]
>> [ 29.405071] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
>> mc36@stordis:~$
>>
>> On 6/22/22 11:08, Gawen Davey wrote:
>>> Yes, It will go on the portal. But it's beta, not ready for general release.
>>>
>>> With respect to the latest error, looks like SDE 9.9.0 removed some code that handled a case where a part number is not properly burned into the "efuse". This is not something that
>>> can be fixed by the BSP, and requires a patched bf-drivers package. So the SDE version as it comes from Intel won't ever work.
>>>
>>> I've got a script as a workaround. It unpacks the SDE and bf-drivers package, applies the necessary patch, and packages everything back up again. It expects the original SDE
>>> tarball to be in the same directory as itself, and will replace it in-situ.
>>>
>>> Probably don't need to create an entire SDE tarball, so the last three lines are probably unecessary.
>>>
>>> In any case, I've raised a ticket with Intel, but this certainly sets back my plans. I don't want to add more scripts and instructions to our documentation and downloads, so
>>> nothing will be going on the support portal until I hear back from Intel.
>>>
>>> #! /usr/bin/env bash
>>>
>>> set -eE
>>>
>>> script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
>>>
>>> cd ${script_dir}
>>>
>>> tar xvf bf-sde-9.9.0.tgz
>>> cd bf-sde-9.9.0/packages
>>> tar xvf bf-drivers-9.9.0.tgz
>>> rm bf-drivers-9.9.0.tgz
>>>
>>> patch -p0 <<'EOM'
>>> Index: bf-drivers-9.9.0/src/lld/lld_efuse_tof.c
>>> ===================================================================
>>> --- bf-drivers-9.9.0.orig/src/lld/lld_efuse_tof.c
>>> +++ bf-drivers-9.9.0/src/lld/lld_efuse_tof.c
>>> @@ -117,6 +117,15 @@ int lld_efuse_tof_load(bf_dev_id_t dev_i
>>> dev_p->efuse_data.voltage_scaling =
>>> extract_bit_fld_128(hi64, lo64, (245 - 128), (243 - 128));
>>> + /* If either pipes or ports are disabled in efuse we'll pretend
>>> + * this is a tofin-small */
>>> + if ((dev_p->efuse_data.pipe_disable != 0) ||
>>> + (dev_p->efuse_data.port_disable_map_lo != 0)) {
>>> + /* This is a temporary hack since some of the Tofino lite chip dont have
>>> + have the chip part number burned correctly in the efuse */
>>> + dev_p->efuse_data.chip_part_number = BFN_PART_NBR_BFNT10032D; // T-3.2-Half
>>> + }
>>> +
>>> if (dev_p->efuse_data.chip_part_number == BFN_PART_NBR_BFNT10032D) {
>>> // T-3.2-Half
>>> uint64_t p = dev_p->efuse_data.port_disable_map_lo;
>>> EOM
>>>
>>>
>>> tar cvf bf-drivers-9.9.0.tgz bf-drivers-9.9.0
>>> rm -rf bf-drivers-9.9.0
>>> cd ${script_dir}
>>> rm bf-sde-9.9.0.tgz
>>> tar cvf bf-sde-9.9.0.tgz bf-sde-9.9.0
>>>
>>>
>>>
- Re: [rare-dev] Access, (continued)
- Re: [rare-dev] Access, Frédéric LOUI, 06/22/2022
- Re: [rare-dev] Access, Gawen Davey, 06/22/2022
- Re: [rare-dev] Access, mc36, 06/22/2022
- Re: [rare-dev] Access, Alexander Gall, 06/22/2022
- Re: [rare-dev] Access, mc36, 06/22/2022
- Re: [rare-dev] Access, Gawen Davey, 06/22/2022
- Re: [rare-dev] Access, Gawen Davey, 06/22/2022
- Re: [rare-dev] Access, mc36, 06/22/2022
- Re: [rare-dev] Access, Gawen Davey, 06/22/2022
- Re: [rare-dev] Access, mc36, 06/22/2022
- Re: [rare-dev] Access, Gawen Davey, 06/22/2022
- Re: [rare-dev] Access, mc36, 06/22/2022
- Re: [rare-dev] Access, Gawen Davey, 06/22/2022
- Re: [rare-dev] Access, mc36, 06/22/2022
- Re: [rare-dev] Access, Gawen Davey, 06/22/2022
- Re: [rare-dev] Access, Alexander Gall, 06/23/2022
- Re: [rare-dev] Access, Gawen Davey, 06/23/2022
- Re: [rare-dev] Access, Alexander Gall, 06/23/2022
- Re: [rare-dev] Access, Gawen Davey, 06/23/2022
- Re: [rare-dev] Access, mc36, 06/28/2022
- Re: [rare-dev] Access, Alexander Gall, 06/28/2022
Archive powered by MHonArc 2.6.19.