Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8570762ybl; Thu, 16 Jan 2020 19:53:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyC+ywtNXbHmz3KhzQRZBHEoVO4ZptxvZBufBWHeuWwzCIsQbPFhsNpBA7idYb1PHL9zW8P X-Received: by 2002:aca:b608:: with SMTP id g8mr2042585oif.142.1579233196832; Thu, 16 Jan 2020 19:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579233196; cv=none; d=google.com; s=arc-20160816; b=WODMTWx4oa/4z4MYYYGkPyNmhLKVJZok9opmGoai8NWBmRXGLyIuPfRMKqmn7TlMkD W8p2qwIB7j3YgnE04IV7pUt82Tq/jpOgiho2wCD4M2/I9hpXzSC7T5nrxl3XkcfZkNYF +F+WhOEzgxguyu8FQiMzW2sAxMpMNnxwKJm9wCCpZQ9fObSlKsFLMHv+b7adEyYW9hh3 wcOpSX3RLgDGUlBZ1Aowl0VvUGwzejTT2cn8WrG3SPddUAO7IIThXFJjD9GswdjE+d0E NDDcU1zA5XqQYSBbIvE1SThycdIcHqUILeLRbL1mW4l6DkMwQ+GlOIePEvUTSW2j8mmk 0lFg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lFmi0DxXN3LQfVQ6vLdLOH7+FXKf60l5t8jOk9ir+hY=; b=ZAj0clokYWS2uvLhQVERmgN0fCrqT6p7+xe0bHcd5jcHKowzD5m99uSAqYq4iyRTQr KSTgEGLn7rmZJMj6+r4mrDY/sZEvWYlNKPKgQJJFjnjCsVz1QPMW+bPX8CTU1kldZsLf iuvHvj7ggmaiJoqTE2VXmmbbAOFJNHqkMjD7dDG3pat6k033vGr/p6Dk6P7Tyb5nN8zj f+pwTy2ybJMEuCChQxJGiE+vCeWLFEAOK8V3Vinb2a5OPPquiMKx22X+QOgzmapg2gTI ULLpdjAgddED0kfJ2dwu38Rk+ILL2ItU/avAzND1UP5NQ5Gl6ZHrw5r095L6wqm7e4uJ n6CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=bSqq+fKF; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si11724410ote.97.2020.01.16.19.53.04; Thu, 16 Jan 2020 19:53:16 -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=pass header.i=@googlemail.com header.s=20161025 header.b=bSqq+fKF; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730499AbgAQAif (ORCPT + 99 others); Thu, 16 Jan 2020 19:38:35 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:35026 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726925AbgAQAie (ORCPT ); Thu, 16 Jan 2020 19:38:34 -0500 Received: by mail-lf1-f65.google.com with SMTP id 15so17022225lfr.2; Thu, 16 Jan 2020 16:38:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lFmi0DxXN3LQfVQ6vLdLOH7+FXKf60l5t8jOk9ir+hY=; b=bSqq+fKFKHllfQv4OkGRC0YVtTDOsOdFgKOM0YLGOeTcrFeEYB/RRnlN8Fc20L42Yg VR6USRmCFpha6wIc+VWy+Jol3GGR10EURTbYmZZnN0XriEeaHR4g/fmndB3eoEwsQdby GsGvRyC+iF0u27znNKyS1zrm8A47+zk3SAh1PZ8tVvI9Bf+ogZe0lst6WWe0EKQ/SZnK Ki0keDTBTvgV6/RycTaInDHmaz8gOYVTGEDEi4gQXdp5vJfOKJy3Un7+aFlzo/RTefc+ keH6eakh4NiLb6I0VR1k+OOr2BBCe7xcaJ4eddPWHY7gph8emqlAu5J/znx0x0jyQTz5 HKfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=lFmi0DxXN3LQfVQ6vLdLOH7+FXKf60l5t8jOk9ir+hY=; b=d/hvUeGNFh5RSQR4/gD2NeVfzwNlq/b7k1S27d3+atcXWuF/z+FDdMr3HmuWW3mZcl 567AnwKldf31IeAk4UQ4Ntl1aO6CCFMMIIyuCJVWr+8HojmF+kH8XwnuNT7H3Z+ha+ww L7XJ0ZIqsZdBF5oKZAv/EOUm7JhguLNZbt3xBEs1VTLHhyI1d8iHp8alL25vNSmJEdY0 1Hf7glyJpMz6825cBYys5gXvqWKoeOdVjEJ6EjRtVT7TgOMhFCFwbQ8yU5SbyD29/3PF V9ydwQOT4AwRyD9SR+ILhUfst69wGCSSC11sfJ2/3/wuiGf9jeurOrs3GiPHXHuw192L CGiw== X-Gm-Message-State: APjAAAUavESn6pRpwoFeEDsEJBhhgxn0Xf2mQeQRHkLvwV5LOiDLX+gi zrZz/aeR62mrXFU2xcZvCdgYc54Q5PJSEMeKW7LBSFYRKuk= X-Received: by 2002:ac2:52a3:: with SMTP id r3mr3855156lfm.189.1579221512601; Thu, 16 Jan 2020 16:38:32 -0800 (PST) MIME-Version: 1.0 References: <20200116141800.9828-1-linux@roeck-us.net> In-Reply-To: <20200116141800.9828-1-linux@roeck-us.net> From: Ken Moffat Date: Fri, 17 Jan 2020 00:38:20 +0000 Message-ID: Subject: Re: [RFT PATCH 0/4] hwmon: k10temp driver improvements To: Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Clemens Ladisch , Jean Delvare , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Jan 2020 at 14:18, Guenter Roeck wrote: > > This patch series implements various improvements for the k10temp driver. > > Patch 1/4 introduces the use of bit operations. > > Patch 2/4 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/4 adds support for reporting Core Complex Die (CCD) temperatures > on Ryzen 3 (Zen2) CPUs. > > Patch 4/4 adds support for reporting core and SoC current and voltage > information on Ryzen CPUs. > > k10temp-pci-00c3 > Adapter: PCI adapter > Vcore: +1.36 V > Vsoc: +1.18 V > Tdie: +86.8=C2=B0C (high =3D +70.0=C2=B0C) > Tctl: +86.8=C2=B0C > Tccd1: +80.0=C2=B0C > Tccd2: +81.8=C2=B0C > Icore: +44.14 A > Isoc: +13.83 A > > The patch series has only been tested with Ryzen 3900 CPUs. Further test > coverage will be necessary before the changes can be applied to the Linux > kernel. I have some Zen1 and Zen1+ here. My Ryzen 3 1300X, applied to 5.5.0-rc5 machine idle, I thought at first the temperature may be a bit low, so I've added other reported temperatures. I now think it is maybe ok. k10temp-pci-00c3 Adapter: PCI adapter Vcore: +1.41 V Vsoc: +0.89 V Tdie: +21.2=C2=B0C (high =3D +70.0=C2=B0C) Tctl: +21.2=C2=B0C Icore: +30.14 A Isoc: +8.66 A SYSTIN: +29.0=C2=B0C (high =3D +0.0=C2=B0C, hyst =3D +0.= 0=C2=B0C) ALARM sensor =3D thermistor CPUTIN: +25.5=C2=B0C (high =3D +80.0=C2=B0C, hyst =3D +75.= 0=C2=B0C) sensor =3D thermistor AUXTIN0: -1.5=C2=B0C sensor =3D thermistor AUXTIN1: +87.0=C2=B0C sensor =3D thermistor AUXTIN2: +23.0=C2=B0C sensor =3D thermistor AUXTIN3: -27.0=C2=B0C sensor =3D thermistor SMBUSMASTER 0: +20.5=C2=B0C After about 2 minutes of make -j8 on kernel, to load it k10temp-pci-00c3 Adapter: PCI adapter Vcore: +1.26 V Vsoc: +0.89 V Tdie: +46.2=C2=B0C (high =3D +70.0=C2=B0C) Tctl: +46.2=C2=B0C Icore: +45.73 A Isoc: +11.18 A SYSTIN: +29.0=C2=B0C (high =3D +0.0=C2=B0C, hyst =3D +0.= 0=C2=B0C) ALARM sensor =3D thermistor CPUTIN: +38.5=C2=B0C (high =3D +80.0=C2=B0C, hyst =3D +75.= 0=C2=B0C) sensor =3D thermistor AUXTIN0: -7.5=C2=B0C sensor =3D thermistor AUXTIN1: +85.0=C2=B0C sensor =3D thermistor AUXTIN2: +23.0=C2=B0C sensor =3D thermistor AUXTIN3: -27.0=C2=B0C sensor =3D thermistor SMBUSMASTER 0: +46.0=C2=B0C So I guess the temperatures *are* in the right area. Interestingly, the Vcore restores to above +1.4V when idle. And my Ryzen 5 3400G (Zen+), applied to 5.4.12, box is idle, also showing the gpu measurements of this APU to confirm the temperature: k10temp-pci-00c3 Adapter: PCI adapter Vcore: +0.94 V Vsoc: +1.09 V Tdie: +34.8=C2=B0C (high =3D +70.0=C2=B0C) Tctl: +34.8=C2=B0C Icore: +6.24 A Isoc: +8.30 A amdgpu-pci-0900 Adapter: PCI adapter vddgfx: N/A vddnb: N/A edge: +34.0=C2=B0C (crit =3D +80.0=C2=B0C, hyst =3D +0.0=C2=B0C) For my Ryzen 5 2500u laptop (Zen1), again showing the gpu: k10temp-pci-00c3 Adapter: PCI adapter Vcore: +0.97 V Vsoc: +0.93 V Tdie: +37.2=C2=B0C (high =3D +70.0=C2=B0C) Tctl: +37.2=C2=B0C Icore: +19.75 A Isoc: +8.66 A amdgpu-pci-0300 Adapter: PCI adapter vddgfx: N/A vddnb: N/A edge: +37.0=C2=B0C (crit =3D +80.0=C2=B0C, hyst =3D +0.0=C2=B0C) Thanks. =C4=B8en --=20 We hope and trust that our values and loyal customers will bear with us in the coming months as we interact synergistically with change management in our striving for excellence. That is our mission.