Skip to content

Introducing a new platform for asic clounix#23365

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
longwu-clounix:Support-new-asic-platform-clounix
Aug 5, 2025
Merged

Introducing a new platform for asic clounix#23365
qiluo-msft merged 1 commit intosonic-net:masterfrom
longwu-clounix:Support-new-asic-platform-clounix

Conversation

@longwu-clounix
Copy link
Copy Markdown
Contributor

@longwu-clounix longwu-clounix commented Jul 17, 2025

Why I did it
Introducing a new platform for asic clounix

How to verify it
Test on clounix hardware.

Which release branch to backport (provide reason below if selected)

  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Tested branch (Please provide the tested image

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@longwu-clounix longwu-clounix requested a review from lguohan as a code owner July 17, 2025 03:31
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@longwu-clounix longwu-clounix force-pushed the Support-new-asic-platform-clounix branch from f6fb9d0 to dd97d7a Compare July 17, 2025 03:33
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@longwu-clounix longwu-clounix force-pushed the Support-new-asic-platform-clounix branch from dd97d7a to ec7c069 Compare July 17, 2025 05:25
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@longwu-clounix longwu-clounix marked this pull request as draft July 17, 2025 05:25
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@longwu-clounix longwu-clounix marked this pull request as ready for review July 18, 2025 01:47
@longwu-clounix
Copy link
Copy Markdown
Contributor Author

@lguohan Hi, could you review this PR? Much appreciated : )

@longwu-clounix
Copy link
Copy Markdown
Contributor Author

longwu-clounix commented Jul 22, 2025

@lguohan Hi, could you review this PR? Much appreciated : )

@lguohan @qiluo-msft Please take a look at this PR : ), thank you very much!

@qiluo-msft qiluo-msft requested a review from Copilot July 22, 2025 22:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new platform for the ASIC Clounix architecture to the SONiC project. It adds comprehensive platform support including drivers, utilities, Docker containers, and build configurations for Clounix-based networking hardware.

  • Adds platform drivers and kernel modules for I2C multiplexers and hardware monitoring
  • Implements Docker containers for syncd, saiserver, and PTF testing with Clounix SAI integration
  • Introduces utilities for port configuration, SFP detection, and transceiver management

Reviewed Changes

Copilot reviewed 88 out of 143 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
platform/clounix/sonic-platform-modules-pegatron/common/modules/i2c-mux-pca9641.c I2C multiplexer driver implementation for PCA9641 bus master selector
platform/clounix/clx-utils/clounix-utils/scripts/sfpdet Python utility for SFP detection and port configuration (2000+ lines)
platform/clounix/sai.mk SAI library configuration and package definitions
platform/clounix/rules.mk Platform build rules and dependencies
platform/clounix/docker-syncd-clounix/Dockerfile.j2 Docker configuration for Clounix syncd container
Comments suppressed due to low confidence (2)

platform/clounix/sonic-platform-modules-pegatron/common/modules/clounix_sysfs_main.c:318

  • [nitpick] Debug message uses unclear abbreviation '(ar)select'. Consider using a more descriptive debug message like 'Arbitration select started' for better maintainability.
static int add_new_link(struct kernfs_node *root, char *src, char *node)

platform/clounix/clx-utils/clounix-utils/scripts/sfpdet:350

  • [nitpick] Using magic number comparison. Consider using a boolean return or named constant instead of comparing with literal 1.
                or len(phy_port_value[phy_port_value]) == 0:

@qiluo-msft
Copy link
Copy Markdown
Collaborator

qiluo-msft commented Jul 22, 2025

Semgrep identified some real issues, please fix below warnings:
c.lang.security.insecure-use-string-copy-fn.insecure-use-string-copy-fn
python.lang.security.audit.dangerous-system-call-audit.dangerous-system-call-audit
python.lang.security.audit.subprocess-shell-true.subprocess-shell-true #Closed

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@longwu-clounix longwu-clounix force-pushed the Support-new-asic-platform-clounix branch from de2583d to 29ad0d6 Compare July 23, 2025 02:31
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Clounix is a switch chip manufacturer. This commit aims to
support its ASIC in the sonic system.

