Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7828660ybl; Thu, 16 Jan 2020 06:19:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxgRsvkrAUV1JnQnVLwNcLe8CFNqWmrfIiw7RoN37IXhY4sFhc4G3opsoYSft6hkOoJ200W X-Received: by 2002:a9d:3ea:: with SMTP id f97mr2044089otf.42.1579184367807; Thu, 16 Jan 2020 06:19:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579184367; cv=none; d=google.com; s=arc-20160816; b=xdR3lXKLDreXpMCKpDcg5yBQIqyadKWleZUpIX3Vs6VAL65uJCRNfWh/D/1tyZZo9w Jbp0Kk48R7yYH2Bs4ZFs/m3QaSYBZHrylsu5IFW6JGgLb8Yl8gsixBPWndXYyXHSlk9r 7y+ABWVYbdK6gchPjH1gMzmT4DuP7d7hlrsgbU7P6bbUbl2x9lAC4j1Te89bRq5N/bi5 79M5MJ0ggKT7WR2+hxD5erUNhLkILgCQuqFu6LT4OiirfvUv9p1DEQvqCxtnSXjyq/T6 Il1x3eH2EqVmbC87rSXKYXRxWC7GCkz5MBah6AwUFv0Fv1qpibxbrI/iNXuBltZ4F1k6 aCzg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ei7Y1m250KVmR/VCccXNoI6+dT6cSuShODQGj03wesc=; b=Gi1qn01C8yVIcPUO/qE8XaZPr+8CsYSxcsU+kPxUSIFHvvomcyhTIE+G7DlGzaujUO Rx43M5DwdhR68ALpaXQtam3zS8gEuv7Nr9ZyqSq4tLa/dS5xDLqEKb/L9tO1nGNVvs21 z0bXcghMDT8WujbbXwcTH+Y1rISusDyAL7SfNOmLz/8z33ca+wUgFNk6NoG3HfCoCAxP rcVUAmpaDzjruFyVl8UTYHbLt/PdrM3ZFsY9kc/AMdorvALWks321UaXELTWd5COSEtB j77agf00WjOR5PJ2WOzMtZE0CbFVJQye2Vb5nNuW6plCyc8s6Z7/D3aphqPCue/MabIK Av0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=N1JyAlas; 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 s13si12188961otd.186.2020.01.16.06.19.15; Thu, 16 Jan 2020 06:19:27 -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=N1JyAlas; 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 S1726853AbgAPOSL (ORCPT + 99 others); Thu, 16 Jan 2020 09:18:11 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:45792 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbgAPOSL (ORCPT ); Thu, 16 Jan 2020 09:18:11 -0500 Received: by mail-pg1-f196.google.com with SMTP id b9so9935988pgk.12; Thu, 16 Jan 2020 06:18:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ei7Y1m250KVmR/VCccXNoI6+dT6cSuShODQGj03wesc=; b=N1JyAlas/s7DaRqWbHTMXMTcLR0IrO7WdhG8M2keA8EI5i6d98GelFNadUaHoe1ann 8cVtn9XlOp81IqrCDx6BapxlxQq4A2aZBVoKYijmvBr49p7V4DSl98vYHNJCtxSYiuOA i9Nxgd4N6iBY04SBI0ooamDkNIqxN8GPfmpF3aW9IgHAyBX1QluAPmCEndykt4B+1kr4 HCtcfOcp9z7ANJ4WcbFZwmITY4y9iZnjC+4Fha283BO63QnUdhqPH2zIqT1NMLZkBIsS 5BWrE9KQlwCcvOkIiriJozsG1XBcu0uhFN2QbnPO2cdzIIvJtWY6wFwJ3pGF7ENNVp2p 67cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=ei7Y1m250KVmR/VCccXNoI6+dT6cSuShODQGj03wesc=; b=Z2uyu+55kwQiOE7F+r63t3Aca7ckOQfH77CA+99RmogBVTsDfMltTi7F3PtpX5Ty09 9wJ7yE6//OIL+NYwepHDb2uxCUozIcAa+j4HBzgkvZwKScj6lR/IgIHqAKyEEKFrlLTx qOBsThqPKKPnZHOFt7YtaHVwbHXzxfMFD90hn++045rzS0FDBx+/XW+SSBf+RIQkVz23 AwRzzGRFzixJwBVHGxqIagilp50lW5MHTfhlDakvLdL/MXENwlwbcQ7GCTsR4u09GcLZ /VwnG3y6FL6eL6qwyG6TVYYxOajQxFMfTU9Yf3UxRDYyS44lcU3rjVJ5bB3mFObdUNGI cAhA== X-Gm-Message-State: APjAAAXrtV34cADGKN2Uw5iGVRrocqDiNhU8SxWxSZke5tLIawLzYTId fgexy6ThIkMo2puyYH6ZF7S7WWu5 X-Received: by 2002:a63:7d6:: with SMTP id 205mr40463604pgh.131.1579184289955; Thu, 16 Jan 2020 06:18:09 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id k5sm2490943pju.29.2020.01.16.06.18.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Jan 2020 06:18:08 -0800 (PST) From: Guenter Roeck To: linux-hwmon@vger.kernel.org Cc: Clemens Ladisch , Jean Delvare , linux-kernel@vger.kernel.org, Guenter Roeck Subject: [RFT PATCH 0/4] hwmon: k10temp driver improvements Date: Thu, 16 Jan 2020 06:17:56 -0800 Message-Id: <20200116141800.9828-1-linux@roeck-us.net> X-Mailer: git-send-email 2.17.1 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 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. With all patches in place, output on Ryzen 3900 CPUs looks as follows (with the system under load). k10temp-pci-00c3 Adapter: PCI adapter Vcore: +1.36 V Vsoc: +1.18 V Tdie: +86.8°C (high = +70.0°C) Tctl: +86.8°C Tccd1: +80.0°C Tccd2: +81.8°C 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.