Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2787094pxb; Sun, 3 Oct 2021 05:48:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUL1asaCS/MT8ASp9HiTG4I8FQPRPO9MefmG5ZgkJc+ChLUiqiGMGMk1zgQx8SeLdojrpr X-Received: by 2002:a17:902:6f01:b0:13b:7b8b:84a3 with SMTP id w1-20020a1709026f0100b0013b7b8b84a3mr18363862plk.40.1633265299292; Sun, 03 Oct 2021 05:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633265299; cv=none; d=google.com; s=arc-20160816; b=GOID81d2M9WspDuxrIT9dopMUTfdDMD0fD1W2fr+6/i+lojVbm5KtI3For9JTZ1jem 8mPr0fEw7qVH2MzazUplYZUaSfNAnQAOk8UVLMKGCHlzqjCrRfj46Mb0TW+hZQuV13et 1qlew8Tw04jtP5tIuQSFI/ejss561nbunkS0CNLyZPuQrDy1IN4gYCU12lv5qbB2fock /HTQaL2IF4DeEPmyUpUfQey/PmU8uI5hdf7VuZU/CpRu5ZoHt0hzCD3MW6ogyLs8z1GU vqcSsvl88Sc5HwJd4DzeCYQ8PcjZ+CxH40sGs8oCWUZVYoZcNDdf0SuPEF8nF0tFAGqV FDKQ== 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=Fygd70jXSRg1mCbjFPT93DvbycgIrRZivvAhVKZf8eg=; b=BTztL8NDVmdyF1pHX2NJizJyfYoNA9SEBOYgRx8v3Q+6C+Kc+VaTx/8MW2YWcyLG5d mOyajZp9ky2dKQEJV9/3CfcNoAaup84L0MdC1Mh6CVgOWfqtZa6h6R0/+NBlW0jurkey p0/kMVWPcw3XcRBgCahjGY0i1lkfM/UugleSQlXFbcYn7d5RgrZogFvwI8PooCxEC45T jh95kCb4D7nR/whQIQZ9NF8mEJ/5cznoXhBwFg+mIZNz0jTFzb6LC86KiTuCw0mWOM2M SAV+O6kFbTvegQMaetAxIykaN3GTdJBFy/zjQtfDU0iSujz7ZDzR4p02rGIDqjCxyr4A swTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=WzuWpS3O; 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 q24si393266plr.194.2021.10.03.05.48.05; Sun, 03 Oct 2021 05:48:19 -0700 (PDT) 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=WzuWpS3O; 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 S230248AbhJCMtA (ORCPT + 99 others); Sun, 3 Oct 2021 08:49:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbhJCMsy (ORCPT ); Sun, 3 Oct 2021 08:48:54 -0400 X-Greylist: delayed 3407 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 03 Oct 2021 05:47:06 PDT 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 C3781C0613EC; Sun, 3 Oct 2021 05:47:06 -0700 (PDT) Received: from spock.localnet (unknown [151.237.229.131]) (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 76801C1D1F1; Sun, 3 Oct 2021 14:47:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1633265224; 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=Fygd70jXSRg1mCbjFPT93DvbycgIrRZivvAhVKZf8eg=; b=WzuWpS3OzLk8lyDa9fMWufzl6Afmw29HrYP1Kh96bD7p0yvYASbNbrieLtrzugmVqe9Yyd 2TT6N04LNp/uNPpUS8/BJAMjQBARW7CJMo46Z9U2QKZkS7jLLQr1UdEK414rvwBHzrESoP fe5KuJ6MzoYTzRDhTrB9SF/y2yJfd7w= From: Oleksandr Natalenko To: Denis Pauk Cc: pauk.denis@gmail.com, Eugene Shalygin , matt-testalltheway , Kamil Dudka , Robert Swiecki , Kamil Pietrzak , Igor , Tor Vic , Poezevara , Andy Shevchenko , Guenter Roeck , Jean Delvare , linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: Re: [PATCH 0/3] Update ASUS WMI supported boards. Date: Sun, 03 Oct 2021 14:47:03 +0200 Message-ID: <3507481.XNmkIPAYGC@natalenko.name> In-Reply-To: <6096864.rdmfHhMOLH@natalenko.name> References: <20211002210857.709956-1-pauk.denis@gmail.com> <6096864.rdmfHhMOLH@natalenko.name> 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 Hello. On ned=C4=9Ble 3. =C5=99=C3=ADjna 2021 13:50:12 CEST Oleksandr Natalenko wr= ote: > On sobota 2. =C5=99=C3=ADjna 2021 23:08:53 CEST Denis Pauk wrote: > > Add support to nct6775: > > * PRIME B360-PLUS > > * PRIME X570-PRO > > * ROG CROSSHAIR VIII FORMULA > > * ROG STRIX B550-I GAMING > > * ROG STRIX X570-F GAMING > > * ROG STRIX Z390-E GAMING > > * TUF GAMING B550-PRO > > * TUF GAMING Z490-PLUS > > * TUF GAMING Z490-PLUS (WI-FI) >=20 > Thank you for this submission. >=20 > Do you happen to know whether it can be extended with another ASUS board > which is: >=20 > ``` > Manufacturer: ASUSTeK COMPUTER INC. > Product Name: Pro WS X570-ACE > ``` >=20 > ? >=20 > I've got one, and in case any info or testing is needed, I'd be happy to > contribute. >=20 > Currently, this board is kinda working after adding > `acpi_enforce_resources=3Dlax`, but I assume a proper support is needed > instead. Partially answering to myself, but still need some clarification. I did this on top of your recent submissions: ``` diff --git a/drivers/hwmon/asus_wmi_sensors.c b/drivers/hwmon/ asus_wmi_sensors.c index 6b04fad18891..f6817ec9de29 100644 =2D-- a/drivers/hwmon/asus_wmi_sensors.c +++ b/drivers/hwmon/asus_wmi_sensors.c @@ -35,6 +35,7 @@ #define ASUS_EC_KNOWN_EC_REGISTERS 14 =20 enum asus_wmi_ec_board { + BOARD_PW_X570_A, // Pro WS X570-ACE BOARD_R_C8H, // ROG Crosshair VIII Hero BOARD_R_C8DH, // ROG Crosshair VIII Dark Hero BOARD_R_C8F, // ROG Crosshair VIII Formula @@ -44,6 +45,7 @@ enum asus_wmi_ec_board { =20 /* boards with EC support */ static const char *const asus_wmi_ec_boards_names[] =3D { + [BOARD_PW_X570_A] =3D "Pro WS X570-ACE", [BOARD_R_C8H] =3D "ROG CROSSHAIR VIII HERO", [BOARD_R_C8DH] =3D "ROG CROSSHAIR VIII DARK HERO", [BOARD_R_C8F] =3D "ROG CROSSHAIR VIII FORMULA", @@ -130,6 +132,7 @@ static void asus_wmi_ec_fill_board_sensors(struct=20 asus_wmi_ec_info *ec, int boar ec->nr_registers =3D 0; =20 switch (board) { + case BOARD_PW_X570_A: case BOARD_RS_B550_E_G: case BOARD_RS_X570_E_G: case BOARD_R_C8H: @@ -153,6 +156,7 @@ static void asus_wmi_ec_fill_board_sensors(struct=20 asus_wmi_ec_info *ec, int boar } =20 switch (board) { + case BOARD_PW_X570_A: case BOARD_RS_X570_E_G: case BOARD_R_C8H: case BOARD_R_C8DH: @@ -166,6 +170,7 @@ static void asus_wmi_ec_fill_board_sensors(struct=20 asus_wmi_ec_info *ec, int boar } =20 switch (board) { + case BOARD_PW_X570_A: case BOARD_RS_X570_E_G: case BOARD_R_C8H: case BOARD_R_C8F: diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index ba18c1cbf572..ff28ba70a8b3 100644 =2D-- a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c @@ -5000,6 +5000,7 @@ static int __init nct6775_find(int sioaddr, struct=20 nct6775_sio_data *sio_data) static struct platform_device *pdev[2]; =20 static const char * const asus_wmi_boards[] =3D { + "Pro WS X570-ACE", "PRIME B360-PLUS", "PRIME B460-PLUS", "PRIME X570-PRO", ``` Now, with nct6775 I do not need `acpi_enforce_resources=3Dlax` any more, an= d it=20 works straight away: ``` nct6798-isa-0290 Adapter: ISA adapter in0: 1.06 V (min =3D +0.00 V, max =3D +1.74 V) in1: 1.02 V (min =3D +0.00 V, max =3D +0.00 V) A= LARM in2: 3.38 V (min =3D +0.00 V, max =3D +0.00 V) A= LARM in3: 3.36 V (min =3D +0.00 V, max =3D +0.00 V) A= LARM in4: 1.74 V (min =3D +0.00 V, max =3D +0.00 V) A= LARM in5: 592.00 mV (min =3D +0.00 V, max =3D +0.00 V) A= LARM in6: 1.09 V (min =3D +0.00 V, max =3D +0.00 V) A= LARM in7: 3.38 V (min =3D +0.00 V, max =3D +0.00 V) A= LARM in8: 3.25 V (min =3D +0.00 V, max =3D +0.00 V) A= LARM in9: 888.00 mV (min =3D +0.00 V, max =3D +0.00 V) A= LARM in10: 8.00 mV (min =3D +0.00 V, max =3D +0.00 V) A= LARM in11: 80.00 mV (min =3D +0.00 V, max =3D +0.00 V) A= LARM in12: 1.02 V (min =3D +0.00 V, max =3D +0.00 V) A= LARM in13: 1.35 V (min =3D +0.00 V, max =3D +0.00 V) A= LARM in14: 888.00 mV (min =3D +0.00 V, max =3D +0.00 V) A= LARM fan1: 743 RPM (min =3D 0 RPM) fan2: 366 RPM (min =3D 0 RPM) fan3: 724 RPM (min =3D 0 RPM) fan4: 0 RPM (min =3D 0 RPM) fan7: 0 RPM (min =3D 0 RPM) SYSTIN: +35.0=C2=B0C (high =3D +80.0=C2=B0C, hyst =3D += 75.0=C2=B0C) sensor =3D=20 thermistor CPUTIN: +43.0=C2=B0C (high =3D +80.0=C2=B0C, hyst =3D += 75.0=C2=B0C) sensor =3D=20 thermistor AUXTIN0: +22.0=C2=B0C sensor =3D thermistor AUXTIN1: +127.0=C2=B0C sensor =3D thermistor AUXTIN2: +109.0=C2=B0C sensor =3D thermistor AUXTIN3: +32.0=C2=B0C sensor =3D thermistor PECI Agent 0 Calibration: +44.5=C2=B0C PCH_CHIP_CPU_MAX_TEMP: +0.0=C2=B0C PCH_CHIP_TEMP: +0.0=C2=B0C PCH_CPU_TEMP: +0.0=C2=B0C intrusion0: ALARM intrusion1: OK beep_enable: disabled ``` With asus_wmi_sensors I get this: ``` asuswmiecsensors-isa-0000 Adapter: ISA adapter CPU_Opt: 0 RPM Chipset: 1733 RPM Chipset: +58.0=C2=B0C =20 CPU: +45.0=C2=B0C =20 Motherboard: +35.0=C2=B0C =20 T_Sensor: +216.0=C2=B0C =20 VRM: +34.0=C2=B0C =20 CPU: 7.00 A ``` Everything seems to be good except that `T_Sensor`. Probably, I should excl= ude=20 it on this board? If you are fine with the approach above, I'll post 2 patches for this board. Thanks. =2D-=20 Oleksandr Natalenko (post-factum)