From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 376B2C43613 for ; Sun, 23 Jun 2019 12:57:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0889D20656 for ; Sun, 23 Jun 2019 12:57:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="e9EwJGj7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbfFWM5U (ORCPT ); Sun, 23 Jun 2019 08:57:20 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:59317 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfFWM5U (ORCPT ); Sun, 23 Jun 2019 08:57:20 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A00B222077; Sun, 23 Jun 2019 08:57:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 23 Jun 2019 08:57:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=aS/1Cx7S5X9tG+4lE UqI45zzYbZ5GxZ/F+ve4UHZ/QI=; b=e9EwJGj7nBZzLo7g/1JwurLY4GZGeORiS 629pg9xryOBZhpM0JLOuSKrSAgN7qg50zMWyCXdLrHpYA3ZZb98eM5HBxQt9qZwe VQF+KSpIpPfX8rKUdR1nMZ6RU3SXlLJUTYfkScri72lNMRKdOZnAXb3suAXxGGmp o9Gw6ldvNhqYesC5ppP5wpqhd8RtypzJbXCAhz7WJYTbCpUdowUXdymHTsKxPosa uMStrYWCPvKQ9Fi4M9QaNW56BIDbzo9ytPnmQyPlxm67Lsr7CJ1qqp7kdHIX9FxV j4AgOkNrPSChWKzv2pVT95uNzWzciSap/r31DF5X0tjPb3vKWIR4A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddtgdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhstghh rdhorhhgqeenucffohhmrghinhepohiilhgrsghsrdhorhhgnecukfhppeduleefrdegje drudeihedrvdehudenucfrrghrrghmpehmrghilhhfrhhomhepihguohhstghhsehiugho shgthhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from splinter.mtl.com (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id A3F11380079; Sun, 23 Jun 2019 08:57:16 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, jiri@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH net-next 0/3] mlxsw: Thermal and hwmon extensions Date: Sun, 23 Jun 2019 15:56:42 +0300 Message-Id: <20190623125645.2663-1-idosch@idosch.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel This patchset from Vadim includes various enhancements to thermal and hwmon code in mlxsw. Patch #1 adds a thermal zone for each inter-connect device (gearbox). These devices are present in SN3800 systems and code to expose their temperature via hwmon was added in commit 2e265a8b6c09 ("mlxsw: core: Extend hwmon interface with inter-connect temperature attributes"). Currently, there are multiple thermal zones in mlxsw and only a few cooling devices. Patch #2 detects the hottest thermal zone and the cooling devices are switched to follow its trends. RFC was sent last month [1]. Patch #3 allows to read and report negative temperature of the sensors mlxsw exposes via hwmon and thermal subsystems. [1] https://patchwork.ozlabs.org/patch/1107161/ Vadim Pasternak (3): mlxsw: core: Extend thermal core with per inter-connect device thermal zones mlxsw: core: Add the hottest thermal zone detection mlxsw: core: Add support for negative temperature readout .../net/ethernet/mellanox/mlxsw/core_hwmon.c | 12 +- .../ethernet/mellanox/mlxsw/core_thermal.c | 208 +++++++++++++++++- drivers/net/ethernet/mellanox/mlxsw/reg.h | 12 +- 3 files changed, 208 insertions(+), 24 deletions(-) -- 2.20.1