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

Using mrvllibsai_amd64_1.6.3.deb will make Falcon's docker-syncd-mrvl crash during runtime #44

Open
duncanlee08 opened this issue Aug 9, 2021 · 1 comment

Comments

@duncanlee08
Copy link

duncanlee08 commented Aug 9, 2021

Description:

I try to port Marvell platform for amd64 device. I use the deb of version 1.6.3, and it will crash at runtime. Someone can help me to answer this issue?

Error Message:

Jul 23 22:04:35.380654 sonic ERR syncd#syncd: :- onSwitchCreateInInitViewMode: failed to create switch in init view mode: SAI_STATUS_NOT_SUPPORTED
Jul 23 22:04:35.380654 sonic DEBUG syncd#syncd: :< onSwitchCreateInInitViewMode: exit
Jul 23 22:04:35.380731 sonic DEBUG syncd#syncd: :< processQuadInInitViewModeCreate: exit
Jul 23 22:04:35.380731 sonic DEBUG syncd#syncd: :< processQuadEventInInitViewMode: exit
Jul 23 22:04:35.380815 sonic DEBUG syncd#syncd: :> ~SaiAttributeList: enter
Jul 23 22:04:35.380815 sonic DEBUG syncd#syncd: :> sai_deserialize_free_attribute_value: enter
Jul 23 22:04:35.380893 sonic DEBUG syncd#syncd: :< sai_deserialize_free_attribute_value: exit
Jul 23 22:04:35.380893 sonic DEBUG syncd#syncd: :> sai_deserialize_free_attribute_value: enter
Jul 23 22:04:35.380973 sonic DEBUG syncd#syncd: :< sai_deserialize_free_attribute_value: exit
Jul 23 22:04:35.380973 sonic DEBUG syncd#syncd: :> sai_deserialize_free_attribute_value: enter
Jul 23 22:04:35.381054 sonic DEBUG syncd#syncd: :< sai_deserialize_free_attribute_value: exit
Jul 23 22:04:35.381054 sonic DEBUG syncd#syncd: :> sai_deserialize_free_attribute_value: enter
Jul 23 22:04:35.381133 sonic DEBUG syncd#syncd: :< sai_deserialize_free_attribute_value: exit
Jul 23 22:04:35.381204 sonic DEBUG syncd#syncd: :> sai_deserialize_free_attribute_value: enter
Jul 23 22:04:35.381204 sonic DEBUG syncd#syncd: :< sai_deserialize_free_attribute_value: exit
Jul 23 22:04:35.381285 sonic DEBUG syncd#syncd: :< ~SaiAttributeList: exit
Jul 23 22:04:35.381353 sonic DEBUG syncd#syncd: :< processQuadEvent: exit
Jul 23 22:04:35.381422 sonic DEBUG syncd#syncd: :< processSingleEvent: exit
Jul 23 22:04:35.381422 sonic DEBUG syncd#syncd: :< processEvent: exit
Jul 23 22:04:35.381437 sonic ERR syncd#syncd: :- run: Runtime error: :- onSwitchCreateInInitViewMode: failed to create switch in init view mode: SAI_STATUS_NOT_SUPPORTED
Jul 23 22:04:35.381512 sonic DEBUG syncd#syncd: :> sendShutdownRequestAfterException: enter
Jul 23 22:04:35.381512 sonic DEBUG syncd#syncd: :> sendShutdownRequest: enter
Jul 23 22:04:35.381593 sonic DEBUG syncd#syncd: :> sai_serialize_object_id: enter
Jul 23 22:04:35.381593 sonic DEBUG syncd#syncd: :< sai_serialize_object_id: exit
Jul 23 22:04:35.381674 sonic NOTICE syncd#syncd: :- sendShutdownRequest: sending switch_shutdown_request notification to OA for switch: oid:0x0
Jul 23 22:04:35.381674 sonic DEBUG syncd#syncd: :> sai_serialize_switch_shutdown_request: enter
Jul 23 22:04:35.381774 sonic DEBUG syncd#syncd: :> sai_serialize_object_id: enter
Jul 23 22:04:35.381774 sonic DEBUG syncd#syncd: :< sai_serialize_object_id: exit
Jul 23 22:04:35.381855 sonic DEBUG syncd#syncd: :< sai_serialize_switch_shutdown_request: exit
Jul 23 22:04:35.381921 sonic DEBUG syncd#syncd: :> send: enter
Jul 23 22:04:35.381989 sonic DEBUG syncd#syncd: :> send: enter
Jul 23 22:04:35.381989 sonic DEBUG syncd#syncd: :- send: channel NOTIFICATIONS, publish: ["switch_shutdown_request","{"switch_id":"oid:0x0"}"]
Jul 23 22:04:35.382008 sonic INFO syncd#/supervisord: syncd 22:04:35 SAI: INFO SWITCH xpSaiSwitch.c:5503 : Calling xpSaiInitializeSwitch attr_count 522:04:35 SAI: ERROR SWITCH #44 : Specified attribute 119 couldn't be set during switch create
Jul 23 22:04:35.382092 sonic INFO syncd#/supervisord: syncd 22:04:35 SAI: ERROR SWITCH xpSaiSwitch.c:5538 : Validation of input parameters failed

