diff options
| author | Vadim Pasternak <[email protected]> | 2019-06-24 13:32:03 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-06-24 08:15:42 -0700 |
| commit | f485cc36b0a7d72335662921b4b89346c6423422 (patch) | |
| tree | 87de5d9acc99112976a5bbe45ac7c28035a6a174 /tools/perf/scripts/python/bin | |
| parent | 6f73862fabd93213de157d9cc6ef76084311c628 (diff) | |
mlxsw: core: Add support for negative temperature readout
Extend macros MLXSW_REG_MTMP_TEMP_TO_MC() to allow support of negative
temperature readout, since chip and others thermal components are
capable of operating within the negative temperature.
With no such support negative temperature will be consider as very high
temperature and it will cause wrong readout and thermal shutdown.
For negative values 2`s complement is used.
Tested in chamber.
Example of chip ambient temperature readout with chamber temperature:
-10 Celsius:
temp1: -6.0C (highest = -5.0C)
-5 Celsius:
temp1: -1.0C (highest = -1.0C)
v2 (Andrew Lunn):
* Replace '%u' with '%d' in mlxsw_hwmon_module_temp_show()
Signed-off-by: Vadim Pasternak <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions