Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4192638pxb; Tue, 25 Jan 2022 05:31:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyS/YpMvmB1yv0UDVhmZVI4jhMIfKgDGLF4ihn9tfQKp4wJEHRq3eTl4DnQKfkP+JCBfPmq X-Received: by 2002:a17:907:72d2:: with SMTP id du18mr8274742ejc.524.1643117498219; Tue, 25 Jan 2022 05:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643117498; cv=none; d=google.com; s=arc-20160816; b=BP1Ma6rlw0pixuxxa5W3Qr2UI/4fZ/Sow6Ptm/YF357ilCdHkiII9Zny3MeaigBmBZ C0XnLGDlwSamQUfPfR+t9vw/dBIwIq+UZgJvXUQyM+kE2ldwwqC/OVTlF0oSHq5SI3u4 p1g3FlIXQ/QMb3+X0itr7TWrgTWiPeczwZUNFVqmMf85EpCpJh5HGhDQ4zVqMNnlpjVD sqn7KBtjiheJNU9+LsokDfuKnsCMSXgXirGlFb+1i/5X4UOr5Mh1r4VsxrSQBdn9D/4Y fBwzm+MisO878sKFUyhMuSHQBtwpj+0NuISk6uEWafajFuIiU6igr4HBgZ7C9U9GVdaa CJpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DNGmSgajX3AV7tac/NHRSny7ZKSXgCu8THN38jSPcJY=; b=LUg5fQZt2POUh5cWN4Rhg0pMTGbj9pLdfnM3XU32jVj4fr8DDZ1K/Pt00DGtQO+K8M TKiENgyUYOCJ3ACwOSRZX6+S4uO5bLVBx7IFkNEkb3HYPIePdl9OwYQ885jCgbiKrxdx kSefjqYeXglVa2wTHTndSB+eL2MmHGaO0e/3ckpsB9iBMFmtMxW/2mlxWh/4q+jc6ano fAnQPOHjV7lLKfgwpiwudCtmbbf2SSmxHq/4c+Dh0/jA///KEePhQG9boKSMXDPCYlmP qInC34h4RYDvDUxS4QDFfi+z7qZpRjTwBAy26bh/i+MxeYAbMebzZF4wdb+0v2BSYZtv 6K3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=uVvpTJEN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si4586642ede.419.2022.01.25.05.31.01; Tue, 25 Jan 2022 05:31:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=uVvpTJEN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1457217AbiAYJOn (ORCPT + 99 others); Tue, 25 Jan 2022 04:14:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1455337AbiAYJE0 (ORCPT ); Tue, 25 Jan 2022 04:04:26 -0500 Received: from vulcan.natalenko.name (vulcan.natalenko.name [IPv6:2001:19f0:6c00:8846:5400:ff:fe0c:dfa0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 574A3C061362; Tue, 25 Jan 2022 00:48:21 -0800 (PST) Received: from spock.localnet (unknown [83.148.33.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vulcan.natalenko.name (Postfix) with ESMTPSA id F0923D845E3; Tue, 25 Jan 2022 09:48:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1643100497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DNGmSgajX3AV7tac/NHRSny7ZKSXgCu8THN38jSPcJY=; b=uVvpTJENujv89DwH1ydCqmX64nzGHF10t5qSormK78RR5uxmWBRxvlAfQ21pylsjVvnGcj aJkXQBxb0eQeHVnNpV92VFOlITkBIXclTAiMTKakcLGVGwF+iYqN8UZacbblUxxCdtzqZJ K6KFOu0kypEE5l0r6etqlVkwq6mr7Mk= From: Oleksandr Natalenko To: Eugene Shalygin Cc: andy.shevchenko@gmail.com, pauk.denis@gmail.com, Jean Delvare , Guenter Roeck , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [ASUS EC Sensors v8 2/3] hwmon: (asus-ec-sensors) update documentation Date: Tue, 25 Jan 2022 09:48:15 +0100 Message-ID: <5534652.DvuYhMxLoT@natalenko.name> In-Reply-To: <20220124015658.687309-3-eugene.shalygin@gmail.com> References: <20220124015658.687309-1-eugene.shalygin@gmail.com> <20220124015658.687309-3-eugene.shalygin@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On pond=C4=9Bl=C3=AD 24. ledna 2022 2:56:44 CET Eugene Shalygin wrote: > Signed-off-by: Eugene Shalygin I believe some commit message is desired here. > --- > Documentation/hwmon/asus_ec_sensors.rst | 52 +++++++++++++++++++++ > Documentation/hwmon/asus_wmi_ec_sensors.rst | 38 --------------- > 2 files changed, 52 insertions(+), 38 deletions(-) > create mode 100644 Documentation/hwmon/asus_ec_sensors.rst > delete mode 100644 Documentation/hwmon/asus_wmi_ec_sensors.rst >=20 > diff --git a/Documentation/hwmon/asus_ec_sensors.rst b/Documentation/hwmo= n/asus_ec_sensors.rst > new file mode 100644 > index 000000000000..b12ac7ebeb1a > --- /dev/null > +++ b/Documentation/hwmon/asus_ec_sensors.rst > @@ -0,0 +1,52 @@ > +.. SPDX-License-Identifier: GPL-2.0-or-later > + > +Kernel driver asus_ec_sensors > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Supported boards: > + * PRIME X570-PRO, > + * Pro WS X570-ACE, > + * ROG CROSSHAIR VIII DARK HERO, > + * ROG CROSSHAIR VIII FORMULA, > + * ROG CROSSHAIR VIII HERO, > + * ROG CROSSHAIR VIII IMPACT, > + * ROG STRIX B550-E GAMING, > + * ROG STRIX B550-I GAMING, > + * ROG STRIX X570-E GAMING, > + * ROG STRIX X570-F GAMING, > + * ROG STRIX X570-I GAMING > + > +Authors: > + - Eugene Shalygin > + > +Description: > +------------ > +ASUS mainboards publish hardware monitoring information via Super I/O > +chip and the ACPI embedded controller (EC) registers. Some of the sensors > +are only available via the EC. > + > +The driver is aware of and reads the following sensors: > + > +1. Chipset (PCH) temperature > +2. CPU package temperature > +3. Motherboard temperature > +4. Readings from the T_Sensor header > +5. VRM temperature > +6. CPU_Opt fan RPM > +7. VRM heatsink fan RPM > +8. Chipset fan RPM > +9. Readings from the "Water flow meter" header (RPM) > +10. Readings from the "Water In" and "Water Out" temperature headers > +11. CPU current > + > +Sensor values are read from EC registers, and to avoid race with the boa= rd > +firmware the driver acquires ACPI mutex, the one used by the WMI when its > +methods access the EC. > + > +Module Parameters > +----------------- > + * mutex_path: string > + The driver holds path to the ACPI mutex for each board (actually, > + the path is mostly identical for them). If ASUS changes this path > + in a future BIOS update, this parameter can be used to override > + the stored in the driver value until it gets updated. > diff --git a/Documentation/hwmon/asus_wmi_ec_sensors.rst b/Documentation/= hwmon/asus_wmi_ec_sensors.rst > deleted file mode 100644 > index 1b287f229e86..000000000000 > --- a/Documentation/hwmon/asus_wmi_ec_sensors.rst > +++ /dev/null > @@ -1,38 +0,0 @@ > -.. SPDX-License-Identifier: GPL-2.0-or-later > - > -Kernel driver asus_wmi_ec_sensors > -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > - > -Supported boards: > - * PRIME X570-PRO, > - * Pro WS X570-ACE, > - * ROG CROSSHAIR VIII DARK HERO, > - * ROG CROSSHAIR VIII FORMULA, > - * ROG CROSSHAIR VIII HERO, > - * ROG STRIX B550-E GAMING, > - * ROG STRIX B550-I GAMING, > - * ROG STRIX X570-E GAMING. > - > -Authors: > - - Eugene Shalygin > - > -Description: > ------------- > -ASUS mainboards publish hardware monitoring information via Super I/O > -chip and the ACPI embedded controller (EC) registers. Some of the sensors > -are only available via the EC. > - > -ASUS WMI interface provides a method (BREC) to read data from EC registe= rs, > -which is utilized by this driver to publish those sensor readings to the > -HWMON system. The driver is aware of and reads the following sensors: > - > -1. Chipset (PCH) temperature > -2. CPU package temperature > -3. Motherboard temperature > -4. Readings from the T_Sensor header > -5. VRM temperature > -6. CPU_Opt fan RPM > -7. Chipset fan RPM > -8. Readings from the "Water flow meter" header (RPM) > -9. Readings from the "Water In" and "Water Out" temperature headers > -10. CPU current >=20 =2D-=20 Oleksandr Natalenko (post-factum)