@duncanlee08 duncanlee08 changed the title Using mrvllibsai_amd64_1.8.1-1.deb will make docker-syncd-mrvl crash at runtime Using mrvllibsai_amd64_1.6.3.deb will make docker-syncd-mrvl crash at runtime Aug 9, 2021
@duncanlee08 duncanlee08 changed the title Using mrvllibsai_amd64_1.6.3.deb will make docker-syncd-mrvl crash at runtime Using mrvllibsai_amd64_1.6.3.deb will make Falcon's docker-syncd-mrvl crash during runtime Aug 11, 2021
@duncanlee08
Copy link
Author

duncanlee08 commented Aug 12, 2021

Dear Members,

I follow sonic_master_falcon_mvl_patch.sh from "https://github.com/Marvell-switching/sonic-scripts/blob/master/sonic_master_falcon_mvl_patch.sh" to build image,procedure as following:

  1. git clone https://github.com/Azure/sonic-buildimage.git
  2. cd sonic-buildimage
  3. git checkout f14430b29b80d199c709f7fa8c74035b5c004f90
  4. make init
  5. bash sonic_master_falcon_mvl_patch.sh
  6. After sonic_master_falcon_mvl_patch.sh is patched, it will download the failed mrvllibsai_amd64_1.8-1-1.deb. Modfiy as following:
    =================================================
    diff --git a/platform/marvell/sai.mk b/platform/marvell/sai.mk
    index ac05bc8f0..426a83d1e 100644
    --- a/platform/marvell/sai.mk
    +++ b/platform/marvell/sai.mk
    @@ -1,7 +1,7 @@
    -export MRVL_SAI_VERSION = 1.5.1
    -export MRVL_SAI = mrvllibsai_amd64_$(MRVL_SAI_VERSION).deb
    +export MRVL_SAI_VERSION = 1.6.3
    +export MRVL_SAI = mrvllibsai_$(PLATFORM_ARCH)_$(MRVL_SAI_VERSION).deb
    ==================================================
  7. make configure PLATFORM=marvell
  8. Build sonic-marvell.bin
  9. make all

Test results:
docker-syncd-mrvl still crashes during runtime.

Error Message:

Jul 30 23:05:05.950977 sonic INFO syncd#syncd: :- updateNotificationsPointers: SAI_SWITCH_ATTR_FDB_EVENT_NOTIFY: 0x55af3ce01d40 (orch) => 0x564077221f20 (syncd)
Jul 30 23:05:05.950977 sonic INFO syncd#syncd: :- updateNotificationsPointers: SAI_SWITCH_ATTR_PORT_STATE_CHANGE_NOTIFY: 0x55af3ce01d50 (orch) => 0x564077222720 (syncd)
Jul 30 23:05:05.951130 sonic INFO syncd#syncd: :- updateNotificationsPointers: SAI_SWITCH_ATTR_SWITCH_SHUTDOWN_REQUEST_NOTIFY: 0x55af3ce01d60 (orch) => 0x564077223720 (syncd)
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :< updateNotificationsPointers: exit
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :> isInitViewMode: enter
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :< isInitViewMode: exit
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :- processQuadEvent: translating VID to RIDs on all attributes
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :> translateVidToRid: enter
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :< translateVidToRid: exit
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :> processOid: enter
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :> sai_deserialize_object_id: enter
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :< sai_deserialize_object_id: exit
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :> sai_serialize_object_type: enter
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :> sai_serialize_enum: enter
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :< sai_serialize_enum: exit
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :< sai_serialize_object_type: exit
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :> sai_serialize_common_api: enter
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :> sai_serialize_enum: enter
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :< sai_serialize_enum: exit
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :< sai_serialize_common_api: exit
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :- processOid: calling SAI_COMMON_API_CREATE for SAI_OBJECT_TYPE_SWITCH
Jul 30 23:05:05.951130 sonic DEBUG syncd#syncd: :> processOidCreate: enter
Jul 30 23:05:05.951165 sonic DEBUG syncd#syncd: :> sai_deserialize_object_id: enter
Jul 30 23:05:05.951165 sonic DEBUG syncd#syncd: :< sai_deserialize_object_id: exit
Jul 30 23:05:05.951184 sonic DEBUG syncd#syncd: :> switchIdQuery: enter
Jul 30 23:05:05.951184 sonic DEBUG syncd#syncd: :> switchIdQuery: enter
Jul 30 23:05:05.951198 sonic DEBUG syncd#syncd: :> objectTypeQuery: enter
Jul 30 23:05:05.951198 sonic DEBUG syncd#syncd: :< objectTypeQuery: exit
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :< switchIdQuery: exit
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :< switchIdQuery: exit
Jul 30 23:05:05.951334 sonic NOTICE syncd#syncd: :- processOidCreate: creating switch number 1
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :> create: enter
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :< create: exit
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :< processOidCreate: exit
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :< processOid: exit
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :> sendApiResponse: enter
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :> sai_serialize_status: enter
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :> sai_serialize_enum: enter
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :< sai_serialize_enum: exit
Jul 30 23:05:05.951334 sonic DEBUG syncd#syncd: :< sai_serialize_status: exit
Jul 30 23:05:05.951440 sonic DEBUG syncd#syncd: :> sai_serialize_common_api: enter
Jul 30 23:05:05.951440 sonic DEBUG syncd#syncd: :> sai_serialize_enum: enter
Jul 30 23:05:05.951440 sonic DEBUG syncd#syncd: :< sai_serialize_enum: exit
Jul 30 23:05:05.951440 sonic DEBUG syncd#syncd: :< sai_serialize_common_api: exit
Jul 30 23:05:05.951440 sonic ERR syncd#syncd: :- sendApiResponse: api SAI_COMMON_API_CREATE failed in syncd mode: SAI_STATUS_NOT_SUPPORTED
Jul 30 23:05:05.951460 sonic DEBUG syncd#syncd: :> sai_serialize_status: enter
Jul 30 23:05:05.951473 sonic DEBUG syncd#syncd: :> sai_serialize_enum: enter
Jul 30 23:05:05.951473 sonic DEBUG syncd#syncd: :< sai_serialize_enum: exit
Jul 30 23:05:05.951486 sonic DEBUG syncd#syncd: :< sai_serialize_status: exit
Jul 30 23:05:05.951495 sonic DEBUG syncd#syncd: :> sai_serialize_common_api: enter
Jul 30 23:05:05.951495 sonic DEBUG syncd#syncd: :> sai_serialize_enum: enter
Jul 30 23:05:05.951581 sonic DEBUG syncd#syncd: :< sai_serialize_enum: exit
Jul 30 23:05:05.951581 sonic DEBUG syncd#syncd: :< sai_serialize_common_api: exit
Jul 30 23:05:05.951581 sonic INFO syncd#syncd: :- sendApiResponse: sending response for SAI_COMMON_API_CREATE api with status: SAI_STATUS_NOT_SUPPORTED
Jul 30 23:05:05.951581 sonic DEBUG syncd#syncd: :> set: enter
Jul 30 23:05:05.951581 sonic INFO syncd#/supervisord: syncd 23:05:05 SAI: ERROR SWITCH xpSaiSwitch.c:5196 : Specified attribute 119 couldn't be set during switch create
Jul 30 23:05:05.951581 sonic INFO syncd#/supervisord: syncd 23:05:05 SAI: ERROR SWITCH xpSaiSwitch.c:5538 : Validation of input parameters failed
Jul 30 23:05:05.951581 sonic DEBUG syncd#syncd: :< set: exit
Jul 30 23:05:05.951581 sonic DEBUG syncd#syncd: :> sai_serialize_common_api: enter
Jul 30 23:05:05.951581 sonic DEBUG syncd#syncd: :> sai_serialize_enum: enter
Jul 30 23:05:05.951581 sonic DEBUG syncd#syncd: :< sai_serialize_enum: exit
Jul 30 23:05:05.951581 sonic DEBUG syncd#syncd: :< sai_serialize_common_api: exit
Jul 30 23:05:05.951606 sonic INFO syncd#syncd: :- sendApiResponse: response for SAI_COMMON_API_CREATE api was send
Jul 30 23:05:05.951621 sonic DEBUG syncd#syncd: :< sendApiResponse: exit
Jul 30 23:05:05.951621 sonic ERR syncd#syncd: :- processQuadEvent: attr: SAI_SWITCH_ATTR_INIT_SWITCH: true
Jul 30 23:05:05.951621 sonic ERR syncd#syncd: :- processQuadEvent: attr: SAI_SWITCH_ATTR_FDB_EVENT_NOTIFY: 0x55af3ce01d40
Jul 30 23:05:05.951723 sonic ERR syncd#syncd: :- processQuadEvent: attr: SAI_SWITCH_ATTR_PORT_STATE_CHANGE_NOTIFY: 0x55af3ce01d50
Jul 30 23:05:05.951723 sonic ERR syncd#syncd: :- processQuadEvent: attr: SAI_SWITCH_ATTR_SWITCH_SHUTDOWN_REQUEST_NOTIFY: 0x55af3ce01d60
Jul 30 23:05:05.951723 sonic ERR syncd#syncd: :- processQuadEvent: attr: SAI_SWITCH_ATTR_SRC_MAC_ADDRESS: 00:A0:C9:00:00:00
Jul 30 23:05:05.951723 sonic DEBUG syncd#syncd: :> syncUpdateRedisQuadEvent: enter
Jul 30 23:05:05.951723 sonic DEBUG syncd#syncd: :< syncUpdateRedisQuadEvent: exit

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