problems in installing PHC DKMS package for AMD processors

If you have trouble with PHC you can ask and hope for help here.
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
d2pal
Posts: 2
Joined: Fri 14. May 2010, 11:15
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

problems in installing PHC DKMS package for AMD processors

Post by d2pal » Fri 14. May 2010, 11:34

I installed "linux-generic-pae-phc" and "linux-headers-generic-pae-phc" through PPA, and then installed PHC DKMS package by the command "sudo make dkms_install".
After installation, I checked the directory "/sys/devices/system/cpu/cpu0/cpufreq/". There are no files starting with "phc_", so my installation is failed.
How to make it work? Here are my processes of installation:

mindforce@mindforce-desktop:~/桌面/phc$ sudo make dkms_install
[sudo] password for mindforce:
mkdir -p ""/usr/src/"phc-k8"-"0.4.2"""
install -m 644 -o root -g root Makefile dkms.conf phc-k8.c phc-k8.h ""/usr/src/"phc-k8"-"0.4.2"""
install -m 744 -o root -g root phc-k8.add ""/usr/src/"phc-k8"-"0.4.2"""
dkms add build install -m "phc-k8" -v "0.4.2"

Creating symlink /var/lib/dkms/phc-k8/0.4.2/source ->
/usr/src/phc-k8-0.4.2

Running the post_add script:

DKMS: add Completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.32-22-generic-pae-phc -C /lib/modules/2.6.32-22-generic-pae-phc/build SUBDIRS=/var/lib/dkms/phc-k8/0.4.2/build modules.....
cleaning build area....

DKMS: build Completed.

phc-k8.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/2.6.32-22-generic-pae-phc/updates/dkms/

/etc/modprobe.d/phc-k8.conf: added 'install powernow-k8 /sbin/modprobe phc-k8 || { /sbin/modprobe --ignore-install powernow-k8; }'
/etc/modprobe.d/phc-k8.conf: added 'remove powernow-k8 /sbin/modprobe -r cpufreq_stats && { /sbin/modprobe --ignore-remove -r powernow-k8 ; }'
/etc/modprobe.d/phc-k8.conf: added 'remove phc-k8 /sbin/modprobe -r cpufreq_stats && { /sbin/modprobe --ignore-remove -r phc-k8 ; }'
depmod......

DKMS: install Completed.

User avatar
DavidG
Posts: 180
Joined: Fri 18. Jul 2008, 11:25
Contact:

Re: problems in installing PHC DKMS package for AMD processors

Post by DavidG » Fri 14. May 2010, 22:31

Al least it seems the phc-k8 module was built successfully...

To help diagnosing what's wrong, could you check that phc-k8 is loaded with 'lsmod|grep k8'? And what is the output of 'dmesg|grep k8' and what is the content of your /proc/cpuinfo?
A bank is a place where they lend you an umbrella in fair weather and ask for it back when it begins to rain -- R. Frost

d2pal
Posts: 2
Joined: Fri 14. May 2010, 11:15
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: problems in installing PHC DKMS package for AMD processors

Post by d2pal » Sat 15. May 2010, 05:09

DavidG wrote:Al least it seems the phc-k8 module was built successfully...

To help diagnosing what's wrong, could you check that phc-k8 is loaded with 'lsmod|grep k8'? And what is the output of 'dmesg|grep k8' and what is the content of your /proc/cpuinfo?
Thanks for your help!!!

I checked "lsmod|grep k8" "dmesg|grep k8" and "/proc/cpuinfo" in terminal.
The output is here:

mindforce@mindforce-desktop:~$ lsmod|grep k8
powernow_k8 11949 0
k8temp 3146 0
mindforce@mindforce-desktop:~$ dmesg|grep k8
[ 12.833399] powernow-k8: Found 1 AMD Athlon(tm) II X4 620 Processor processors (4 cpu cores) (version 2.20.00)
[ 12.833433] powernow-k8: 0 : pstate 0 (2600 MHz)
[ 12.833435] powernow-k8: 1 : pstate 1 (1900 MHz)
[ 12.833437] powernow-k8: 2 : pstate 2 (1400 MHz)
[ 12.833438] powernow-k8: 3 : pstate 3 (800 MHz)
mindforce@mindforce-desktop:~$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 5
model name : AMD Athlon(tm) II X4 620 Processor
stepping : 2
cpu MHz : 800.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
bogomips : 5200.02
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor : 1
vendor_id : AuthenticAMD
cpu family : 16
model : 5
model name : AMD Athlon(tm) II X4 620 Processor
stepping : 2
cpu MHz : 800.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
bogomips : 5200.43
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor : 2
vendor_id : AuthenticAMD
cpu family : 16
model : 5
model name : AMD Athlon(tm) II X4 620 Processor
stepping : 2
cpu MHz : 800.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 2
initial apicid : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
bogomips : 5200.43
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor : 3
vendor_id : AuthenticAMD
cpu family : 16
model : 5
model name : AMD Athlon(tm) II X4 620 Processor
stepping : 2
cpu MHz : 800.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
bogomips : 5200.43
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

mindforce@mindforce-desktop:~$

User avatar
DavidG
Posts: 180
Joined: Fri 18. Jul 2008, 11:25
Contact:

Re: problems in installing PHC DKMS package for AMD processors

Post by DavidG » Sun 16. May 2010, 20:58

Apparently the phc-k8 driver is not loaded (according to lsmod), but at the moment it wouldn't work for Athlon II processors either, since the driver mentions "pstate" in your dmesg output and not fid/vid (at the moment it only supports fid/vid based undervolting).
I will be on holiday this week and I hope I will have some time to work on the newer driver, but I was planning a beta driver release weeks ago and still haven't made it... It's been a hectic time :(
A bank is a place where they lend you an umbrella in fair weather and ask for it back when it begins to rain -- R. Frost

Gele
Posts: 6
Joined: Sun 18. Jul 2010, 08:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: problems in installing PHC DKMS package for AMD processors

Post by Gele » Sun 18. Jul 2010, 12:59

@d2pal:
did you try (after reboot in your phc-patched kernel - you need one)
modprobe -r powernow_k8
modprobe msr
modprobe phc_k8

schawo
Posts: 1
Joined: Sat 30. Oct 2010, 16:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: problems in installing PHC DKMS package for AMD processors

Post by schawo » Sat 30. Oct 2010, 16:38

Hi,

Any chance that the newer AMD processors will get some love? They feel so lonely :)

Code: Select all

[   20.746145] phc-k8: Found 1 AMD Turion(tm) X2 Ultra Dual-Core Mobile ZM-85 (2 cpu cores) (version 2.20.00)
[   20.746204] phc-k8:    0 : pstate 0 (2300 MHz)
[   20.746207] phc-k8:    1 : pstate 1 (1150 MHz)
[   20.746209] phc-k8:    2 : pstate 2 (575 MHz)
:(

User avatar
DavidG
Posts: 180
Joined: Fri 18. Jul 2008, 11:25
Contact:

Re: problems in installing PHC DKMS package for AMD processors

Post by DavidG » Thu 4. Nov 2010, 10:37

It's a dual core, as long as they're together, they don't need to feel lonely! ;)

First I want to release an updated version of the current driver (soon) and then I'll focus on these processors, so just wait a bit longer. Initially, I am planning to support only write access to phc_vids and maybe phc_controls.

But I really need someone who owns a hexacore AMD with Core Boost to run the AMD hw_pstate_ctrl reader script located in the Download section, once with Core Boost disabled and one with Core Boost enabled.
A bank is a place where they lend you an umbrella in fair weather and ask for it back when it begins to rain -- R. Frost

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable