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

Fix read lm75 thermal sensors issue #3285

Merged
merged 15 commits into from
Aug 7, 2019

Conversation

jostar-yang
Copy link
Contributor

- What I did
Fix read lm75 thermal sensors issue
- How I did it
Fix thermal.py and accton_as7326_monitor.py
- How to verify it
Test by sensors and thermal plan.
sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +57.0 C (high = +82.0 C, crit = +104.0 C)
Core 0: +57.0 C (high = +82.0 C, crit = +104.0 C)
Core 1: +57.0 C (high = +82.0 C, crit = +104.0 C)
Core 2: +57.0 C (high = +82.0 C, crit = +104.0 C)
Core 3: +57.0 C (high = +82.0 C, crit = +104.0 C)
lm75-i2c-15-48
Adapter: i2c-1-mux (chan_id 6)
temp1: +47.5 C (high = +80.0 C, hyst = +75.0 C)

lm75-i2c-15-49
Adapter: i2c-1-mux (chan_id 6)
temp1: +41.0 C (high = +80.0 C, hyst = +75.0 C)

lm75-i2c-15-4a
Adapter: i2c-1-mux (chan_id 6)
temp1: +34.0 C (high = +80.0 C, hyst = +75.0 C)

Themral plan:
Test to get lm75_48=57500, lm75_49=48500, lm75_4a=36000, lm_4b=34500, cpu=51000
- Description for the changelog

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

str_len = len(search_str)
idx=file_str.find(search_str)
if idx==-1:
print "bcm sdk is not ready ,retrun 0"
#print "bcm sdk is not ready ,retrun 0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to either remove all of these commented-out print statements, or convert them into logging.debug() or logging.verbose() messages?

Remove not need comment printf. Modify needed printf to debug log
@jleveque jleveque merged commit cc31279 into sonic-net:master Aug 7, 2019
mssonicbld added a commit that referenced this pull request Sep 17, 2024
…lly (#20159)

#### Why I did it
src/sonic-swss
```
* 20e8b362 - (HEAD -> master, origin/master, origin/HEAD) [dash] Set CA to PA underlay DIP for static encap (#3286) (5 days ago) [Lawrence Lee]
* 60f9dde5 - Add pass pl_sip_encoding to SAI (#3285) (5 days ago) [Lawrence Lee]
* 3943093d - [Mellanox] Update headroom calculation algorithm (#3235) (6 days ago) [Stephen Sun]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants