Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2512603imm; Thu, 7 Jun 2018 11:55:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKItwS8iP4SMq9p10AQmTQKAv4d1LIB3LkWg61R0uuh3MpihUFcW9mVxHLnsxW574W51hxn7 X-Received: by 2002:a17:902:8341:: with SMTP id z1-v6mr3249095pln.40.1528397751218; Thu, 07 Jun 2018 11:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528397751; cv=none; d=google.com; s=arc-20160816; b=CjWBPksXBDYPiNl9eMDFdmcMQsSF34fBou47tMGe76mkQci5DeJ/DigRU6D4Gf07q2 C+HGAwq8f1A2Igj8bY/kM9AtoUgUvupiAwvqc9YHdGEnjIqy7LORTvikDkG6laSo9rVn VlWuUAhGG0f/pcBm+w7RFoRE+5BjV6pu8NRqggBbeXgVLRQV5jkbODtzVCFM/0cKqYma jR6mVYfoK6OkYOvJ+oX5WErdz9+P1hHIQYpXWnyy5MWDVkQ0G5086uHSDdmJrfXMWPov eRNeKp+2kEk2IFRrAjrE0bc9U1uf+w1iiu2re3EeeLWFapl0qGjYZ68mLL9V1GN2tqGE Qvtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=gf9Ynfbx35EOav16bCLBi9cQ8oxP+dr54isRhPoN1wQ=; b=kep8CYyEhuMkOz1dUbekTz9iQ/Rb4+8oCXR6sbn99tL3a2Wwl4oxl1Cq/+HMMQiECS /ob3hkVgu8ko3J9XdnGkOW4yejD4D5gVSCG3Z6HlK/jM811FZVNEyOHZGufNiDNql48b Lz5qE0WybDlZi+fCDkFhFLmr5Kj/O4NPYA5KBPm1dIupjbph6zexeYoCoIUsyMXdHEgd quKxqe8PaENFGsQD+2yviwee0/LRbMPRVik+mbyos1v6IiqIL4+0UeC+N37tWF2Lxo9V KG4OZG7mF9SwNllNkNUoFfd6WwnJlow/982jqfT/MRqH8h0RB2HurfmuJeMiFZnAv1HK VBkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=yViGDaBp; 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 f13-v6si43303609pgp.168.2018.06.07.11.55.37; Thu, 07 Jun 2018 11:55:51 -0700 (PDT) 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=@roeck-us.net header.s=default header.b=yViGDaBp; 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 S934478AbeFGPtU (ORCPT + 99 others); Thu, 7 Jun 2018 11:49:20 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:47875 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932779AbeFGPtR (ORCPT ); Thu, 7 Jun 2018 11:49:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gf9Ynfbx35EOav16bCLBi9cQ8oxP+dr54isRhPoN1wQ=; b=yViGDaBpcZqBjnMk0fM15n1EZK XRRUUny6BwwNpCOyTkcqotbIL7oen9EWMYExayYT4SyWT/P5H50ykwAOPkhnDiq44pgRoimHIY0gB HvrwC/JrvkgRIRDtu5utG0rg+oiHy8F3qf37fXyy0dv+kpmEEfyhneGvM63+JukaLWDVGaYVMArVH pydwCmj9g7shYTFgq59lGvV9XbBxSsX+b5Nels4XsfIVCK/MmCAET3V1OyGK/BWHJ2joqkxl4AH/C ooGeDZxvRd5XLdT6lLXTSnkpEPNUB/7bMpRLYXoRtTEynsZqFmOL+hHLT+tOQRxN3XTvlq+I/0xAe ekzMEV5A==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:41400 helo=localhost) by bh-25.webhostbox.net with esmtpa (Exim 4.89) (envelope-from ) id 1fQxA4-002OHT-9t; Thu, 07 Jun 2018 15:49:16 +0000 Date: Thu, 7 Jun 2018 08:49:15 -0700 From: Guenter Roeck To: Kai Heng Feng Cc: Chris Ouellet , linux-hwmon@vger.kernel.org, Linux Kernel Mailing List Subject: Re: Ryzen 2700 Temperature offset? Message-ID: <20180607154915.GA7061@roeck-us.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 07, 2018 at 11:03:13AM +0800, Kai Heng Feng wrote: > Hi Guenter, > > A user thinks the Ryzen 2700 temperature may not be correct [1]. > Can you take a look when you have time? Thanks. > > Also, where can I find all these temperature offsets? I googled but with no > result. > Problem is that the offsets are not documented in public, making it difficult to find out. For Ryzen 2700, there is currently no offset configured; I was told that there is none. For Ryzen 2700X, the offset is 10 degrees C. > [1] https://bugs.launchpad.net/bugs/1774817 The key here is the commit mentioned in the log (1b59788979acd). It does not only adjust the per-CPU offset, but also takes a configurable offset of 49 degrees C into account. You'll need to apply that patch in your kernel, or the temperature may be off by 49 degrees C. Hope this helps. If not, please let me know. Note that I am travelling; responses may be delayed. Guenter