skilvingr / bd_prochot_disable_module Goto Github PK
View Code? Open in Web Editor NEWA simple module for the Linux kernel which disables the BD_PROCHOT functionality
A simple module for the Linux kernel which disables the BD_PROCHOT functionality
Hi, thanks for this repo.
I am using ubuntu 20.04 LTS with dell optiplex 3050 SFF that is throttled due to using non-genuine power adapter.
I managed to build kernel module, and when I load it I see value changed, but still cpu speed is locked to 800mhz and I cant find a way to set it to higher values.
cpufreq-info output:
$ cpufreq-info cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009 Report errors and bugs to [email protected], please. analyzing CPU 0: driver: intel_pstate CPUs which run at the same hardware frequency: 0 CPUs which need to have their frequency coordinated by software: 0 maximum transition latency: 4294.55 ms. hardware limits: 800 MHz - 800 MHz available cpufreq governors: performance, powersave current policy: frequency should be within 800 MHz and 800 MHz. The governor "perfomance" may decide which speed to use within this range. current CPU frequency is 800 MHz.
0x1FC value after module ran:
$ sudo rdmsr -a -d 0x1FC 2883676 2883676 2883676 2883676
journalctl after module load:
lis 01 09:13:50 nix kernel: intel_msr: loading out-of-tree module taints kernel. lis 01 09:13:50 nix kernel: intel_msr: module verification failed: signature and/or required key missing - tainting kernel lis 01 09:13:50 nix kernel: intel_msr: Current value is: 0x2c005d. Writing new value 0x2c005c on 0x1fc msr... lis 01 09:13:50 nix kernel: intel_msr: Done. New value is: 0x2c005c
Am I wrong thinking cpu speed would unlock from 800mhz by itself?
Even tried without any luck
sudo cpufreq-set -c 0 -d 3GHz
Of course I have msr writes enabled:
msr.allow_writes=on
I even tried blacklisting intel_rapl_msr and intel_rapl_common modules. Currently this is lsmod at boot time:
$ lsmod | grep msr intel_msr 16384 0 msr 16384 0
And also did disable intel_pstate, so now cpufreq driver is acpi-cpufreq, but again, no luck with getting higher speeds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.