🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13388

Re: [PATCH net-next 2/4] ionic: add device interface definitions for hardware monitoring

#13388
From: Simon Horman
Date: Mon, 09 Nov 2026 19:27
24 lines
9403 bytes
On Tue, Nov 03, 2026 at 06:14:47PM +0000, Nikhil P. Rao wrote:
> From: Arun Kumar Prakash <ArunKumar.Prakash@amd.com>
> 
> Add the admin queue commands the device uses to describe and report its
> sensors: IONIC_CMD_HWMON_GETCAPS returns a buffer enumerating the sensor
> types, their channel counts and per-channel attribute capabilities, and
> IONIC_CMD_HWMON_GETATTR reads a single attribute of a single channel.
> 
> The capability buffer has a variable layout that depends on the number
> of sensor types the firmware supports, so it cannot be expressed as a C
> struct and its format is documented in a comment instead.
> 
> The sensor types, attribute IDs and capability buffer layout go in a
> new public header, include/linux/ionic/ionic_hwmon.h, because the hwmon
> driver that parses the buffer lives outside the ionic directory.
> 
> Signed-off-by: Arun Kumar Prakash <ArunKumar.Prakash@amd.com>
> Signed-off-by: Eric Joyner <eric.joyner@amd.com>
> Reviewed-by: Brett Creeley <brett.creeley@amd.com>
> Co-developed-by: Nikhil P. Rao <nikhil.rao@amd.com>
> Signed-off-by: Nikhil P. Rao <nikhil.rao@amd.com>

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261109192705.GZ18859@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359564-linux-kernel-netdev=dewy.ru
References: <20261103-pr46-b4-v1-0-850ab7fbec19@amd.com> <20261103-pr46-b4-v1-2-850ab7fbec19@amd.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359564-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 2/4] ionic: add device interface definitions for
 hardware monitoring
