linux_dsm_epyc7002/drivers/net/ethernet/mellanox/mlxsw
Vadim Pasternak f485cc36b0 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 <vadimp@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-06-24 08:15:42 -07:00
..
cmd.h mlxsw: cmd: Free running clock PCI BAR and offsets via query firmware 2019-06-13 22:34:55 -07:00
core_acl_flex_actions.c
core_acl_flex_actions.h
core_acl_flex_keys.c mlxsw: spectrum_acl: Avoid size check for RX_ACL_SYSTEM_PORT element 2019-06-19 10:09:22 -04:00
core_acl_flex_keys.h mlxsw: spectrum_acl: Fix SRC_SYS_PORT element size 2019-06-19 10:09:22 -04:00
core_env.c mlxsw: core: Reduce buffer size in transactions for SFP modules temperature readout 2019-05-30 12:59:46 -07:00
core_env.h
core_hwmon.c mlxsw: core: Add support for negative temperature readout 2019-06-24 08:15:42 -07:00
core_thermal.c mlxsw: core: Add support for negative temperature readout 2019-06-24 08:15:42 -07:00
core.c mlxsw: core: Add a new interface for reading the hardware free running clock 2019-06-13 22:34:55 -07:00
core.h mlxsw: core: Add a new interface for reading the hardware free running clock 2019-06-13 22:34:55 -07:00
emad.h
i2c.c mlxsw: i2c: Allow flexible setting of I2C transactions size 2019-05-30 12:59:46 -07:00
i2c.h
ib.h
item.h
Kconfig mlxsw: spectrum_ptp: Add implementation for physical hardware clock operations 2019-06-13 22:34:55 -07:00
Makefile mlxsw: spectrum_ptp: Add implementation for physical hardware clock operations 2019-06-13 22:34:55 -07:00
minimal.c mlxsw: i2c: Extend initialization with querying firmware info 2019-05-30 12:59:46 -07:00
pci_hw.h mlxsw: pci: Query free running clock PCI BAR and offsets 2019-06-13 22:34:55 -07:00
pci.c mlxsw: pci: Query free running clock PCI BAR and offsets 2019-06-13 22:34:55 -07:00
pci.h
port.h
reg.h mlxsw: core: Add support for negative temperature readout 2019-06-24 08:15:42 -07:00
resources.h mlxsw: resources: Add local_ports_in_{1x, 2x} 2019-05-04 01:21:36 -04:00
spectrum1_acl_tcam.c
spectrum1_kvdl.c
spectrum1_mr_tcam.c
spectrum2_acl_tcam.c
spectrum2_kvdl.c
spectrum2_mr_tcam.c
spectrum_acl_atcam.c
spectrum_acl_bloom_filter.c
spectrum_acl_ctcam.c
spectrum_acl_erp.c mlxsw: spectrum_acl: Avoid warning after identical rules insertion 2019-05-30 12:30:47 -07:00
spectrum_acl_flex_actions.c
spectrum_acl_flex_actions.h
spectrum_acl_flex_keys.c mlxsw: spectrum_acl: Fix SRC_SYS_PORT element size 2019-06-19 10:09:22 -04:00
spectrum_acl_tcam.c
spectrum_acl_tcam.h
spectrum_acl.c mlxsw: spectrum_flower: Implement support for ingress device matching 2019-06-19 10:09:22 -04:00
spectrum_buffers.c mlxsw: spectrum_buffers: Reduce pool size on Spectrum-2 2019-06-12 11:08:15 -07:00
spectrum_cnt.c
spectrum_cnt.h
spectrum_dcb.c
spectrum_dpipe.c
spectrum_dpipe.h
spectrum_fid.c
spectrum_flower.c mlxsw: spectrum_flower: Implement support for ingress device matching 2019-06-19 10:09:22 -04:00
spectrum_ipip.c
spectrum_ipip.h
spectrum_kvdl.c
spectrum_mr_tcam.c
spectrum_mr_tcam.h
spectrum_mr.c
spectrum_mr.h
spectrum_nve_vxlan.c
spectrum_nve.c
spectrum_nve.h
spectrum_ptp.c mlxsw: spectrum_ptp: Fix compilation on 32-bit ARM 2019-06-18 08:52:36 -07:00
spectrum_ptp.h mlxsw: spectrum_ptp: Add implementation for physical hardware clock operations 2019-06-13 22:34:55 -07:00
spectrum_qdisc.c
spectrum_router.c ipv6: Stop sending in-kernel notifications for each nexthop 2019-06-18 09:45:37 -07:00
spectrum_router.h
spectrum_span.c
spectrum_span.h
spectrum_switchdev.c
spectrum_switchdev.h
spectrum.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
spectrum.h mlxsw: spectrum_flower: Implement support for ingress device matching 2019-06-19 10:09:22 -04:00
switchib.c
switchx2.c
trap.h
txheader.h