Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Cool N Quiet su AMD64 3000+
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
3,4-Ciccio-N-Palizzo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2005
Posts: 90

PostPosted: Mon Feb 28, 2005 7:58 pm    Post subject: [RISOLTO] Cool N Quiet su AMD64 3000+ Reply with quote

Salve a tutti!
Ho letto un pò di post per riuscire ad abilitare il cool n quiet sul mio Athlon 3000+ montato su A8V.
Credo di esserci riuscito visto che ora la frequenza scende fino a 1Ghz.
Quello che non mi piace è questo output di dmesg

powernow-k8: Found 1 AMD Athlon 64 / Opteron processors (version 1.00.09b)
powernow-k8: 0 : fid 0x2 (1000 MHz), vid 0x12 (1100 mV)
powernow-k8: 1 : fid 0xa (1800 MHz), vid 0x6 (1400 mV)
powernow-k8: cpu_init done, current fid 0xa, vid 0x4
powernow-k8: vid trans failed, vid 0x3, curr 0x4
powernow-k8: transition frequency failed


Sembra che mi riconosca solo 2 step, o 1000 o 1800, e che gli altri che ha in memoria non riesca a settarli sulla mia CPU!
Che posso fare per risolvere?
Il kernel è un 2.6.9-r1
Va aggiornato qualcosa?
Mi era venuto il dubbio che magari cercasse di applicargli i settaggi del 3000+ su Socket 754 che funziona a 2000Mhz (mi pare). Help please!


Last edited by 3,4-Ciccio-N-Palizzo on Thu Mar 03, 2005 10:23 am; edited 1 time in total
Back to top
View user's profile Send private message
3,4-Ciccio-N-Palizzo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2005
Posts: 90

PostPosted: Tue Mar 01, 2005 8:01 pm    Post subject: Reply with quote

Stavo dando una spulciata ai datasheet presenti sul sito dell'AMD e ho scoperto che:

1) la mia CPU (3000+, Socket 939, 0.09u) effettivamente ha solo 2 regolazioni, o 1000Mhz o 1800Mhz
2) ho idea che il sistema tenti di applicargli i setting del 3000+ su Socket 754, che invece ha 3 regolazioni, 2000Mhz, 1800Mhz e 1000Mhz

Vi riporto parte della tabella:

3000+ Socket 939

CPUID: 00010FF0h
FID/VID Status MaxVID Field: 04h
FID/VID Status MaxFID Field: 0Ah
FID/VID Status StartVid Field: 06h
FID/VID Status StartFid Field: 0Ah
Max P-State: 1800 Mhz
VID_VDD: 1,40v
Intermediate P-State #1 N/A
Intermediate P-State #2 N/A
Min P-State: 1000 Mhz

3000+ Socket 754

CPUID: 00000FC0h
FID/VID Status MaxVID Field: 00h
FID/VID Status MaxFID Field: 0Ch
FID/VID Status StartVid Field: 02h
FID/VID Status StartFid Field: 0Ch
Max P-State: 2000 Mhz
VID_VDD: 1,50v
Intermediate P-State #1 1800 Mhz
Intermediate P-State #2 N/A
Min P-State: 1000 Mhz

Avete mica idea di dove possa inserire questi valori per far riconoscere correttamente la CPU?
Back to top
View user's profile Send private message
BikE
Guru
Guru


Joined: 21 Dec 2004
Posts: 455
Location: Genova

PostPosted: Wed Mar 02, 2005 1:38 pm    Post subject: Reply with quote

Controlla la cartella
Code:

/sys/devices/system/cpu/cpu0/cpufreq/
Back to top
View user's profile Send private message
3,4-Ciccio-N-Palizzo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2005
Posts: 90

PostPosted: Wed Mar 02, 2005 3:43 pm    Post subject: Reply with quote

Cosa precisamente devo cercare nella cartella?
Io ci ho guardato ma non mi pare di aver visto gran che!
Sinceramente sono un novizio, ma non credo che siano li dentro i "setting" che carica di default per la CPU che riconosce.
Da quello che ho visto ci sono file che contengono indicazioni sul "governor" da utilizzare e la frequenza massima e minima ma nulla più!
Riusciresti a essere più preciso?
Back to top
View user's profile Send private message
3,4-Ciccio-N-Palizzo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2005
Posts: 90

