Skip to contentSkip to conversation

Can you please try this powernow-k8.c patch ?

DISCUSSION Michał Pytasz 2 participants 3 messages Nov 16, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

Thanks for the patch, I tried it, here is the rssult:

powernow-k8: Found 1 AMD Athlon 64 / Opteron processors (version 1.00.09e)
powernow-k8:    0 : fid 0x8, vid 0x6
powernow-k8:    1 : fid 0x0, vid 0x18
powernow-k8:    0 : fid 0x8 (1600 MHz), vid 0x6 (1400 mV)
powernow-k8:    1 : fid 0x0 (800 MHz), vid 0x18 (950 mV)
powernow-k8: cpu0, init lo 0x608, hi 0x1
powernow-k8: policy current frequency 1600000 kHz
powernow-k8: cpu_init done, current fid 0x8, vid 0x6
powernow-k8: targ: cpu 0, 1600000 kHz, min 800000, max 1600000, relation 0
powernow-k8: targ: curr fid 0x8, vid 0x6
powernow-k8: cpu 0 transition to index 0
powernow-k8: table matched fid 0x8, giving vid 0x6
powernow-k8: target matches current values (fid 0x8, vid 0x6)
powernow-k8: targ: cpu 0, 1500000 kHz, min 800000, max 1600000, relation 0
powernow-k8: targ: curr fid 0x8, vid 0x6
powernow-k8: cpu 0 transition to index 0
powernow-k8: table matched fid 0x8, giving vid 0x6
powernow-k8: target matches current values (fid 0x8, vid 0x6)
powernow-k8: targ: cpu 0, 1400000 kHz, min 800000, max 1600000, relation 0
powernow-k8: targ: curr fid 0x8, vid 0x6
powernow-k8: cpu 0 transition to index 0
powernow-k8: table matched fid 0x8, giving vid 0x6
powernow-k8: target matches current values (fid 0x8, vid 0x6)
powernow-k8: targ: cpu 0, 1300000 kHz, min 800000, max 1600000, relation 0
powernow-k8: targ: curr fid 0x8, vid 0x6
powernow-k8: cpu 0 transition to index 0
powernow-k8: table matched fid 0x8, giving vid 0x6
powernow-k8: target matches current values (fid 0x8, vid 0x6)
powernow-k8: targ: cpu 0, 1200000 kHz, min 800000, max 1600000, relation 0
powernow-k8: targ: curr fid 0x8, vid 0x6
powernow-k8: cpu 0 transition to index 0
powernow-k8: table matched fid 0x8, giving vid 0x6
powernow-k8: target matches current values (fid 0x8, vid 0x6)
powernow-k8: targ: cpu 0, 1100000 kHz, min 800000, max 1600000, relation 0
powernow-k8: targ: curr fid 0x8, vid 0x6
powernow-k8: cpu 0 transition to index 0
powernow-k8: table matched fid 0x8, giving vid 0x6
powernow-k8: target matches current values (fid 0x8, vid 0x6)
powernow-k8: targ: cpu 0, 1000000 kHz, min 800000, max 1600000, relation 0
powernow-k8: targ: curr fid 0x8, vid 0x6
powernow-k8: cpu 0 transition to index 0
powernow-k8: table matched fid 0x8, giving vid 0x6
powernow-k8: target matches current values (fid 0x8, vid 0x6)
powernow-k8: targ: cpu 0, 900000 kHz, min 800000, max 1600000, relation 0
powernow-k8: targ: curr fid 0x8, vid 0x6
powernow-k8: cpu 0 transition to index 0
powernow-k8: table matched fid 0x8, giving vid 0x6
powernow-k8: target matches current values (fid 0x8, vid 0x6)
powernow-k8: targ: cpu 0, 800000 kHz, min 800000, max 1600000, relation 0
powernow-k8: targ: curr fid 0x8, vid 0x6
powernow-k8: cpu 0 transition to index 1
powernow-k8: table matched fid 0x0, giving vid 0x18
powernow-k8: cpu 0, changing to fid 0x0, vid 0x18
powernow-k8: ph1 (cpu0): start, currfid 0x8, currvid 0x6, reqvid 0x18, rvo 0x2
powernow-k8: ph1 complete, currfid 0x8, currvid 0x6
powernow-k8: ph2 (cpu0): starting, currfid 0x8, currvid 0x6, reqfid 0x0
powernow-k8: writing fid 0x0, lo 0x10600, hi 0x190
powernow-k8: ph2 complete, currfid 0x0, currvid 0x6
powernow-k8: ph3 (cpu0): starting, currfid 0x0, currvid 0x6
powernow-k8: writing vid 0x18, lo 0x11800, hi 0x1
powernow-k8: ph3 complete, currfid 0x0, currvid 0x18
powernow-k8: transitioned (cpu0): new fid 0x0, vid 0x18

Well, it seems to have done the trick for the frequency, Thanks very much,

Also I can see in /sys/devices/system/cpu/cpu0/cpufreq a changed value of frequency, is it possible to see if voltage changes as well? Looking at the log provided, I see, that only frequency seems to be changing (although I finally seem to get cooler CPU, I can hear the fan reducing RPM, sometimes turning off at all :))

Michał

#1 lore raw
Quoted 2 lines · Micha?? Pytasz

Also I can see in /sys/devices/system/cpu/cpu0/cpufreq a changed value of frequency, is it possible to see if voltage changes as well?

AFAICS, your system only supports two frequency states with different voltages. Also, the powernow-k8 driver complains if one transition (frequency or voltage) fails. So you can be quite sure that the voltage changes as well.

Dominik

#2 lore raw
Quoted 4 lines

AFAICS, your system only supports two frequency states with different voltages. Also, the powernow-k8 driver complains if one transition (frequency or voltage) fails. So you can be quite sure that the voltage changes as well.

OK, thanks, I believe You are right. Although I can see frequencies in between 800 and 1600 in the debug log for powernowd-k8, they do not seem to affect cpuinfo_curr_freq (dummy values ?).

Michał