Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4878183pjb; Mon, 27 Jul 2020 07:25:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlRIKi2u2dsCZ+QfOBkCTaiLTxNA5GZccBfzoH5koCpk27R3d9HAD9QH1Bkumfr+ZgTymh X-Received: by 2002:a17:906:3850:: with SMTP id w16mr22357609ejc.205.1595859943051; Mon, 27 Jul 2020 07:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859943; cv=none; d=google.com; s=arc-20160816; b=z3NLKmWZ8RmLZkXRVP0ctN/JLBluXAjjHPAdrarddmPeLebKS8/9AJw4hRCtqJZRBA 8zCoxd4cAr5gh78MisQ+iMrw66NhhhYAAtPUSe7EKlksuO/SON2xFqSW9cyxG7G5guj3 36eXIqAICO76mIH0YmRx1OzgZU3yeqquw0capBBu+NFcGDEzc+SiPMzbi7dpsIYj6ddT JxKiL0/k0AM43UvEajYNRm9ZTBCjcn6fli1E7mNzz+PmnpUEAPjzwLw1hEecN5Uku0V5 fvx9Kr6Z9T3T1tRjT/JDlBar1q6lrZip3mtSOpHOLzpojFYkFS/scYaoaTAVehT/c+qB TtsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=E8qBvZ5sKEBfacuuuVkKVg1vChiNQgrK/wIvQzbhaUY=; b=iwkXffWd01ECwlE1OQjHBz11eu/6lC4pL3a2plhI068g7UA3MISAI/Gj/XsJ3wOANN cJ3jzUvsa3/mWqRuKFdRhJMs/t73GpFbOgZbvnTViEz2LFVHCeWhiuR8hiolMDwwpbgc xzweIcrtALOpRyvSYqb/+8qpaqmMFCIziNTtpuQjyG7vKHOc5s5R+AcqNd9lm2wTx9sl fQfyA4wCwQ3buDTWk/7ZzUKgFihK85+I/HuVINLDw4GA8NgDQk2+gaTO70xDDLkOQeWr PNpT1NyXrXgB+YMprF0cAU36uvAHbvZCl8SB+qyAvKPVZG0BlC38PmYTSQO26uKdnN7Q 4QXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kz8Bu13D; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si4252999eju.570.2020.07.27.07.25.21; Mon, 27 Jul 2020 07:25:43 -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=@kernel.org header.s=default header.b=kz8Bu13D; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732200AbgG0OYE (ORCPT + 99 others); Mon, 27 Jul 2020 10:24:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:53430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732195AbgG0OYC (ORCPT ); Mon, 27 Jul 2020 10:24:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CE9832075A; Mon, 27 Jul 2020 14:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859842; bh=KHiEmeSDHEk36Ap081u5lxBnesPSBOC4MwK1QNOPB98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kz8Bu13D4wcymZ+eawTMcUX7uW8EKyueGNrhucID9xSBZ3JAYw7Lh2EmhYy3zyJyv sF4PTjxzfD3oWh31uZ6YrwM2MD3VUsGl0WFunMZS2zGwHq95XoWeuhiQy6odILtyD0 zfBGAdpQhVuvMfWnxhEbjIzPUAQSZPnnIWgW5esQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Dietrich , Guenter Roeck , Sasha Levin Subject: [PATCH 5.7 127/179] hwmon: (nct6775) Accept PECI Calibration as temperature source for NCT6798D Date: Mon, 27 Jul 2020 16:05:02 +0200 Message-Id: <20200727134938.836226027@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guenter Roeck [ Upstream commit 8a03746c8baf82e1616f05a1a716d34378dcf780 ] Stefan Dietrich reports invalid temperature source messages on Asus Formula XII Z490. nct6775 nct6775.656: Invalid temperature source 28 at index 0, source register 0x100, temp register 0x73 Debugging suggests that temperature source 28 reports the CPU temperature. Let's assume that temperature sources 28 and 29 reflect "PECI Agent {0,1} Calibration", similar to other chips of the series. Reported-by: Stefan Dietrich Cc: Stefan Dietrich Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/nct6775.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index 7efa6bfef0609..ba9b96973e808 100644 --- a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c @@ -786,13 +786,13 @@ static const char *const nct6798_temp_label[] = { "Agent1 Dimm1", "BYTE_TEMP0", "BYTE_TEMP1", - "", - "", + "PECI Agent 0 Calibration", /* undocumented */ + "PECI Agent 1 Calibration", /* undocumented */ "", "Virtual_TEMP" }; -#define NCT6798_TEMP_MASK 0x8fff0ffe +#define NCT6798_TEMP_MASK 0xbfff0ffe #define NCT6798_VIRT_TEMP_MASK 0x80000c00 /* NCT6102D/NCT6106D specific data */ -- 2.25.1