PostPosted: Wed Mar 02, 2005 4:13 pm    Post subject: Reply with quote

Ok, ho trovato cosa va modificato per risolvere quel problema.

http://ubuntuforums.org/archive/index.php/t-3585.html

Io però essendo verginello di programmazione non credo di aver capito al 100%.
Come posso inserire (senza far danni) quelle linee nel file "powernow-k8.c" in modo che venga correttamente patchato?
Spero possiate aiutarmi!
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Mar 02, 2005 4:16 pm    Post subject: Reply with quote

Devi crearti un file di patch e modificare l'ebuild in modo che lo usi.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
3,4-Ciccio-N-Palizzo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2005
Posts: 90

PostPosted: Wed Mar 02, 2005 4:32 pm    Post subject: Reply with quote

Ossia?
Potresti spiegarti un pò meglio?
Sono un novello :-(
Non basta inserire quelle righe nel punto giusto del file?
Grazie in anticipo!
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Mar 02, 2005 4:36 pm    Post subject: Reply with quote

In pratica dei crearti un portage overlay, ti copi l'ebuild della version di speedfreq che usi, crei un file di patch, modifichi l'ebuild in modo che lo applichi e poi lo emergi normalmente.

Capisco che non sia una cosa semplice se ti serve aiuto chiedilo pure.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
3,4-Ciccio-N-Palizzo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2005
Posts: 90

PostPosted: Wed Mar 02, 2005 4:41 pm    Post subject: Reply with quote

Io non uso "speedfreq"!
Il kernel 2.6.9 ha "ondemand" come governor integrato, quindi non uso nessun programma aggiuntivo.
Il punto è che (credo, sono ignorante in materia) "ondemand" usa i driver del "powernow" per funzionare, quindi sono quelli che vanno patchati, non un applicativo!
Possibile?
Prova a dare un occhiata al thread che ho linkato poco sopra!
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Mar 02, 2005 4:43 pm    Post subject: Reply with quote

Scusa pensavo fosse una patch per speedfreq

Ora vedo il post che hai linkato.

EDIT: Ora che ho letto meglio ho capito che si tratta di una patch per un file e precisamente:

/usr/src/linux/arch/i386/kernel/cpu/cpufreq/powernow-k8.c

La cosa più semplice che puoi fare (visto che non sei pratico di patch e la modifica è banale) è aprire quel file con un editor e sostituisci la riga:

Code:
 while (rvosteps > 0) {


con

Code:

while ( (rvosteps > 0) && ( (data->rvo + data->currvid) > reqvid ) ) {



Poi ricompili e buona fortuna.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
3,4-Ciccio-N-Palizzo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2005
Posts: 90

PostPosted: Thu Mar 03, 2005 10:23 am    Post subject: Reply with quote

Et woilà!

powernow-k8: Found 1 AMD Athlon 64 / Opteron processors (version 1.00.09b)
powernow-k8: 0 : fid 0x2 (1000 MHz), vid 0x12 (1100 mV)
powernow-k8: 1 : fid 0xa (1800 MHz), vid 0x6 (1400 mV)
powernow-k8: cpu_init done, current fid 0xa, vid 0x4
powernow-k8: ph2 null fid transition 0xa

Funziona tutto a meraviglia!
Ho sostituito la riga come mi hai detto tu, ho ricompilato, ho rebootato, e ora va tutto alla perfezione!
Davvero grazie infinite, ciao ;-)
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Thu Mar 03, 2005 10:24 am    Post subject: Reply with quote

3,4-Ciccio-N-Palizzo wrote:

Funziona tutto a meraviglia!
Ho sostituito la riga come mi hai detto tu, ho ricompilato, ho rebootato, e ora va tutto alla perfezione!
Davvero grazie infinite, ciao ;-)


Mi fa piacere :)

Adesso metti il tag [Risolto] e fai contento anche me ;)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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