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

[Chassis] Linecards init fails if the max_cores > 16 #77

Closed
arlakshm opened this issue Jan 30, 2023 · 2 comments · Fixed by sonic-net/sonic-buildimage#13831
Closed

[Chassis] Linecards init fails if the max_cores > 16 #77

arlakshm opened this issue Jan 30, 2023 · 2 comments · Fixed by sonic-net/sonic-buildimage#13831
Assignees

Comments

@arlakshm
Copy link

On Arista 7800 linecards, the sai_switch_create fails with below error, if the value max_cores in the DEVICE_METADATA > 16
if the max_cores <=16 the sai_switch_create is fine.

We should support max_cores = 64.
Calculation: 16 lc * 2 asic per lc * 2 cores per asic

Note: This issue seems to be specific to Arista. Other platforms do not have this issue.

Jan 24 19:17:48.796007 str3-7800-lc7-1 ERR syncd#syncd: [none] SAI_API_SWITCH:platform_process_command:1036 Platform command "INIT_DNX" failed, rc = -1.
Jan 24 19:17:48.796085 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796132 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:dnx_scheduler_connector_gport_add_verify:  Error 'Invalid parameter' indicated, Provided flow id is not in valid range#015
Jan 24 19:17:48.796132 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796132 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:dnx_scheduler_connector_gport_add:  Error indicated (Invalid parameter) on VERIFY ; #015#015
Jan 24 19:17:48.796132 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796132 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:bcm_dnx_cosq_voq_connector_gport_add:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796132 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796132 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:appl_dnx_e2e_scheme_voq_connector_create:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796132 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796183 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:appl_dnx_e2e_scheme_port_create:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796183 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796183 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:appl_dnx_e2e_scheme_port_create_cb:  Error: Invalid parameter ; Failed to create e2e scheme for port: 222.#015#015
Jan 24 19:17:48.796183 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:appl_dnx_system_port_db_iterate:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796227 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796263 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:appl_dnx_e2e_scheme_ucast_create:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796293 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796323 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:appl_dnx_e2e_scheme_init:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796353 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796382 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:utilex_seq_run_step_list_forward:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796411 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796461 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:utilex_seq_run_step_list_forward:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796493 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796523 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:utilex_seq_run:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796552 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796581 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:appl_dnxc_steps_convert_and_run:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796611 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796642 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:appl_dnxc_init_step_list_run:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796673 str3-7800-lc7-1 INFO syncd#supervisord: syncd #015#015
Jan 24 19:17:48.796702 str3-7800-lc7-1 INFO syncd#supervisord: syncd 0:sh_dnxc_init_dnx_cmd:  Error 'Invalid parameter' indicated ; #015#015
Jan 24 19:17:48.796732 str3-7800-lc7-1 INFO syncd#supervisord: syncd initialization command "INIT_DNX" failed, rv = -1 (Internal error).#015#015
Jan 24 19:17:48.836501 str3-7800-lc7-1 INFO syncd#supervisord: syncd rc: common SDK init complete#015
Jan 24 19:17:48.853397 str3-7800-lc7-1 INFO syncd#syncd: [none] SAI_API_SWITCH:brcm_sai_dnx_create_switch:6910 SAI Timing: SDK init time 21 seconds

Non-working Config

"DEVICE_METADATA": {
        "localhost": {
            "switch_type": "voq",
            "hwsku": "Arista-7800R3-48CQ2-C48",
            "synchronous_mode": "enable",
            "default_bgp_status": "down",
            "type": "SpineRouter",
            "region": "None",
            "hostname": "str2-7804-lc7-1",
            "max_cores": "64",
            "switch_id": "8",
            "platform": "x86_64-arista_7800r3_48cq2_lc",
            "mac": "fc:bd:67:67:de:5b",
            "default_pfcwd_status": "enable",
            "bgp_asn": "65100",
            "buffer_model": "traditional",
            "cloudtype": "None",
            "asic_name": "ASIC0",
            "docker_routing_config_mode": "separated",
            "deployment_id": "1"
        }
    },

Working config

"DEVICE_METADATA": {
        "localhost": {
            "switch_type": "voq",
            "hwsku": "Arista-7800R3-48CQ2-C48",
            "synchronous_mode": "enable",
            "default_bgp_status": "down",
            "type": "SpineRouter",
            "region": "None",
            "hostname": "str2-7804-lc7-1",
            "max_cores": "16",
            "switch_id": "8",
            "platform": "x86_64-arista_7800r3_48cq2_lc",
            "mac": "fc:bd:67:67:de:5b",
            "default_pfcwd_status": "enable",
            "bgp_asn": "65100",
            "buffer_model": "traditional",
            "cloudtype": "None",
            "asic_name": "ASIC0",
            "docker_routing_config_mode": "separated",
            "deployment_id": "1"
        }
    },
@skbarista
Copy link

skbarista commented Feb 9, 2023

From the error logs. this seems to be vendor independent resource issue for voqs. Looking whether there is soc property setting that is set in arista skus that would make it arista sku specific.

rlhui pushed a commit to sonic-net/sonic-buildimage that referenced this issue Feb 24, 2023
…max cores (#13831)

To support 64 cores on arista skus. Fixes aristanetworks/sonic#77
Remapped recycle ports to lowers core port ids and set appl_param_nof_ports_per_modid to 64.
kenneth-arista pushed a commit to kenneth-arista/sonic-buildimage that referenced this issue Mar 1, 2023
…ax cores (sonic-net#13831)

To support 64 cores on arista skus. Fixes aristanetworks/sonic#77
Remapped recycle ports to lowers core port ids and set appl_param_nof_ports_per_modid to 64.
yxieca pushed a commit to sonic-net/sonic-buildimage that referenced this issue Mar 2, 2023
…ax cores (#13831) (#14033)

To support 64 cores on arista skus. Fixes aristanetworks/sonic#77
Remapped recycle ports to lowers core port ids and set appl_param_nof_ports_per_modid to 64.

Co-authored-by: Sambath Kumar Balasubramanian <63021927+skbarista@users.noreply.github.com>
@kenneth-arista
Copy link

Closing as the required changes have merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants