From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794931985; b=LlNPAUK+SkvlHcrjY22GKc6+/Wy5FfawLWaqukh3e/rF3CR+qYEHpa1hG4spJXuxDFob VT83WAeLN/q/VzgUnRY3qtma6IkMswOZDaa8UBrXht2DApzn+DWruePcMSyKQQ2FAmpVt a//so/yj2nDphcCet2/CpcRRSAZVH/x1imsctv3vHtiF4Ywy3625+V8PvvQWYkz1uoP+i 2WDluKUxiRq7iudb88h0qs60vJrRjLXOJbnWYqx0aB6Bd7BZ0bm/yud+wU/K1yitca2fq kIVajYXvQB24puan0U5YToUOwhAgSiAFRsdyHdRhmvdH2ZWJTLHClHEqhpA4qX+7ZkQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794931985; h=DMARC-Filter:Received:Received:X-Authority-Analysis:DKIM-Signature: Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To:X-AntiAbuse:X-AntiAbuse: X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-BWhitelist:X-Source-IP: X-Source-L:X-Exim-ID:X-Source:X-Source-Args:X-Source-Dir: X-Source-Sender:X-Source-Auth:X-Email-Count:X-Org:X-Source-Cap: X-Local-Domain:X-CMAE-Envelope; bh=5ayC2chEOMy/EM6FwLYUtO9+bIoqCIH2XBi7kXa8WKU=; b=ryeMPOtpmTFYUdmiM0ReORlJwuW04OqaiKKl2E1CE3UbVwiAb7+NEpO8d7zMaX9J/TwF vi4C6puPGAuziW63OiJ8Q85yqFU9COnoYuNutU+Nqee5Y7ILytVi0daCtQERl2uXJKfE6 DTZK6TQVT15rnty+EpVHCvkOD2o7Zjk/QQoojfTPthUgtpcbM5D7a0PvCApYijqkO3hOg kOtu7KszsNpn8TISEMBzU3Q2yiiDSc4bQ03PVIgGZ7y/Tk7fnqMG/Nw9wrpMtqIP7tbWF GMrxj5J/HNAEkhdNDM8XZIX1oWF1hwJs2sCrxvuFPGrJNtKgu5hueInMG9gyEz5zgag== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=roeck-us.net; spf=fail smtp.mailfrom=roeck-us.net; dkim=pass header.d=roeck-us.net header.i=@roeck-us.net header.a=rsa-sha256 header.s=default header.b=fdlx1UaH; arc=none smtp.remote-ip=35.89.44.33 Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FCC6606A32C for ; Tue, 17 Nov 2026 16:13:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5FCC6606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=roeck-us.net header.i=@roeck-us.net header.a=rsa-sha256 header.s=default header.b=fdlx1UaH Received: from eig-obgw-5007b.ext.cloudfilter.net ([10.0.29.167]) by cmsmtp with ESMTPS id TDAhx0kJJAR1iTLnsxkqvN; Tue, 17 Nov 2026 16:13:05 +0000 Received: from 162-215-252-36.unifiedlayer.com ([208.91.199.152]) by cmsmtp with ESMTPS id TLnsxAkVXxqjjTLnsxvK1x; Tue, 17 Nov 2026 16:13:04 +0000 X-Authority-Analysis: v=2.4 cv=bZxrUPPB c=1 sm=1 tr=0 ts=6afc7d10 a=QNED+QcLUkoL9qulTODnwA==:117 a=2cfIYNtKkjgZNaOwnGXpGw==:17 a=kj9zAlcOel0A:10 a=zJRp6_cAMcgA:10 a=M0FbrtG7MMAA:10 a=DByj0yF0lLsDYCRfZgAA:9 a=CjuIK1q_8ugA:10 a=KPbNTLLc3YvdawN95zVk:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5ayC2chEOMy/EM6FwLYUtO9+bIoqCIH2XBi7kXa8WKU=; b=fdlx1UaHo5ymK/MItCFXYQZzNV WMk/Beo118erUyYXX1jz4naVDz8FAshs8jBEeJ6g1j1sUL1vYPk3S0Kuch2sm5TpS+Jbsb7UubcrQ gmyndv4TRF/XhHULfp+6e1cT+h0KKUfukFweNIlVwQ4tmS+25lLXjCecfQ0XmNY1wciPyFGIdQmZK A1dtWCXp/hPAt2iTQaL/qeExbXcM0FzRRNwNuvX7k8auZqs6tfopKj6FizeeyXyPfrrJwx5OwG40N Iw1qmVoFNbx42jLrS7tApiudXeLRdfFsDUPYUOUcxke9CGBwkJINpL7c4LaeK8zWYFJCqo0V2fY74 oJFt0+bQ==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:58132 helo=server.roeck-us.net) by bh-25.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xTLnr-00000003LwM-3YPP; Tue, 17 Nov 2026 21:43:03 +0530 Date: Tue, 17 Nov 2026 08:13:03 -0800 From: Guenter Roeck To: Matt Turner Cc: Richard Henderson , Magnus Lindholm , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v2 6/7] hwmon: Add driver for Marvel AlphaServer environmental sensors Message-ID: <71d115df-0380-4724-8cc1-ca7da0aa5fc4@roeck-us.net> References: <20261116-marvel-env-v2-0-ef614eb2e7f1@gmail.com> <20261116-marvel-env-v2-6-ef614eb2e7f1@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261116-marvel-env-v2-6-ef614eb2e7f1@gmail.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-BWhitelist: no X-Source-IP: 108.223.40.66 X-Source-L: No X-Exim-ID: 1xTLnr-00000003LwM-3YPP X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 108-223-40-66.lightspeed.sntcca.sbcglobal.net (server.roeck-us.net) [108.223.40.66]:58132 X-Source-Auth: guenter@roeck-us.net X-Email-Count: 7 X-Org: HG=direseller_whb_net_legacy;ORG=directi; X-Source-Cap: cm9lY2s7YWN0aXZzdG07YmgtMjUud2ViaG9zdGJveC5uZXQ= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNLmzyxl3ew9dm1Iq/X+3l7z9Q7Wpa8z46ucWV5M4HpLc7Zpa/j8DvP1ADdY9CAHom0c+dj+FCeaFuvl/knI1sRj1iSEfkWQVo42aAvtGoKiQoPl5sUP Q+VkGKKeAEu7KzYsVYQl0NLA+cmvQl3HJPPjtki0nXWBhML34jcIxOZfi89e1xkcUxNSrCgaSa6xJMYHG7BmpNZBTaVWgIFnUHwmVUIObh+7tSjxXq3kXwtp On Mon, Nov 16, 2026 at 09:59:13PM -0500, Matt Turner wrote: > The management firmware of the Marvel (EV7) AlphaServers, the GS1280, > ES80 and ES47, monitors temperatures, fans, voltages and power supplies. > The SRM console describes each sensor as a packet in a power and > environment node of its config tree (GCT), and fills in the readings > when asked to refresh the node. The packet layout was taken from Tru64 > UNIX. > > The firmware gives each temperature, fan and voltage sensor a warning > limit and a failure limit, and reports the sensor in the warning or > failure state once its reading reaches one. Neither state means that the > sensor is broken: a temperature past its failure limit is too high, not > faulty. Power supplies are either working or failed, with the cause > (AC, POK, overtemperature, fan) logged by the firmware. > > Export the sensors through hwmon. A temperature's warning and failure > limits become max and crit, with max_alarm set in either state and > crit_alarm in the failure state. A fan's warning limit becomes min, with > min_alarm set in either state and fault in the failure state, which is > when the firmware counts the fan as failed. A voltage exports its > reading, with min_alarm or max_alarm set in either state and lcrit_alarm > or crit_alarm in the failure state, depending on which side of its > nominal voltage it reads. The console gives the nominal voltage and only > one other limit, so the voltage limits are not exported. A power supply > is a voltage channel with only a fault attribute. > > A refresh keeps the boot CPU in the console with interrupts disabled for > up to 300 ms per node, so refresh a node at most once per > update_interval. The hwmon core serializes the callbacks, which also > serializes the refreshes. This is not how the update_interval is supposed to be used. update_interval is expected to be programmed into the chip. Soft intervals should be hard-coded. Thanks, Guenter