Celeron J3160 with enabled Turbo mode stays at 480MHz (lowestsetting) forever and can not lower frequency without Tuebo mode
Lev Serebryakov
lev at FreeBSD.org
Wed Sep 5 16:33:35 UTC 2018
On 05.09.2018 19:01, Conrad Meyer wrote:
>>> Unfortunately, I didn't have much luck looking for documentation that
>>> covers how this can be added to FreeBSD base (preferably exposed via a
>>> sysctl), but I suspect it would involve both machine-dependent and
>>> machine-independent parts since both AMD, as well as ARM and other
>>> architectures use some form of equivalent functionality.
>>
>> It should become part of cpufreq(8) for sure.
>
> It doesn't make sense as part of cpufreq(8) for two reasons:
>
> First and foremost, it is GPL2 software.
I didn't mean, exactly this code should become part of cpufreq(8).
cpufreq(8) is framework for all frequency settings, CPU power
management, etc., for all our platforms and Turbo mode of modern CPUs is
not different from that. We use cpufreq(8) for all before-Turbo
frequency management, why should not we use it for new extended
frequency management?
> Secondly, it is extremely machine-dependent software. It is
> x86-specific and has a lot of different code to handle each
> microarchitecture from Nehalem through Skylake. It would be one thing
> if this was a small table, but it is 5000 lines of code.
cpufreq(8) contains a lot of machine-dependent software in platform
directories like sys/x86/cpufreq already.
--
// Lev Serebryakov
More information about the freebsd-hackers
mailing list