Date: Mon, 9 Nov 2026 19:27:05 +0000
Organization: Usenet Network
Message-ID: <20261109192705.GZ18859@horms.kernel.org>
References: <20261103-pr46-b4-v1-0-850ab7fbec19@amd.com>
 <20261103-pr46-b4-v1-2-850ab7fbec19@amd.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="432796"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:LVq/OsLKI8eAXjieooNzL9IZFUo= sha256:Mxdci967HQy7xYe8xp2l0FMgelFwcCzlcwOMBleeabo=
	sha1:aTnNpjNB8DUh/hGXEc7JzCit7Ic= sha256:c5dT5HlRnGFBPWE/fCW8v7ja8ZWJLpxM4iHta5yJ0U4=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id CB4211138F1; Mon,  9 Nov 2026 22:29:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id aJJqxpD4Nh-E;
	Mon,  9 Nov 2026 22:28:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-359564-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id D04291138E9; Mon,  9 Nov 2026 22:28:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 5BFC137248; Mon,  9 Nov 2026 19:27:15 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794252433;
	b=OC3v/6FCgIBWnnOa/zaRz0SQr96facpm1e7ro8wNXCZ3a13JXMSCS1RjCzhmqla8C+Py
	 udH0Wa7mz7fgBkBpKstTpQ0uWW0bK/zIFrl0VLxGn1cRlCqGf2zGW8y8j0ipE16RhQOqb
	 VwpZHmOVIt64flirmZfmQZn3kwA8N3kgbzMsNeR1ujMxZWjHHyoBLMNSK/HwdoL5hMqwo
	 5gxNJVfodL6DIxyUKseRpdeFRzwOT5QXMdt5WGN7XCKOupAwarflVGfrp/1u0L8ozQHlh
	 6zbG3lrRn80f09LpbkxjkzUDfwyDCnAsp6XmnsBXbo7VcMguESB87NQRsDDxCYJ+Upg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794252433;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=R+tOXrTvvuf/l6pDacnlsvDL8MUGfsR5981h/f7U3eA=;
	b=ZUC9F7xfA9EHgI2p0dFQkqVM7D72ctmgIM2iY9HVIGO+ilY86I6q6JyPA+aCC8QbVTFl
	 Nn7EaTxn/Ct2ZRpEvy7pWvMGaVocdEEuDf1R8URE3Jeyjp5EnqS6T0m9ZxeUB2r6h79N/
	 hactlhB2hsUsfh6GreKtJtmHfIz8gwab/hUMVGDkVAZV4NvGmSw8/BIJIm6LB++umcg0O
	 /71L3AJRc1xkjBDhqDB9UN7OOYNOs0ayruoSdjrpyxdtAjxQczUITpXrID8eDxr2KVemU
	 ic7om+jjp2Vb/+MnEZw9PCAVkQI//jTdt1HTMtepwNwlJIfDpu9wxE/HgL3Ri4KIn7Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gb8kGgbQ;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id EE7A8606A336;
	Mon,  9 Nov 2026 19:27:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gb8kGgbQ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794252432;
	b=FDrMMstZHJHy5bqNa/JTFRtv/x9zTDCuax6S/bZI5WUrzbaVxME4GWkkhl1GO4RQTNWU
	 FPglwUfASut8NRKm/zejRvFmEDSrugZ/cugNzidyQ4t236henL5BpU6JnvVKiaDeWFkGj
	 bXoGFkRbQBaj/lHD7305Wat2IzAhlX5t/x8nwoYHIEKWTlofmNM0qXmGWmtJkyHEUWYCV
	 eu3sr2ZscDGARILtfNqWUvaz/sh2Eci7Hhb0VRO+bLARz6rYob3g9m4XfOOqz7xeGkyPy
	 JTlLgC6wVHZgdMywBeWs7H2mcqF8ZE146qSCPYd/rWKaFFLj6LhWVqmutXotLES4qKg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794252432;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=R+tOXrTvvuf/l6pDacnlsvDL8MUGfsR5981h/f7U3eA=;
	b=knsnUQ5/b/v8lHKF+7ugT4HQalBWV500HFod5LacJbE+0K+MrgCeWcLKzLKtK6SlgERL
	 6lLCxGzFURs36h7MiFQv+N9mufZpjCMB7WGCUKjF5I92nnjTyzoLS9476CDDo8bUbEFz4
	 3irCMHCDebI3ldRXLFbXrCnzvw/Tv08V9fRqJTLyQDVRjyAmQV/3Z8T2MFf561+EtTM1h
	 ecWaO92hoe8Z4B0VuIATDfJ8EwtOkr9+yp1fGxyrljlBB0x++w3zT3SVIgfBoWC4mGy1D
	 wc5TVZ3gvYJv7yHMLek8i25TJ5RvxLEgiTGrD/tG4RzobOQx3RL132e9lsbkX+DHwdw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gb8kGgbQ;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0F48606A321;
	Mon,  9 Nov 2026 19:27:11 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E36F01F0089F;
	Mon,  9 Nov 2026 19:27:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794252431;
	bh=R+tOXrTvvuf/l6pDacnlsvDL8MUGfsR5981h/f7U3eA=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=gb8kGgbQZR8b7EU+UyEn4QSAeEhTPPDlmUw/Bl4dj6kIwwsZpvn2R+2KcW5qNYSap
	 kWd6h0uY1xMts+iEbfX+ovy/lcK+37tOIQLOeGi70MnFUtaGMGj2HxRdlQvauxeydE
	 bR2F+53DZX3OAzU/BnCjqiwmu5K/6pX7zTaF13c8m4mejs6RRoAnOi+pbhwmOQKz7R
	 +jHCopNPBLpPlwRWS/3XquqKNiV1OqgwVqeVKmWGgiLbiVciVR7JlmwqWLSJfRzA/M
	 xJa6SGEeSUYTl1dKEZMzRMHCw0r9L4c7EVq/KI+z4ncveZR9iTK775rOjxRN5Fi1vb
	 BvZ0oqVzb2XjQ==
X-Cc: Brett Creeley <brett.creeley@amd.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Guenter Roeck <linux@roeck-us.net>,
	Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Randy Dunlap <rdunlap@infradead.org>, Kees Cook <kees@kernel.org>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-hardening@vger.kernel.org,
	Abhijit Gangurde <abhijit.gangurde@amd.com>,
	Arun Kumar Prakash <ArunKumar.Prakash@amd.com>,
	Eric Joyner <eric.joyner@amd.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261103-pr46-b4-v1-2-850ab7fbec19@amd.com>