Linux k10temp Driver For AMD CPUs Updated To Better Handle Power/Temp Analysis

Written by Michael Larabel in AMD on 23 January 2020 at 03:57 AM EST. 20 Comments
AMD
As we have been eagerly talking about for the past week, the Linux kernel's k10temp driver was updated for better AMD CPU CCD temperatures and voltage/current reporting. Those improvements have been quickly evolving thanks to the work of the open-source community with AMD still sadly holding the datasheets concerning the power/temperature registers close to their vest. A new version of k10temp was sent out on Wednesday.

As reported earlier this week, these k10temp improvements could land for the upcoming Linux 5.6 but additional testing is needed. While Zen 2 CPUs have been shipping for months, these k10temp improvements are only coming now thanks to HWMON maintainer Guenter Roeck who continues working on this driver in cooperation with the community as AMD currently isn't releasing documentation/datasheets concerning the power/thermal registers or any reference code for that matter... Many Linux desktop users dream of seeing something someday like AMD Ryzen Master coming to Linux.

With the v4 driver improvements it normalizes current calculations but still depends upon some potential per-board scaling to be set in the configuration file of LM-Sensors, makes a clarification, and adds DebugFS support for better debugging/analysis on different CPUs.

Due to the lack of official AMD information to assist in figuring out the correct power/thermal reporting information, the DebugFS data is designed to assist in reading the raw information. Dumped via DebugFS is now the raw thermal and SVI register dumps. The focus is on helping to discover additional sensors on various CPUs and/or for helping to fix problems for buggy information on CPUs. Ideally this shouldn't be needed but due to k10temp still being community-driven without much support from AMD, this DebugFS support should be a big help until AMD steps up to the plate.


If all goes well, these k10temp improvements will make it into Linux 5.6.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week