Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5171573ybl; Wed, 22 Jan 2020 11:38:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzrNhqEWsIRjRzGHz0zXN7ade54RUsaCigcLUB6pklajeNhAW6vdCYEIZTt54jBdhxJn0SA X-Received: by 2002:aca:dc04:: with SMTP id t4mr7796296oig.51.1579721928753; Wed, 22 Jan 2020 11:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579721928; cv=none; d=google.com; s=arc-20160816; b=yVxB4QboutA3IU+FX5hxtxwJ6NevACJ0PFvVtTWKnWcYQFoi72Lg7u1/HZnP1WIHN7 gDFl5OlVyDbu440eEACKMdzAaVF5RsqrGSajohAWq7MMONUycQo4ObzJXW2BID1pysH0 RsrA0Ffe4I3MvUscEMrYCiHUrS5XOY/wpoSW0TIvL9V5SCF/PE2t0UC0xxxpRMsBysbv 3ipC4BPI7s+Wv3NaEAcmyu724VgQeqM0Ch2JfZV5CBZxzwB5SRO7mwv9B6c/HnIuKqjG iisRr9pnQWObY3OmJYQ9uS1+L4f7eJAS1egn5Byhq4AmZV55DKvHp+4aQj2ZziGFvSHK IfUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ON8PJR5r3xQ8JwBGbw7JRK/vHHibNpurM3r0DvPXsXk=; b=dJBumdNGJt9kjoQHe9zDDgcYtOB58f0RiBumWOdFzX2wQag/li68m4fo9gXYaDnTZj wiwm1w1BuKHftIKe0BDyJxKsZJe5sz9quSjAuUs7hdnGTmENjIb+Li8EUJC/148V8vlv 1b3RjxIsXMf6M2VRBdlvl9zvFrvTLjPSSFGwObGdO/Sd3xSiZ2r5FMvajqFDLobLd4us hklqiKDhS+zot/94okjUM53UUea6pY5HHoyEHv0HZJtWlDyDTc3IfpXvorOme16wMuTL ZvrIgbVj62++OJooRc1dbg7ILgt6sv6FxTsV6sBZO+571vaWXuiWB0WbtrKq2M82El1o /32Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=u5AVwkUI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f24si12656457oti.243.2020.01.22.11.38.34; Wed, 22 Jan 2020 11:38:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=u5AVwkUI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725975AbgAVThm (ORCPT + 99 others); Wed, 22 Jan 2020 14:37:42 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35074 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgAVThm (ORCPT ); Wed, 22 Jan 2020 14:37:42 -0500 Received: by mail-pl1-f196.google.com with SMTP id g6so229697plt.2; Wed, 22 Jan 2020 11:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ON8PJR5r3xQ8JwBGbw7JRK/vHHibNpurM3r0DvPXsXk=; b=u5AVwkUIzYsH20f10VYhX7TYzZxjZtZ2LQvTi06oFwvi1elLedTCmv/UfqQ9ojUPf3 ef6nwsf0NE08Qxfy/aVpFWGjsWsRh7EZ3RzbjuGTLAJiJbS4U26w9kGcXsbAkhyTyvJc EadThNoAvmuHjFix1nDpw7rjRWwD+kjXH2C8ddq107084BQYRwHo6PE/ETuuz//V26us 34SAtSpfbcm7nwWfQJDb4ZRDHFfJUCgxMuNITEIbekuBQGIKxnPiykp7HCAszFLbpq1x iqbDhoiQVmDpwkdv3kR5OcrxCH/kZMU40YIh+zV1zuvsIM/4fsxZmQr4od8oYxM/3LAS ZQGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=ON8PJR5r3xQ8JwBGbw7JRK/vHHibNpurM3r0DvPXsXk=; b=YMBtEfEk3EZKSz6GimWDjnOsssyJm02AMxo9ilA0PfYTTwO740cfFZUCsgvO/682P3 nmdQDjhvwr4eYP73sJ3jHEHbJBF23OA2mc3bdYEQdQ9vNqXTxNQEz6VK9wgPFWIFoIuD rbVnuPDm4S05xzEA2y+kKOfKU4ucsBJ9z1aPSHmOLFnY9ZRkFxC6ctDr1OEtF363CB+M L7mNg6EEXZWEdo+67sAqolsev8Cdj/nPiBFeG3E9YxrXk4jHJXH1PbEqmmijp2udsgfB vV1Nil3ex1ChvzV+4lszCAf+onQp63KkCqEYS0v2JNM5N8RCkeH1OpOncrfG/dL9HaOr 2ZZg== X-Gm-Message-State: APjAAAXn11g3E6MxffntFu1WJBtR1Z6U7wQCRb3eLe+heDTna0O9yFoN x44u+I9UfQQa8QDDDLXtBg8= X-Received: by 2002:a17:90a:fb4f:: with SMTP id iq15mr53339pjb.86.1579721861802; Wed, 22 Jan 2020 11:37:41 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id u23sm47660318pfm.29.2020.01.22.11.37.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Jan 2020 11:37:41 -0800 (PST) Date: Wed, 22 Jan 2020 11:37:39 -0800 From: Guenter Roeck To: Sebastian Reichel Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Clemens Ladisch , Jean Delvare , Brad Campbell , Ondrej =?utf-8?Q?=C4=8Cerman?= , Bernhard Gebetsberger , Holger Kiehl , Michael Larabel , Jonathan McDowell , Ken Moffat , Darren Salt Subject: Re: [PATCH v4 0/6] hwmon: k10temp driver improvements Message-ID: <20200122193739.GA22685@roeck-us.net> References: <20200122160800.12560-1-linux@roeck-us.net> <20200122190508.tudp3gjscsxyidhw@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200122190508.tudp3gjscsxyidhw@earth.universe> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 22, 2020 at 08:05:08PM +0100, Sebastian Reichel wrote: > Hi, > > The series is > > Tested-by: Sebastian Reichel > Thanks again! Guenter > on 3800X. > > idle: > > k10temp-pci-00c3 > Adapter: PCI adapter > Vcore: 919.00 mV > Vsoc: 1.01 V > Tdie: +41.1?C > Tctl: +41.1?C > Tccd1: +39.8?C > Icore: 0.00 A > Isoc: 4.50 A > > with load: > > k10temp-pci-00c3 > Adapter: PCI adapter > Vcore: 1.29 V > Vsoc: 1.01 V > Tdie: +80.4?C > Tctl: +80.4?C > Tccd1: +78.5?C > Icore: 61.00 A > Isoc: 6.50 A > > debugfs output is also register dumps are also working. > > -- Sebastian > > On Wed, Jan 22, 2020 at 08:07:54AM -0800, Guenter Roeck wrote: > > This patch series implements various improvements for the k10temp driver. > > > > Patch 1/6 introduces the use of bit operations. > > > > Patch 2/6 converts the driver to use the devm_hwmon_device_register_with_info > > API. This not only simplifies the code and reduces its size, it also > > makes the code easier to maintain and enhance. > > > > Patch 3/6 adds support for reporting Core Complex Die (CCD) temperatures > > on Zen2 (Ryzen and Threadripper) CPUs (note that reporting is incomplete > > for Threadripper CPUs - it is known that additional temperature sensors > > exist, but the register locations are unknown). > > > > Patch 4/6 adds support for reporting core and SoC current and voltage > > information on Ryzen CPUs (note: voltage and current measurements for > > Threadripper and EPYC CPUs are known to exist, but register locations > > are unknown, and values are therefore not reported at this time). > > > > Patch 5/6 removes the maximum temperature from Tdie for Ryzen CPUs. > > It is inaccurate, misleading, and it just doesn't make sense to report > > wrong information. > > > > Patch 6/6 adds debugfs files to provide raw thermal and SVI register > > dumps. This may help in the future to identify additional sensors and/or > > to fix problems. > > > > With all patches in place, output on Ryzen 3900X CPUs looks as follows > > (with the system under load). > > > > k10temp-pci-00c3 > > Adapter: PCI adapter > > Vcore: +1.39 V > > Vsoc: +1.18 V > > Tdie: +79.9?C > > Tctl: +79.9?C > > Tccd1: +61.8?C > > Tccd2: +76.5?C > > Icore: +46.00 A > > Isoc: +12.00 A > > > > The voltage and current information is limited to Ryzen CPUs. Voltage > > and current reporting on Threadripper and EPYC CPUs is different, and the > > reported information is either incomplete or wrong. Exclude it for the time > > being; it can always be added if/when more information becomes available. > > > > Tested with the following Ryzen CPUs: > > 1300X A user with this CPU in the system reported somewhat unexpected > > values for Vcore; it isn't entirely if at all clear why that is > > the case. Overall this does not warrant holding up the series. > > 1600 > > 1800X > > 2200G > > 2400G > > 2700 > > 2700X > > 2950X > > 3600X > > 3800X > > 3900X > > 3950X > > 3970X > > EPYC 7302 > > EPYC 7742 > > > > Many thanks to everyone who helped to test this series. > > > > --- > > v4: Normalize current calculations do show 1A / LSB for core current and > > 0.25A / LSB for SoC current. The reported current values are board > > specific and need to be scaled using the configuration file. > > Clarified that the maximum temperature of 70 degrees C (which is no > > longer displayed) was associated to Tctl and not to Tdie. > > Added debugfs support. > > > > v3: Added more Tested-by: tags > > Added detection for 3970X, and report Tccd1 for this CPU. > > > > v2: Added Tested-by: tags as received. > > Don't display voltage and current information for Threadripper and EPYC. > > Stop displaying the fixed (and wrong) maximum temperature of 70 degrees C > > for Tdie on model 17h/18h CPUs.