Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2021 13:08:51 +0000
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
Message-ID:  <bug-233764-227-UxGEaMIwib@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-233764-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-233764-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233764

Vincent Bentley <vince@vincentbentley.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vince@vincentbentley.co.uk

--- Comment #25 from Vincent Bentley <vince@vincentbentley.co.uk> ---
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,=
MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=3D0x802009<SSE3,MON,CX16,POPCNT>
  AMD
Features=3D0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow=
!>
  AMD
Features2=3D0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS=
,SKINIT,WDT>
  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: <GBT    GBTUACPI>
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233764-227-UxGEaMIwib>