Skip to content

Fix read lm75 thermal sensors issue#3285

Merged
jleveque merged 15 commits intosonic-net:masterfrom
jostar-yang:as7326_20190805
Aug 7, 2019
Merged

Fix read lm75 thermal sensors issue#3285
jleveque merged 15 commits intosonic-net:masterfrom
jostar-yang:as7326_20190805

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)

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
```
* 20e8b36 - (HEAD -> master, origin/master, origin/HEAD) [dash] Set CA to PA underlay DIP for static encap (#3286) (5 days ago) [Lawrence Lee]
* 60f9dde - Add pass pl_sip_encoding to SAI (#3285) (5 days ago) [Lawrence Lee]
* 3943093 - [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