Skip to content

Added C-CMIS PM API logic and advertisement - #715

Closed
nkanchi-nexthop wants to merge 2 commits into
sonic-net:masterfrom
nexthop-ai:nkanchi.c-cmis-pm-api-advert
Closed

Added C-CMIS PM API logic and advertisement#715
nkanchi-nexthop wants to merge 2 commits into
sonic-net:masterfrom
nexthop-ai:nkanchi.c-cmis-pm-api-advert

Conversation

@nkanchi-nexthop

@nkanchi-nexthop nkanchi-nexthop commented Jul 16, 2026

Copy link
Copy Markdown

Description

  • Adds a Page 42h "Performance Monitoring Advertisement" memory map page and constants, and wires it into CCmisApi.get_pm_all()/get_transceiver_pm() so the newly-added Page 35h monitors are only read when the module advertises them as implemented.
  • Adds the missing Page 3Ah host-interface PM fields.
  • Currently 34h raw counters are used to derive PM fields that populate the dict. Now added the raw counters from 34h into the dict as well.
  • Added advertisement for CMIS revision and C-CMIS support.
Page Description
35h Media Lane Link performance monitoring fields
3Ah Host interface performancing monitoring fields
42h Performance Monitoring Advertisement page

Motivation and Context

The C-CMIS 1.4 spec marks Page 34h and 35h monitors as optional and gates them behind Page 42h advertisement bits. The original Page 34h/35h fields are left ungated since existing consumers depend on those keys always being populated. Only the new fields added need the new advertisement check.
Page 3Ah counters have no corresponding Page 42h advertisement in the spec, so they're always read.

How Has This Been Tested?

Signed-off-by: nkanchi-nexthop <nkanchi@nexthop.ai>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@nkanchi-nexthop
nkanchi-nexthop deleted the nkanchi.c-cmis-pm-api-advert branch July 16, 2026 22:24
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.

2 participants