From nobody Fri Jul 30 13:08:51 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9901912B2B7A for ; Fri, 30 Jul 2021 13:08:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gbnll3rt1z4m9G for ; Fri, 30 Jul 2021 13:08:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 67E97255C8 for ; Fri, 30 Jul 2021 13:08:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 16UD8pFW040673 for ; Fri, 30 Jul 2021 13:08:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16UD8ppo040672 for bugs@FreeBSD.org; Fri, 30 Jul 2021 13:08:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 233764] [amdtemp] does not know correct offset for AMD Family 15h (A8-7600, FX-8300, etc) Tctl Date: Fri, 30 Jul 2021 13:08:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vince@vincentbentley.co.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233764 Vincent Bentley changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vince@vincentbentley.co.uk --- Comment #25 from Vincent Bentley --- I think this issue affects more AMD CPUs. I repurposed an old PC today that= was running Linux with lm-sensors reporting 45 DegC cpu temp at idle yesterday. After installing FreeBSD 12.2, amdtemp is reporting -0.0C . It is summer and the ambient room temperature at the moment is uncomfortable 27 DegC. The CPU is Family 0x10, a 2.6Ghz Athlon II quad core. I read through other bug reports and concluded that temperature measurement= on AMD is proprietary requiring the knowledge of too many undocumented feature= s. I am not expecting a fix, I will just assume that cpu temps are intel only on FreeBSD. I don't have time to see how lm-sensors does it, so in case anyone is interested in my system info, here it is. Base Board Information Manufacturer: Gigabyte Technology Co., Ltd. Product Name: GA-MA785GMT-UD2H https://www.gigabyte.com/Motherboard/GA-MA785GMT-UD2H-rev-10#ov Without opening it up, I am not sure what revision the board is. So assuming 1.0 No core unlock feature on this board! # sysctl -a | grep temperature dev.cpu.3.temperature: -0.0C dev.cpu.2.temperature: -0.0C dev.cpu.1.temperature: -0.0C dev.cpu.0.temperature: -0.0C # sysctl -a | grep amdtemp dev.amdtemp.0.core0.sensor0: -0.0C dev.amdtemp.0.sensor_offset: 0 dev.amdtemp.0.%parent: hostb4 dev.amdtemp.0.%pnpinfo:=20 dev.amdtemp.0.%location:=20 dev.amdtemp.0.%driver: amdtemp dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors dev.amdtemp.%parent:=20 # devinfo -v |grep hostb4 hostb4 pnpinfo vendor=3D0x1022 device=3D0x1203 subvendor=3D0x0000 subdevice=3D0x0000 class=3D0x060000 at slot=3D24 function=3D3 dbsf=3Dpci0:0= :24:3 # pciconf -l | grep 0x1203 hostb4@pci0:0:24:3: class=3D0x060000 card=3D0x00000000 chip=3D0x1203102= 2 rev=3D0x00 hdr=3D0x00 # pciconf -r pci0:0:24:3 0xa4 000c1880 # pciconf -r pci0:0:24:3 0xfc 00100f52=20 # pciconf -r pci0:0:24:3 0x64 34280005=20 From dmesg... FreeBSD 12.2-RELEASE-p7 GENERIC amd64 FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) VT(vga): resolution 640x480 CPU: AMD Athlon(tm) II X4 620 Processor (2611.85-MHz K8-class CPU) Origin=3D"AuthenticAMD" Id=3D0x100f52 Family=3D0x10 Model=3D0x5 Stepp= ing=3D2 =20 Features=3D0x178bfbff Features2=3D0x802009 AMD Features=3D0xee500800 AMD Features2=3D0x37ff SVM: NP,NRIP,NAsids=3D64 TSC: P-state invariant real memory =3D 8589934592 (8192 MB) avail memory =3D 7737597952 (7379 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) --=20 You are receiving this mail because: You are the assignee for the bug.=