From patchwork Tue Jan 11 16:08:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Shalygin X-Patchwork-Id: 12709998 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F63DC433EF for ; Tue, 11 Jan 2022 16:09:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349797AbiAKQJa (ORCPT ); Tue, 11 Jan 2022 11:09:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349820AbiAKQJ3 (ORCPT ); Tue, 11 Jan 2022 11:09:29 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B81DC061756; Tue, 11 Jan 2022 08:09:29 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id i5so15566509edf.9; Tue, 11 Jan 2022 08:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ytXs+tjsOQIVzwgdEv3Dia185hW2en+OLpnkYRjyU0M=; b=lu8DRZ40VurCmlmYr7Cx3SygD5WwgZoTmOxOi/98LBvp+zZsLzteo1jlY6vqi720rX C56y08ljc0XA7/CFsS6gBeF9Evmf/Q3dvoJdRiGi9S5su3L32UC8kqhU/dHlOcHl103/ 1uOC4tKfqTknlnGaI7iPX3BqKvhDfhKCBJp5pACj9JHNigj8VVhjfH3S86dXnYojZtid V8nkISXFdkrx4Qs8aKQl7HqVXF6pFe859xx6ZZfi5P5E+PloU1eHkkE21PCo96W4sa14 gvRojsXL+JtruZHTL3BXotCE8pCt8WbyAa7cSfrNRTzQ7wwpvOOFeeIy9t++sra6gfU2 Q+1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ytXs+tjsOQIVzwgdEv3Dia185hW2en+OLpnkYRjyU0M=; b=Quj+fxvoH+MqIVobbJBkrigtHMRBF3Blvmo5W2PBz7wrIeQvU17b+RPHxABXoVWqVU K84GKXdxs/TLjLaxhjtElp7vaGdRfWONr84VzVTL8RQPqWFmXEdzlA49MOQ7PGiGs0+Q Z6gesGMEzL5x7Oz3rguZqKSzqsjd9HAKn2E4LY/UU+f8fOH9VJ4hm7Os8H4O7LKRv3ZT P8qcgl5E8IYf373uKnyPTFm3gRGhplUJO+q48xbIlZNQv0sA5fLjF7iZkKZ5Nqa8bOQ9 Jj8H8mpPiFtaJA3HGs5OZXd2qvttX5u36l20SaFv/n0df8j7CZTnBNZVziJT4O/6bdtl 04SA== X-Gm-Message-State: AOAM5307s7zMLvRyoFSMcJU3Hu9zjk6O8j3Z07arzAXhVHo7NrVVupG8 wdr4wixSZsUSYCFqvEI0sOU= X-Google-Smtp-Source: ABdhPJwVXzVciZKE5XTDYrI9CqSDECOGXPwvjlbZsff74PAHll25aMHm6L320ECw2QPYSPyR38WT8Q== X-Received: by 2002:a17:907:3e0b:: with SMTP id hp11mr4117975ejc.584.1641917367618; Tue, 11 Jan 2022 08:09:27 -0800 (PST) Received: from tiger.museclub.art (p200300cf9f0b7c00c3a5ee4155775dd9.dip0.t-ipconnect.de. [2003:cf:9f0b:7c00:c3a5:ee41:5577:5dd9]) by smtp.googlemail.com with ESMTPSA id s4sm3790158ejm.146.2022.01.11.08.09.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 08:09:27 -0800 (PST) From: Eugene Shalygin To: eugene.shalygin@gmail.com 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: [PATCH 2/3] hwmon: (asus-ec-sensors) update documentation Date: Tue, 11 Jan 2022 17:08:53 +0100 Message-Id: <20220111160900.1150050-3-eugene.shalygin@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220111160900.1150050-1-eugene.shalygin@gmail.com> References: <20220111160900.1150050-1-eugene.shalygin@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Signed-off-by: Eugene Shalygin --- Documentation/hwmon/asus_ec_sensors.rst | 51 +++++++++++++++++++++ Documentation/hwmon/asus_wmi_ec_sensors.rst | 38 --------------- 2 files changed, 51 insertions(+), 38 deletions(-) create mode 100644 Documentation/hwmon/asus_ec_sensors.rst delete mode 100644 Documentation/hwmon/asus_wmi_ec_sensors.rst diff --git a/Documentation/hwmon/asus_ec_sensors.rst b/Documentation/hwmon/asus_ec_sensors.rst new file mode 100644 index 000000000000..b8820cd1bd62 --- /dev/null +++ b/Documentation/hwmon/asus_ec_sensors.rst @@ -0,0 +1,51 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Kernel driver asus_ec_sensors +================================= + +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-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 board +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 -================================= - -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 registers, -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