Received: by 10.223.185.116 with SMTP id b49csp3624102wrg; Tue, 6 Mar 2018 02:08:49 -0800 (PST) X-Google-Smtp-Source: AG47ELu2l/zKcyV/4b+ysqNs9xUUdVH/rWhpMPJB6rWn6SulUjCw1cPwQ2lVHchYrJXqzcVdRp8g X-Received: by 10.99.66.135 with SMTP id p129mr14963239pga.220.1520330929036; Tue, 06 Mar 2018 02:08:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520330929; cv=none; d=google.com; s=arc-20160816; b=lBrGewd2tEEdb60fOV/5QaG/U737HaEDjj8OCkvmK3zdY1hw0xmCYN8OQ8ZwBA+pFK QcE1fYUf5vqJNutepQLX3S1gL8SgK5tEkNJdRZYZDyYSbEtLx86cEdx2uCJptSxGWJJQ 1aZNt0n9avWfVgNdafYnZr8CaygzerQDsXaJ7aLmg74fwZ83Azcyez3ja8LgkXjU8V1C m+r+YOZZt3MNiSSoS8KGqo9fDRO9AaEMjqKafus1qhaehqKtY0Igw7QB50NzF2CuaZ4D dgSl+A+hNXTVkNdysJTvlJ3ADfOQbdppV3hZObZq1eq5O74QIJJFw9h2OHTogUypPpwi VjNA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=WrmFvbKFNLE4gN+Rti75c1N29QP11ZzxmmT7cUWRi4w=; b=hJQylqATlIkFE82syFYbq9Ir8AdBv26NFBqSj0qMn3xdXecIPu9RLGCKHlv6lF8qGM 0bWIlJZ78AmvbObway/nlerAeJVRsRIXu8sMtxSZEY4THozkzRXEjo4BvFiBGmkBM6CW r+Q1+0KSFOfEH39W9yu91gbM3Jo26ok4qWxRUb7cprTBe36B3xuc+xZ4eA5UfRliZtOA fzKrFomfrFRhDvJXFW6vt0SDfa7JCfxAFlB4NPQHf1Y7i00a3fZxXo2mgKsF4wjkhGJh 7ctdi8xAg2B/2IA8Bdbb8kScEHW6cpR0hlTQDPNGJV52b0ytj2kW76UmaXjvxvIg30MZ UMlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Iw90Er7j; 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 z13si8680912pgv.473.2018.03.06.02.08.34; Tue, 06 Mar 2018 02:08: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=Iw90Er7j; 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 S1753418AbeCFKGt (ORCPT + 99 others); Tue, 6 Mar 2018 05:06:49 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:42327 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753366AbeCFKGr (ORCPT ); Tue, 6 Mar 2018 05:06:47 -0500 Received: by mail-pg0-f65.google.com with SMTP id y8so8074770pgr.9; Tue, 06 Mar 2018 02:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WrmFvbKFNLE4gN+Rti75c1N29QP11ZzxmmT7cUWRi4w=; b=Iw90Er7jqa/Z+xsd7IVip+zX0jhdeAWDewSvHY5mxiHh4KXJFGoB7/1fJkilux6BRY JYIq+GtE5xbPTy4VWlPl4XhPA8hnGHtNGRbAzFeNEQItUeFe5frQ5SWSs70NCKF4KXgj qqQv6h5cAosfuFmgybOMTjbQmRgrv3G1BtmjP84kScweNDG2M5Gbvt5uGkFbx8I67tUA lKUoxNL9DhAbp8w20J6CxOvJIHzulNcYpHqKBA/Y/yB6RNKg6izJ4N18Zqah4MhI+CXo gq6wsRzbUhEA7Xx4+FXMMwBK+GOdiEBrfxLDvoK1tx8L4G95+oD1t7iADdzNMinaoxTe XBxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WrmFvbKFNLE4gN+Rti75c1N29QP11ZzxmmT7cUWRi4w=; b=lX9wbijEU9BuLxLAswQd6py5OC3e6m3hk+XqLkI94brUikk6NIYRl3fkH5PTPGIfRs +okr5GMMnitQESHTqS4u7mxa9DmPA2zLmHfToNqyjhlh27v15zPLQM8S1T0xjYDxHR62 /PMgNWcXDuKJPaY4hMFT57+6LpmBiKIrNWMmnDrfOVBdOkDAhJVQ9GIIOp6bDBJjEogW ESk3LlB5yAKcSQsOJzwUREjrUO/cvzg8f6J9Fs/t6DPSqjct3mzSXWt+CZVEJt9erJCE DI2K7Z+A69dRTs98POZkxo5+BV9UsPQp/rNJexx7M3dTQfBFTre1Vo0BAx62JuG3wryj Gbcg== X-Gm-Message-State: APf1xPCUwOMp6lspbcRSKTUr6jt7fCYhPBC59hQJV4/pxFLd7wpanO4o ZEGkaMXbTBWaZ31u0toLrte6NJG2 X-Received: by 10.98.37.132 with SMTP id l126mr18709547pfl.102.1520330806748; Tue, 06 Mar 2018 02:06:46 -0800 (PST) Received: from server.roeck-us.net (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id y18sm27963922pfl.146.2018.03.06.02.06.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 02:06:46 -0800 (PST) Subject: Re: [PATCH] k10temp support for AMD Ryzen w/ Vega gfx To: =?UTF-8?Q?Ren=c3=a9_Rebe?= Cc: linux-hwmon@vger.kernel.org, Clemens Ladisch , linux-kernel@vger.kernel.org References: <1769691A-DD1D-4641-B7BA-62C1BA571EBF@exactcode.de> <20180305230350.GA13099@roeck-us.net> From: Guenter Roeck Message-ID: <4938bed8-e612-959a-1b72-29dba0839ceb@roeck-us.net> Date: Tue, 6 Mar 2018 02:06:45 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/05/2018 10:48 PM, Ren? Rebe wrote: > Hi, > > On 06 Mar 2018, at 00:03, Guenter Roeck > wrote: > >> On Mon, Mar 05, 2018 at 11:38:24PM +0100, Ren? Rebe wrote: >>> Hi, >>> >>> This enables k10temp for the new AMD Ryzen APUs w/ Vega Mobile Gfx. >>> Tested on Ryzen 5 2500U, the temperature looked plausible. >>> >>> ?Signed-off-by: Ren? Rebe > >>> >>> PS: 1st RFC - might get white-space damaged, will resend when ACKed. >>> Sorry my Xemacs/Mew broke. >>> >>> --- linux-4.15/drivers/hwmon/k10temp.c.vanilla2018-03-05 22:22:30.974331180 +0000 >>> +++ linux-4.15/drivers/hwmon/k10temp.c2018-03-05 22:24:17.186327291 +0000 >>> @@ -40,6 +40,10 @@ >>> #define PCI_DEVICE_ID_AMD_17H_DF_F30x1463 >>> #endif >>> >>> +#ifndef PCI_DEVICE_ID_AMD_17H_RR_NB >>> +#define PCI_DEVICE_ID_AMD_17H_RR_NB0x15d0 >>> +#endif >>> + >>> /* CPUID function 0x80000001, ebx */ >>> #define CPUID_PKGTYPE_MASK0xf0000000 >>> #define CPUID_PKGTYPE_F0x00000000 >>> @@ -89,6 +93,8 @@ >>> { 0x17, "AMD Ryzen Threadripper 1950", 10000 }, >>> { 0x17, "AMD Ryzen Threadripper 1920", 10000 }, >>> { 0x17, "AMD Ryzen Threadripper 1910", 10000 }, >>> +{ 0x17, "AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx", 20000 }, >>> +{ 0x17, "AMD Ryzen 7 2700U with Radeon Vega Mobile Gfx", 20000 }, >> >> Do you have a confirmation that the temperature offset is correct ? > > I tried all of the three currently used offsets and this was looked the most plausible. > For me having some indication of temperature is better than having none at all. > Maybe some contact at AMD can shed some light on it, too? > Per the information I got (not from AMD), those CPUs are not supposed to have an offset. Does the system have a Super-IO chip ? If so, what temperature does it report ? Also, what temperatures do you see with 0 offset ? Thanks, Guenter >> Thanks, >> Guenter >> >>> }; >>> >>> static void read_tempreg_pci(struct pci_dev *pdev, u32 *regval) >>> @@ -289,6 +2944,7 @@ >>> { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F3) }, >>> { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_M30H_NB_F3) }, >>> { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_DF_F3) }, >>> +{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_RR_NB) }, >>> {} >>> }; >>> MODULE_DEVICE_TABLE(pci, k10temp_id_table); >>> >>> -- >>> ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin >>> http://exactcode.com | http://exactscan.com | http://ocrkit.com | http://t2-project.org | http://rene.rebe.de >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > ?ExactCODE GmbH,?Lietzenburger Str. 42, DE-10789 Berlin > http://exactcode.com ?| http://exactscan.com ?| http://ocrkit.com ?| http://t2-project.org ?| http://rene.rebe.de >