Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Overclocking Patches
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
KWhat
Guru
Guru


Joined: 04 Sep 2005
Posts: 549
Location: Los Angeles

PostPosted: Sun Sep 15, 2013 6:09 pm    Post subject: Overclocking Patches Reply with quote

The linux kernel really doesn't like overclocking and seems to panic if there is a cpu thermal event. Does anyone know if there is a patch set to prevent halts due to thermal events?
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3601
Location: USA

PostPosted: Sun Sep 15, 2013 7:49 pm    Post subject: Reply with quote

My i5 gets thermal events frequently but does not panic.
What CPU and exactly what events show up?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Sep 16, 2013 12:41 am    Post subject: Reply with quote

Undervolt, to help keep the CPU cool. Here's how:

For an Intel CPU, get phc-intel-pack-rev11.tar.bz2, Then in the "inc" dir, go to dir for your kernel, and get a single patch.

Edit: Bah, URL above is a dead link, so here's PHC releases thread.

Apply the patch (to drivers/cpufreq/acpi-cpufreq.c), just before compiling a kernel, like this:
Code:
patch -d drivers/cpufreq -Np0 -i $PATCH_DIR/linux-phc-0.4.0.patch


A little undervolt startup script I've just started using:
Code:
DEFAULTS="41 35 23 19"
VIDS="27 27 14 10"

if [[ `cat /sys/devices/system/cpu/cpu0/cpufreq/phc_default_vids` != $DEFAULTS ]] ; then
    echo "Unexpected defaults - will not undervolt!"
    exit 1
fi

# Have to apply to all cores
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/phc_vids ; do
    echo $VIDS > $cpu
done


You have to experiment, to find the low-but-still-stable values. The first number in $VIDS, which applies to the highest performance state, is the most important to make low, because that produces the most heat.

My laptop runs hot, and this tweak helps with (but does not completely fix) the CPU's thermal throttling :D


Last edited by PaulBredbury on Wed Feb 26, 2014 8:48 pm; edited 4 times in total
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4563
Location: Saint Amant, Acadiana

PostPosted: Mon Sep 16, 2013 1:55 am    Post subject: Reply with quote

sys-power/phc-intel

It's in portage.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum