News: 0001476607

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

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

([Hardware] 6 Hours Ago Loongson CPUFreq Driver)


While Loongson's [1]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 [2]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.

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.



[1] https://www.phoronix.com/search/LoongArch

[2] https://lore.kernel.org/linux-pm/20240612064205.2041548-1-chenhuacai@loongson.cn/



lowflyer

Even in the moment of our earliest kiss,
When sighed the straitened bud into the flower,
Sat the dry seed of most unwelcome this;
And that I knew, though not the day and hour.
Too season-wise am I, being country-bred,
To tilt at autumn or defy the frost:
Snuffing the chill even as my fathers did,
I say with them, "What's out tonight is lost."
I only hoped, with the mild hope of all
Who watch the leaf take shape upon the tree,
A fairer summer and a later fall
Than in these parts a man is apt to see,
And sunny clusters ripened for the wine:
I tell you this across the blackened vine.
-- Edna St. Vincent Millay, "Even in the Moment of
Our Earliest Kiss", 1931