Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Undervolting with kernel 2.6 [Done!]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
grafrotz
n00b
n00b


Joined: 27 Aug 2006
Posts: 38
Location: Frankfurt, Germany

PostPosted: Wed Jul 27, 2011 11:19 am    Post subject: new patch Reply with quote

Be careful with this patch in combination with other CPUs as I used!

https://mariobachmann.dyndns.org/powernow-patch-3.0.0-GRAFROTZ.patch

to use the patch, copy the patch to /usr/src, then:
Code:

cd /usr/src/linux
patch -p0 < ../powernow-patch-3.0.0-GRAFROTZ.patch


I use LILO with the following append options for my AMD X2 5600+ (2,9 GHz):
Code:

powernow-k8.freq_list=2900,2800,2600,2400,2200,2000,1000 powernow-k8.vcore_list=1250,1225,1175,1125,1075,1025,1000


When booted Linux Kernel 3.0.0 i use
Code:
dmesg |grep powernow

and get
Code:

powernow-k8: Found 1 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ (2 cpu cores) (version 2.20.00)
powernow-k8: Requested 2900MHz with 1250mV
powernow-k8: Requested 2800MHz with 1225mV
powernow-k8: Requested 2600MHz with 1175mV
powernow-k8: Requested 2400MHz with 1125mV
powernow-k8: Requested 2200MHz with 1075mV
powernow-k8: Requested 2000MHz with 1025mV
powernow-k8: Requested 1000MHz with 1000mV
powernow-k8: fid 0x15 (2900 MHz), vid 0xc
powernow-k8: fid 0x14 (2800 MHz), vid 0xd
powernow-k8: fid 0x12 (2600 MHz), vid 0xf
powernow-k8: fid 0x10 (2400 MHz), vid 0x11
powernow-k8: fid 0xe (2200 MHz), vid 0x13
powernow-k8: fid 0xc (2000 MHz), vid 0x15
powernow-k8: fid 0x2 (1000 MHz), vid 0x16


To see if the mV are used, i use (for different Hz settings):
Code:

cpufreq-set -g userspace --min 2000000 --max 2000000
sensors |grep Vcore

and the output should be the lowered 1025mV (~1.03mV).
Back to top
View user's profile Send private message
abulak
n00b
n00b


Joined: 12 Dec 2008
Posts: 29

PostPosted: Sun Jul 31, 2011 11:44 pm    Post subject: Reply with quote

Thanks, it works again!

(I was not sufficiently proficient at programming to modify Your patch by myself. Sorry)

I am running it with
Code:
/etc/conf.d/modules
reading:

Code:
modules_3_0="some_my_modules"
modules_3_0="${modules_3_0} k8temp powernow-k8"
module_powernow_k8_args_3_0="freq_list=1900,1800,1600,800 vcore_list=975,950,875,725"


the kernel log returns then:
Code:
powernow-k8: Found 1 AMD Turion(tm) 64 X2 Mobile Technology TL-58 (2 cpu cores) (version 2.20.00)
powernow-k8: Requested 1900MHz with 975mV
powernow-k8: Requested 1800MHz with 950mV
powernow-k8: Requested 1600MHz with 875mV
powernow-k8: Requested 800MHz with 725mV
powernow-k8: fid 0xb (1900 MHz), vid 0x17
powernow-k8: fid 0xa (1800 MHz), vid 0x18
powernow-k8: fid 0x8 (1600 MHz), vid 0x1b
powernow-k8: fid 0x0 (800 MHz), vid 0x21


I cannot use sensors to monitor the voltage though. Nevertheless the cpu runs noticeably cooler (my ears can sense the difference ;-) )

Thanks again!
Back to top
View user's profile Send private message
abulak
n00b
n00b


Joined: 12 Dec 2008
Posts: 29

PostPosted: Sun Jul 31, 2011 11:54 pm    Post subject: Reply with quote

Thanks, it works again!

(I was not sufficiently proficient at programming to modify Your patch by myself. Sorry)

I am running it with
Code:
/etc/conf.d/modules
reading:

Code:
modules_3_0="some_my_modules"
modules_3_0="${modules_3_0} k8temp powernow-k8"
module_powernow_k8_args_3_0="freq_list=1900,1800,1600,800 vcore_list=975,950,875,725"


the kernel log returns then:
Code:
powernow-k8: Found 1 AMD Turion(tm) 64 X2 Mobile Technology TL-58 (2 cpu cores) (version 2.20.00)
powernow-k8: Requested 1900MHz with 975mV
powernow-k8: Requested 1800MHz with 950mV
powernow-k8: Requested 1600MHz with 875mV
powernow-k8: Requested 800MHz with 725mV
powernow-k8: fid 0xb (1900 MHz), vid 0x17
powernow-k8: fid 0xa (1800 MHz), vid 0x18
powernow-k8: fid 0x8 (1600 MHz), vid 0x1b
powernow-k8: fid 0x0 (800 MHz), vid 0x21


I cannot use sensors to monitor the voltage though. Nevertheless the cpu runs noticeably cooler (my ears can sense the difference ;-) )

Thanks again!
Back to top
View user's profile Send private message
grafrotz
n00b
n00b


Joined: 27 Aug 2006
Posts: 38
Location: Frankfurt, Germany

PostPosted: Thu Aug 25, 2011 2:20 pm    Post subject: sensors Reply with quote

To use sensors, You need to have the right module for the sensors-chip on the mainbaord.
To find out which senor-chip your mainbaord has, use a digicam with makro modus to see the label on the chip.
New chips have very small labels because the chips are very small and there is no space for a big label.

cd /usr/src/linux
make menuconfig

for example:
Device Drivers -> <*> Hardware Monitoring support ->
<*> Winbond W83627EHF/EHG/DHG, W83667HG, NCT6775F, NCT6776F

Mario
Back to top
View user's profile Send private message
grafrotz
n00b
n00b


Joined: 27 Aug 2006
Posts: 38
Location: Frankfurt, Germany

PostPosted: Sat Jun 30, 2012 9:26 am    Post subject: kernel 3.4 Reply with quote

Since linux kernel 3.4, the append="powernow-k8.freq_list=2900,2800,2600,2400,2200,2000,1000 powernow-k8.vcore_list=1250,1225,1175,1125,1075,1025,1000" does not work any more.

A very bad and dirty workaround is to set the arrays directly in the powernow-k8.c like this:

static int vcore_list[16] = { 1250,1225,1175,1125,1075,1025,1000 };
static int freq_list[16] = { 2900,2800,2600,2400,2200,2000,1000 };

instead of

static int vcore_list[16] = { 0 };
static int freq_list[16] = { 0 };

https://mariobachmann.dyndns.org/majos/software/devices/powernow-patch-3.4-GRAFROTZ.patch

Be careful!!! This patch sets the values for my CPU AMD Athlon X2 5600+.
Change the values inside the patch-file, before applying the patch with

cd /usr/src/linux
patch -p0 < ../powernow-patch-3.4-GRAFROTZ.patch
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
Page 8 of 8

 
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