Hi! Im running FreeBSD 9.1 on a AMD APU machine: CPU: AMD E-450 APU with Radeon(tm) HD Graphics (1699.36-MHz K8-class CPU) FreeBSD 9.1-RELEASE-p1 #0 r243379M: Fri Mar 8 23:16:44 CET 2013 root at pean.org:/usr/obj/usr/src/sys/GENERIC I try to use amdtemp(4) to read the temperature of this CPU but it doesnt seem to detect the CPU. The manual states that it should support K8-class. The amdtemp.c isnt huge so maybe it is very simple to make it work? Best Regards Peter Ankerst?l.
On Wed, 13 Mar 2013 10:17:51 +0100 Peter Ankerst?l <peter at pean.org> wrote:> Hi! > > Im running FreeBSD 9.1 on a AMD APU machine: > CPU: AMD E-450 APU with Radeon(tm) HD Graphics (1699.36-MHz K8-class > CPU) > > FreeBSD 9.1-RELEASE-p1 #0 r243379M: Fri Mar 8 23:16:44 CET 2013 > root at pean.org:/usr/obj/usr/src/sys/GENERIC > > I try to use amdtemp(4) to read the temperature of this CPU but it > doesnt seem to detect the CPU. The manual states that it should > support K8-class. > > The amdtemp.c isnt huge so maybe it is very simple to make it work? > > Best Regards > Peter Ankerst?l. >Hi, you need to try amdtemp.c from CURRENT aka HEAD. I did it for both E-350 and C-60 CPU and it works for me. If you need something more to test it, I can help, but it is really easy. Regards, Milan
On Wed, Mar 13, 2013 at 10:17:51AM +0100, Peter Ankerst?l wrote:> Hi! > > Im running FreeBSD 9.1 on a AMD APU machine: > CPU: AMD E-450 APU with Radeon(tm) HD Graphics (1699.36-MHz K8-class CPU) > > FreeBSD 9.1-RELEASE-p1 #0 r243379M: Fri Mar 8 23:16:44 CET 2013 > root at pean.org:/usr/obj/usr/src/sys/GENERIC > > I try to use amdtemp(4) to read the temperature of this CPU but it > doesnt seem to detect the CPU. The manual states that it should > support K8-class. > > The amdtemp.c isnt huge so maybe it is very simple to make it work?A similar discussion happened last month about FreeBSD 8.x and the amdtemp(4) driver and what models it supports. See thread and my comments: Thread: http://lists.freebsd.org/pipermail/freebsd-stable/2013-February/thread.html#72340 First post: http://lists.freebsd.org/pipermail/freebsd-stable/2013-February/072340.html Points I'm trying to get across, as someone who has no familiarity with the amdtemp(4) driver/code, but does have quite a lot of familiarity with H/W monitoring chipsets: 1. Do not assume it will be simple to "make it work" simply because the driver you see is ~13KBytes -- the size has no bearing on technical complexities. 2. Support for different CPUs have to be added gradually and carefully, as hardware vendors change methods/models behaviour of the DTSes and surrounding bits more often than you might think. Consider what would happen if support was added which in turn broke/caused issues for other CPU models (either newer or older); the end result consists of end-users screaming about the breakage, and people having to rush to provide a fix. You might want to look at the "Core Temp" utility for Windows, for example, where it has to be updated periodically to add support for some models of CPUs; be sure to note all the "Fix:" items too. http://www.alcpu.com/CoreTemp/history.html 3. Low-level technical documentation of behaviour per CPU model is sometimes not made available publicly by the vendor until after N number of years. This requires the person adding support to reverse-engineer existing programs out there (ex. Linux, etc.) that provide such. This takes time, and can often be more error-prone than real documentation. And don't forget about CPU bugs/errata too. 4. Do not forget amdtemp(4) is kernel-land: the last thing you want to do is screw it up (think panic). Userland is often more forgiving, depending what all you're interfacing with on the kernel side (ex. a badly-formed ioctl from userland could cause a panic too). -- | Jeremy Chadwick jdc at koitsu.org | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |
On 03/13/2013 11:16 AM, Milan Obuch wrote:> > you need to try amdtemp.c from CURRENT aka HEAD. I did it for both > E-350 and C-60 CPU and it works for me. If you need something more to > test it, I can help, but it is really easy. > > Regards, > Milan >Thanks! That worked nicely! Regards, Peter
On Wed, 13 Mar 2013 11:45:15 +0100 Peter Ankerst?l <peter at pean.org> wrote:> On 03/13/2013 11:16 AM, Milan Obuch wrote: > > > > > you need to try amdtemp.c from CURRENT aka HEAD. I did it for both > > E-350 and C-60 CPU and it works for me. If you need something more > > to test it, I can help, but it is really easy. > > > > Regards, > > Milan > > > > Thanks! That worked nicely! > > Regards, > Peter >Glad it helps :) Just one small thing I encountered - temperature read via sysctl from amdtemp module was ~ 7 degrees higher than those reported via BIOS setup screen. As it was some months already, maybe these vaules are now in line, but it would be good to test it for yourself. Regards, Milan
On 03/13/2013 12:00 PM, Milan Obuch wrote:> > Glad it helps :) Just one small thing I encountered - temperature read > via sysctl from amdtemp module was ~ 7 degrees higher than those > reported via BIOS setup screen. As it was some months already, maybe > these vaules are now in line, but it would be good to test it for > yourself. > > Regards, > Milan >Ah, good to know, I will check it out. /Peter.
On 13 March 2013 05:17, Peter Ankerst?l <peter at pean.org> wrote:> Hi! > > Im running FreeBSD 9.1 on a AMD APU machine: > CPU: AMD E-450 APU with Radeon(tm) HD Graphics (1699.36-MHz K8-class CPU) > > FreeBSD 9.1-RELEASE-p1 #0 r243379M: Fri Mar 8 23:16:44 CET 2013 > root at pean.org:/usr/obj/usr/src/sys/GENERIC > > I try to use amdtemp(4) to read the temperature of this CPU but it doesnt > seem to detect the CPU. The manual states that it should support K8-class. >Just an aside (as I note you've got it nailed down), but AFIK the E-450 is a K-10 core not a K-8. It'd be nice if K-10 was a perfect superset of K-8, but I have my doubts. -- --
After I installed 9.1 amd64 on node with amd 8120, I was not able to read temperatures out of the box. I fetched source for head module and compiled. And loaded module. Still nothing. I assume my cpu is a bit different. Best regards Zoran
Apparently Analagous Threads
- RELENG_8: amdtemp module and newer CPUs not working. MFC?
- agp in kernel
- SSD becomes detached 9.2
- What''s the different for "dom0_max_vcpus=4 dom0_vcpus_pin" and "dom0_max_vcpus=4" ?
- What''s the different for "dom0_max_vcpus=4 dom0_vcpus_pin" and "dom0_max_vcpus=4" ?