From patchwork Tue Aug 7 16:17:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 10558861 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9566113AC for ; Tue, 7 Aug 2018 16:17:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 835292A5CC for ; Tue, 7 Aug 2018 16:17:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 776E52A5CF; Tue, 7 Aug 2018 16:17:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 691162A5CC for ; Tue, 7 Aug 2018 16:17:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389119AbeHGSce (ORCPT ); Tue, 7 Aug 2018 14:32:34 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:34584 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731069AbeHGSce (ORCPT ); Tue, 7 Aug 2018 14:32:34 -0400 Received: by mail-pf1-f194.google.com with SMTP id k19-v6so8829018pfi.1 for ; Tue, 07 Aug 2018 09:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=vQw8zwjKZu8aJfC8wZly3uLIDNZ2u4w6j24liLIcCMY=; b=rHE4csDpdY5dgW6+OECe1Tpgtz3RcCQg7XXC6xF8Aqyo61reNvHp9Q6PWk1NWKQbKm VW5EaVEeo+cQP2xAtZ3g0vvwlanUKiPWbFIGfj/c8QDJqSpopA36AQHnrnQuAiJEAVfg 51z9TdZR7x2/SjQEg0Yd7tg721DjX4hwAYfv7P2fPhMuRz/jNuHt5So09Au8kh47y1SQ 0myakEQ5CMKAS2CpQI7rfvefnqlz48Hr39qUti5A8c8ZcYdMJg/TEuLYMdzR1xLayFai 4D/iZE6IdrPafDZFIvrL1jRHzu7sw5vzdxOAdHrbOeENY8P32uAF0eEGVdjKBo8zFmyP As+w== 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; bh=vQw8zwjKZu8aJfC8wZly3uLIDNZ2u4w6j24liLIcCMY=; b=VYwOef489ZQppry9WgYiGsaHhhXbHdCgSY87piToJkWAJBUwYgemulqls6tNkgH6yB ezLOIqS2BBRMMu7wLt8ZV261LJ7S40IGZdcXgbln2vWbvLvEI31L5Bjx9e9YQHseA3nO xqHAzzAP2d8ovoJN8ruW9guiihXbRRORnDR26xHYdtqsgj/HRd8cI4y70K/0hgV/hip3 FJAh/9dRjuqJ2DVt7oEG+iccsN+NIa9IrefwGYiWH4NkaQHI4f8eWu6Q50t7y0tv9nvU 0evAWodfCOiimWBxRl/MiPyKPcbEcb+9IwF5IqMgB8VpC1bDlEZQNurpa0/aQwsTx8Gw TJ/w== X-Gm-Message-State: AOUpUlHYNkApa+cXFKlgFZdEt8hmYXgPpN9mp+AStT8PxzXfZLihghk9 927+0mrZ0D02Fwwap9OpdfBRGI+L X-Google-Smtp-Source: AAOMgpez1So8nTmenbLwKiKAi1QH2Un4xepzKP2OAxqGoDDVqEX1/Sgj8w0to/umv2tAa836L1nKqw== X-Received: by 2002:a63:c20:: with SMTP id b32-v6mr18813383pgl.400.1533658652199; Tue, 07 Aug 2018 09:17:32 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id k64-v6sm5559038pfc.160.2018.08.07.09.17.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Aug 2018 09:17:31 -0700 (PDT) From: Guenter Roeck To: Hardware Monitoring Cc: Jean Delvare , Michael Larabel Subject: [PATCH] k10temp: 27C Offset needed for Threadripper2 Date: Tue, 7 Aug 2018 09:17:28 -0700 Message-Id: <1533658648-29154-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Michael Larabel For at least the Threadripper 2950X and Threadripper 2990WX, it's confirmed a 27 degree offset is needed. --- drivers/hwmon/k10temp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index 17c6460ae351..577e2ede5a1a 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -105,6 +105,8 @@ static const struct tctl_offset tctl_offset_table[] = { { 0x17, "AMD Ryzen Threadripper 1950", 10000 }, { 0x17, "AMD Ryzen Threadripper 1920", 10000 }, { 0x17, "AMD Ryzen Threadripper 1910", 10000 }, + { 0x17, "AMD Ryzen Threadripper 2950X", 27000 }, + { 0x17, "AMD Ryzen Threadripper 2990WX", 27000 }, }; static void read_htcreg_pci(struct pci_dev *pdev, u32 *regval)