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

[Edge-core][common driver][pmbus][ym2651y.c] When … #23

Conversation

ec-michael-shih
Copy link
Collaborator

…psu_power_good is failed, temperature return 1023 degree.

Why I did it

The driver will poll for 3 seconds at a time to update the pmbus value. Before modification, psu_power_good = failed ==>The temperature will be returned as 0 (degrees). This will cause the sonic to send syslog when the psu is powered up, but detect 0 degrees before updating the correct temperature. (misjudgment)

How I did it

Therefore, it is necessary to modify the value that when psu_power_good = failed ==> the temperature returns 1023 (degrees), so that the python program can know that the status of 1023 is for power_good is failed value(befor update the correct temperature value).

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

…psu_power_good is failed, temperature return 1023 degree.

[why to do]:
The driver will poll for 3 seconds at a time to update the pmbus value.
Before modification, psu_power_good = failed ==>The temperature will be returned as 0 (degrees).
This will cause the sonic to send syslog when the psu is powered up, but detect 0 degrees before updating the correct temperature. (misjudgment)
Therefore, it is necessary to modify the value that when psu_power_good = failed ==> the temperature returns 1023 (degrees), so that the python program can know that the status of 1023 is for power_good is failed value(befor update the correct temperature value).
@ec-michael-shih ec-michael-shih changed the title JIRA-ONSBUSWI-2698: [ec-sonic][common driver][pmbus][ym2651y.c] When … [Edge-core][common driver][pmbus][ym2651y.c] When … Dec 21, 2023
@bryan1978 bryan1978 merged commit be99f0f into edge-core:202211.0 Jan 3, 2024
1 check passed
tigerfu000 pushed a commit to tigerfu000/ec-sonic-buildimage that referenced this pull request Apr 30, 2024
Why I did it:
    Testbed report indicates related psu test failed.

How I dit it:
    Sync from:
      - sonic-net/sonic-buildimage#13815
      - edge-core#6
      - edge-core#23

How to verify it:
    Test pass on testbed
tigerfu000 pushed a commit to tigerfu000/ec-sonic-buildimage that referenced this pull request May 3, 2024
Why I did it:
    Testbed test reports related PSU test failed.

How I dit it:
    Sync PMBUS driver from:
    - sonic-net/sonic-buildimage#13815
    - edge-core#6
    - edge-core#23

How to verify it:
    show platform firmware
    show platform syseeprom
    show platform psustatus
    show platform temperature
    show platform fan
tigerfu000 pushed a commit to tigerfu000/ec-sonic-buildimage that referenced this pull request May 3, 2024
Why I did it:
    Testbed test reports related PSU test failed.

How I dit it:
    Sync PMBUS driver from:
    - sonic-net/sonic-buildimage#13815
    - edge-core#6
    - edge-core#23

How to verify it:
    show platform firmware
    show platform syseeprom
    show platform psustatus
    show platform temperature
    show platform fan
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