Received: by 10.223.185.116 with SMTP id b49csp3134512wrg; Mon, 5 Mar 2018 14:56:28 -0800 (PST) X-Google-Smtp-Source: AG47ELs+WaGqE4P9BiesncCxKksYHp6FiHvRkhCBZixl3sVGy0AHqQxQu5psKGA10P+pIIjTIJz9 X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr14555001plb.115.1520290588180; Mon, 05 Mar 2018 14:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520290588; cv=none; d=google.com; s=arc-20160816; b=BaV+Y5gbGYMtfYKpdpMncCcqAG7A9YYVyiVJhf3Fl2+BIV+RVLzkjiQY9H/33zjZ8l qpqRl34p0fHEf1cgH+zcjgvKFFbadsg0JFNtp+7vHuH/L2e4x5JOqfICIqbbuIrrZZh1 rcGMqC3+Ez7BaVWe9juoed58BhyrdYOReXHVV8hkL15HM3gmVqYtMTPjJaGZwMdzIN/7 9eRcxD8zz6GAUXeeKoRUR9LUFJHAomdDXOChb09DHdDG9G+QOTcyRfzoNNzrUGT/LMaY EjAOjJg+3iF2qkgIdiLKm8uDM5mvy7pfoRy+F5ScolAJDN+UKFKrsHsnol03M6luinId kO9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:to:cc:message-id:date :subject:content-transfer-encoding:from:dkim-signature :arc-authentication-results; bh=rxLjc/KvArAddH339hPgbktNOBtW5m3OPNOzvFRmp9I=; b=nPuRJAmqvQPrFSFw9xm3o7iq6CUh43GKl9uBSsT3y1+TTJSREY+c6BjyyNWWzRGMLR UfjIb9bLU1dt+BXnueG9+zUwn0CKAl23Cw/r4zlul/SoU1d/uAg4jvgrz5kr/TGEK/cv oEVbJTRPnN4F29MunbhfqAxtOeKhdDYecfTtX3aQ4aOPpOWg9iUnrGhFs05REH2L3t97 jlSox2srzylVKzyJfHbqbEa3QbHU1oHSU+EWgryrRklEmCB6I5DmctGjaPY52KGzn0+y njGThxPScYbckP5vuPbDTRV17cVL1M8hoLD9TfPcyukWohZCsGIAWSho4ThP1tHXLJwB Xa3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@exactcode.de header.s=x header.b=JPT0Enm6; 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 w66si10912291pfi.23.2018.03.05.14.56.14; Mon, 05 Mar 2018 14:56:28 -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=temperror (no key for signature) header.i=@exactcode.de header.s=x header.b=JPT0Enm6; 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 S932571AbeCEWzV (ORCPT + 99 others); Mon, 5 Mar 2018 17:55:21 -0500 Received: from mx.exactcode.de ([144.76.154.42]:47396 "EHLO mx.exactcode.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752508AbeCEWzU (ORCPT ); Mon, 5 Mar 2018 17:55:20 -0500 X-Greylist: delayed 999 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 Mar 2018 17:55:19 EST DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=exactcode.de; s=x; h=Mime-Version:To:Cc:Message-Id:Date:Subject:Content-Transfer-Encoding:Content-Type:From; bh=rxLjc/KvArAddH339hPgbktNOBtW5m3OPNOzvFRmp9I=; b=JPT0Enm6PBFC3ARVvZFtbOW+3f+SpJMHJp3AJU+rRC/bW/90C0ghduiCBKxbAFIV7agoSk9BHn509MigL1xIG2stbtOMh7cSTiePr0/cCiqT38aM3Wakb+M1z3ydID56C39srLn9EExSq5TBY9rYmi5UYoKVAam4GOVikQUT0Rw=; Received: from exactco.de ([90.187.5.221]) by mx.exactcode.de with esmtp (Exim 4.82) (envelope-from ) id 1esylF-0007gt-3t; Mon, 05 Mar 2018 22:39:13 +0000 Received: from ip5b40180c.dynamic.kabel-deutschland.de ([91.64.24.12] helo=[192.168.0.15]) by exactco.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.54) id 1esxjn-0000An-Sx; Mon, 05 Mar 2018 21:33:49 +0000 From: =?iso-8859-1?Q?Ren=E9_Rebe?= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [PATCH] k10temp support for AMD Ryzen w/ Vega gfx Date: Mon, 5 Mar 2018 23:38:24 +0100 Message-Id: <1769691A-DD1D-4641-B7BA-62C1BA571EBF@exactcode.de> Cc: Clemens Ladisch , linux-kernel@vger.kernel.org To: linux-hwmon@vger.kernel.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-Spam-Score: -4.1 (----) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=E9 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.vanilla 2018-03-05 = 22:22:30.974331180 +0000 +++ linux-4.15/drivers/hwmon/k10temp.c 2018-03-05 22:24:17.186327291 = +0000 @@ -40,6 +40,10 @@ #define PCI_DEVICE_ID_AMD_17H_DF_F3 0x1463 #endif =20 +#ifndef PCI_DEVICE_ID_AMD_17H_RR_NB +#define PCI_DEVICE_ID_AMD_17H_RR_NB 0x15d0 +#endif + /* CPUID function 0x80000001, ebx */ #define CPUID_PKGTYPE_MASK 0xf0000000 #define CPUID_PKGTYPE_F 0x00000000 @@ -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 = }, }; =20 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); --=20 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