Loongson 3 CPUFreq Linux Driver Being Worked On For Better Power/Performance

Written by Michael Larabel in Hardware on 9 July 2024 at 12:00 AM EDT. 3 Comments
HARDWARE
While Loongson's LoongArch processors have been supported under Linux from the start, there remain some missing/late elements still being pursued by Loongson engineers for better upstream support. One of the areas being worked on recently is a proper CPUFreq driver for Loongson 3 series processors for CPU frequency scaling for better performance and power management.

Posted for review last month are patches implementing a basic Longson-3 CPUFreq driver for dynamic voltage and frequency scaling (DVFS). The scaling of frequency and voltage is being handled by the CPU's system management controller and requires the proper microcode in place for support. But not all Loongson-3 CPU models support this dynamic functionality with some models being limited to running at a statically set frequency / single performance state.

Loongson 3 illustration


The driver in its initial form also doesn't handle automatic frequency scaling yet but is an addition to be made in the future. But at least for now the SMC can be interacted with and the target frequency can be manually set along with other basic functionality.
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