Skip to content

[202311] [Mellanox] update asic and module temperature in a thread for CMIS management (#16955)#17699

Merged
yxieca merged 1 commit intosonic-net:202311from
Junchao-Mellanox:202311_cp_16955
Jan 8, 2024
Merged

[202311] [Mellanox] update asic and module temperature in a thread for CMIS management (#16955)#17699
yxieca merged 1 commit intosonic-net:202311from
Junchao-Mellanox:202311_cp_16955

Conversation

@Junchao-Mellanox
Copy link
Copy Markdown
Collaborator

Backport PR: #16955

Why I did it

When module is totally under software control, driver cannot get module temperature/temperature threshold from firmware. In this case, sonic needs to get temperature/temperature threshold from EEPROM. In this PR, a thread thermal updater is created to update module temperature/temperature threshold while software control is enabled.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Query ASIC temperature from SDK sysfs and update hw-management-tc periodically
Query Module temperature from EEPROM and update hw-management-tc periodically

How to verify it

Manual test
New unit tests

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202311

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

…r CMIS management (sonic-net#16955)

- Why I did it
When module is totally under software control, driver cannot get module temperature/temperature threshold from firmware. In this case, sonic needs to get temperature/temperature threshold from EEPROM. In this PR, a thread thermal updater is created to update module temperature/temperature threshold while software control is enabled.

- How I did it
Query ASIC temperature from SDK sysfs and update hw-management-tc periodically
Query Module temperature from EEPROM and update hw-management-tc periodically

- How to verify it
Manual test
New Unit tests
@yxieca yxieca merged commit 8de7cb5 into sonic-net:202311 Jan 8, 2024
@Junchao-Mellanox Junchao-Mellanox deleted the 202311_cp_16955 branch January 8, 2024 23:26
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