Signed-off-by: Zhou,Junde <[email protected]>
Signed-off-by: Long Wu <[email protected]>
@longwu-clounix longwu-clounix force-pushed the Support-new-asic-platform-clounix branch from 29ad0d6 to a060342 Compare July 23, 2025 02:37
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@longwu-clounix
Copy link
Copy Markdown
Contributor Author

This commit aims to support new asic of Clounix, so the specific product code, clounix private code is not needed, delete it.

Copy link
Copy Markdown
Collaborator

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qiluo-msft qiluo-msft requested a review from zhangyanzhao July 24, 2025 01:06
@longwu-clounix
Copy link
Copy Markdown
Contributor Author

@zhangyanzhao could please review this PR? Much appreciated.

@longwu-clounix
Copy link
Copy Markdown
Contributor Author

Hi @lguohan , @qiluo-msft,
yanzhao doesn't seem to have time to review this PR. Could someone else review it?

@qiluo-msft qiluo-msft merged commit 33e1ac5 into sonic-net:master Aug 5, 2025
20 checks passed
qiluo-msft pushed a commit to qiluo-msft/sonic-buildimage that referenced this pull request Aug 6, 2025
Why I did it
Introducing a new platform for asic clounix

How to verify it
Test on clounix hardware.

[build] Fix url for newly onboarded clounix platform. (sonic-net#23609)

Why I did it
Old URL don't work.
@longwu-clounix longwu-clounix deleted the Support-new-asic-platform-clounix branch August 11, 2025 06:33
ccroy-arista pushed a commit to ccroy-arista/sonic-buildimage that referenced this pull request Aug 14, 2025
Why I did it
Introducing a new platform for asic clounix

How to verify it
Test on clounix hardware.

[build] Fix url for newly onboarded clounix platform. (sonic-net#23609)

Why I did it
Old URL don't work.
longwu-clounix added a commit to clounix-sw/sonic-swss that referenced this pull request Oct 13, 2025
What I did
Add support for platform based on Clounix asic. The Clounix asic
platform code has been merged into sonic-buildimage repo. Please
see details in PR: sonic-net/sonic-buildimage#23365

How I did it
Add support for platform based on Clounix asic.

How to verify it
Verified on physical DUT.

Signed-off-by: Long Wu <[email protected]>
Signed-off-by: Qinghua Song <[email protected]>
longwu-clounix added a commit to clounix-sw/sonic-swss that referenced this pull request Oct 16, 2025
What I did
Add support for platform based on Clounix asic. The Clounix asic
platform code has been merged into sonic-buildimage repo. Please
see details in PR: sonic-net/sonic-buildimage#23365

How I did it
Add support for platform based on Clounix asic.

How to verify it
Verified on physical DUT.

Signed-off-by: Long Wu <[email protected]>
Signed-off-by: Qinghua Song <[email protected]>
longwu-clounix added a commit to clounix-sw/sonic-swss that referenced this pull request Oct 30, 2025
What I did
Add support for platform based on Clounix asic. The Clounix asic
platform code has been merged into sonic-buildimage repo. Please
see details in PR: sonic-net/sonic-buildimage#23365

How I did it
Add support for platform based on Clounix asic.

How to verify it
Verified on physical DUT.

Signed-off-by: Long Wu <[email protected]>
Signed-off-by: Qinghua Song <[email protected]>
longwu-clounix added a commit to clounix-sw/sonic-swss that referenced this pull request Nov 4, 2025
What I did
Add support for platform based on Clounix asic. The Clounix asic
platform code has been merged into sonic-buildimage repo. Please
see details in PR: sonic-net/sonic-buildimage#23365

How I did it
Add support for platform based on Clounix asic.

How to verify it
Verified on physical DUT.

Signed-off-by: Long Wu <[email protected]>
Signed-off-by: Qinghua Song <[email protected]>
longwu-clounix added a commit to clounix-sw/sonic-swss that referenced this pull request Nov 11, 2025
What I did
Add support for platform based on Clounix asic. The Clounix asic
platform code has been merged into sonic-buildimage repo. Please
see details in PR: sonic-net/sonic-buildimage#23365

How I did it
Add support for platform based on Clounix asic.

How to verify it
Verified on physical DUT.

Signed-off-by: Long Wu <[email protected]>
Signed-off-by: Qinghua Song <[email protected]>
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

Successfully merging this pull request may close these issues.

6 participants