From owner-freebsd-current@freebsd.org Thu Feb 13 06:01:01 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7976924DF86 for ; Thu, 13 Feb 2020 06:01:01 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48J5V42Gz9z4WWZ for ; Thu, 13 Feb 2020 06:00:59 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id 01D60a3M004277 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Thu, 13 Feb 2020 07:00:39 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: Which AMD CPUs are supported -- temperature To: freebsd-current@freebsd.org, bsd-lists@BSDforge.com References: <76406a01dfa1b78dee51f7c4924eb822@udns.ultimatedns.net> From: Andrea Venturoli Message-ID: <0cb099c9-2a93-d244-ba72-a517dc16fe37@netfence.it> Date: Thu, 13 Feb 2020 07:00:36 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <76406a01dfa1b78dee51f7c4924eb822@udns.ultimatedns.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48J5V42Gz9z4WWZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=netfence.it; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 2.44.121.52 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-4.37 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:2.44.121.52]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; IP_SCORE(-1.57)[ip: (-7.83), ipnet: 2.44.0.0/16(-3.91), asn: 30722(3.86), country: IT(0.03)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:30722, ipnet:2.44.0.0/16, country:IT]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2020 06:01:01 -0000 On 2020-02-12 23:17, Chris wrote: > # dmidecode -t4 | grep AMD > Manufacturer: AMD > Version: AMD Athlon(tm) II X4 630 Processor > # sysctl -a | grep tempe > dev.cpu.3.temperature: 33.5C > dev.cpu.2.temperature: 33.5C > dev.cpu.1.temperature: 33.5C > dev.cpu.0.temperature: 33.5C Also works here: > cat /var/run/dmesg.boot > ... > CPU: AMD Phenom(tm) II X4 965 Processor (3415.38-MHz K8-class CPU) > sysctl -a|grep temp > dev.cpu.3.temperature: 43.6C > dev.cpu.2.temperature: 43.6C > dev.cpu.1.temperature: 43.6C > dev.cpu.0.temperature: 43.6C > > # # # BROKEN > # dmidecode -t4 | grep AMD > Manufacturer: AuthenticAMD > Version: AMD Athlon(tm) X4 860K Quad Core Processor > # sysctl -a | grep tempe > dev.cpu.3.temperature: 13.1C > dev.cpu.2.temperature: 13.1C > dev.cpu.1.temperature: 13.1C > dev.cpu.0.temperature: 13.1C > > All but one is in the same class. But one in that same > class doesn't work. The FX class also works fine. > I'm puzzled... :( This reminds me of my first Ryzen 2: 11.3 would not get the temperature right, but 12.1 did. If I understand correctly, AMD just gives a temperature reading in the same way on all CPUs, but different models require different adjustment to that value (with some offset and/or other calculations); see /usr/src/sys/dev/amdtemp/amdtemp.c. Perhaps this CPU needs a formula which FreeBSD's driver does not have? Of course this is a wild guess, as I have not access to the specs. bye av.