* help using Harold Milz patch for PSB overide
@ 2004-08-21 15:47 mark newman
2004-08-23 19:11 ` Harald Milz
0 siblings, 1 reply; 10+ messages in thread
From: mark newman @ 2004-08-21 15:47 UTC (permalink / raw)
To: cpufreq
Hi,
I have bought an xpm 2500+ for my epox 8kmm+ matx
board. Its in a small case and I'm trying to scale
the cpu clock to keep heat/noise/power to a minimum in
my media box
I think this is the relevant part of x86info
PowerNOW! Technology information
Available features:
Temperature sensing diode present.
Bus divisor control
Voltage ID control
MSR: 0xc0010041=0x0000000000000000 : 00000000 00000000
00000000 00000000
00000000 00000000 00000000 00000000
MSR: 0xc0010042=0x000b0b0b00160606 : 00000000 00001011
00001011 00001011
00000000 00010110 00000110 00000110
FID changes won't happen
VID changes won't happen
Voltage ID codes: Maximum=1.450V Startup=1.450V
Currently=1.450V
Frequency ID codes: Maximum=14.0x Startup=6.0x
Currently=6.0x
Decoding BIOS PST tables (maxfid=16, startvid=b)
Connector type: Socket A (462 Pin PGA)
I have tried to apply the patch but only the first
hunk succeeds. I then did my best to apply it
manually. It built but...
My command line looks like this. I dont know where
to get my cpuid from and have omitted voltage settings
insmod
/lib/modules/2.6.7-gentoo-r12/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k7.ko
mymaxfid=0x15 mynumpstates=6
myfids=0x15,0x00,0x0a,0x06,0x04,0x12 >> /usr/portage/a
insmod: error inserting
'/lib/modules/2.6.7-gentoo-r12/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k7.ko':
-1 Unknown symbol in module
dmesg
powernow_k7: Unknown symbol
cpufreq_frequency_table_target
powernow_k7: Unknown symbol
cpufreq_frequency_table_get_attr
powernow_k7: Unknown symbol
cpufreq_freq_attr_scaling_available_freqs
powernow_k7: Unknown symbol
cpufreq_frequency_table_cpuinfo
powernow_k7: Unknown symbol
cpufreq_frequency_table_put_attr
powernow_k7: Unknown symbol
cpufreq_frequency_table_verify
Any help would be appreciated. The cpu will currently
only run at 6x as I cant set the multiplier in the
bios.
Its possible I have misapplied the patch. If anyone
could send me their patched powernow-k7.c off list
that would be a help
I understand this is at my own risk. I figure as long
as I monitor temps I should be fairly safe. I doubt
my board will allow changes in voltage anyway.
#Mark
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: help using Harold Milz patch for PSB overide
2004-08-21 15:47 help using Harold Milz patch for PSB overide mark newman
@ 2004-08-23 19:11 ` Harald Milz
2004-08-23 21:06 ` GoatZilla
2004-08-23 22:18 ` mark newman
0 siblings, 2 replies; 10+ messages in thread
From: Harald Milz @ 2004-08-23 19:11 UTC (permalink / raw)
To: cpufreq
mark newman <emergant2000@yahoo.co.uk> wrote:
> Its possible I have misapplied the patch. If anyone
> could send me their patched powernow-k7.c off list
> that would be a help
Huh - what kernel did you apply it against? Mine is a 2.6.5-104 from SUSE
9.1. I can send you a patched powernow-k7.c but I assume it's not about
this file. Are you sure everything is set correctly in .config? Here it's
CONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_X86_POWERNOW_K6=m
CONFIG_X86_POWERNOW_K7=m
CONFIG_X86_POWERNOW_K8=m
CONFIG_X86_POWERNOW_K8_ACPI=y
CONFIG_X86_GX_SUSPMOD=m
CONFIG_X86_SPEEDSTEP_CENTRINO=m
CONFIG_X86_SPEEDSTEP_ICH=m
CONFIG_X86_SPEEDSTEP_SMI=m
CONFIG_X86_P4_CLOCKMOD=m
CONFIG_X86_SPEEDSTEP_LIB=m
CONFIG_X86_LONGRUN=m
CONFIG_X86_LONGHAUL=m
> as I monitor temps I should be fairly safe. I doubt
> my board will allow changes in voltage anyway.
Yup - the SoftVID pins are hardly ever connected on desktop boards -
although I've read about some mods in various fora. Which is nonsense,
marketing-wise. Connecting the pins costs about 0.00002$.
--
Vila: "I think I have just made the biggest mistake of my life."
Orac: "It is unlikely. I would predict there are far greater mistakes
waiting to be made by someone with your obvious talent for it."
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: help using Harold Milz patch for PSB overide
2004-08-23 19:11 ` Harald Milz
@ 2004-08-23 21:06 ` GoatZilla
2004-08-23 22:28 ` mark newman
2004-08-23 22:18 ` mark newman
1 sibling, 1 reply; 10+ messages in thread
From: GoatZilla @ 2004-08-23 21:06 UTC (permalink / raw)
To: Cpufreq
Ah, and I had forgotten about all the other modules needed to get the
powernow module working. Instead of insmod, try using modprobe, which
if set up correctly will load the rest of the modules that you need.
> > as I monitor temps I should be fairly safe. I doubt
> > my board will allow changes in voltage anyway.
>
> Yup - the SoftVID pins are hardly ever connected on desktop boards -
> although I've read about some mods in various fora. Which is nonsense,
> marketing-wise. Connecting the pins costs about 0.00002$.
I think the official recipe from AMD actually involves using a
multiplexer IC, not just wiring SoftVID to the VRM. So it's different
(more) wiring + another IC on the board.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: help using Harold Milz patch for PSB overide
2004-08-23 19:11 ` Harald Milz
2004-08-23 21:06 ` GoatZilla
@ 2004-08-23 22:18 ` mark newman
1 sibling, 0 replies; 10+ messages in thread
From: mark newman @ 2004-08-23 22:18 UTC (permalink / raw)
To: cpufreq
--- Harald Milz <milz@seneca.muc.de> wr ote:
> mark newman <emergant2000@yahoo.co.uk> wrote:
>
> > Its possible I have misapplied the patch. If
> anyone
> > could send me their patched powernow-k7.c off list
> > that would be a help
>
> Huh - what kernel did you apply it against? Mine is
> a 2.6.5-104 from SUSE
> 9.1.
Well I started with a gentoo 2.67 kern el, the 2nd 2
chunks faied. I Then copied the cpufreq dir from a
vanilla 2.68 to my existing 2.67 tree with the same
problem. Thats when I tried to apply it manually.
Perhaps Ishould try 2.65.
>I can send you a patched powernow-k7.c but I
> assume it's not about
> this file.
Well since I'd had problems applying the patch, I'd
been working on the assumption that I'd bungled it
somehow. I'd appreciate that patched file, it may
help in a process of elimination.
> Are you sure everything is set correctly
> in .config? Here it's
>
> CONFIG_X86_ACPI_CPUFREQ=m
> # CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
> CONFIG_X86_POWERNOW_K6=m
> CONFIG_X86_POWERNOW_K7=m
> CONFIG_X86_POWERNOW_K8=m
> CONFIG_X86_POWERNOW_K8_ACPI=y
> CONFIG_X86_GX_SUSPMOD=m
> CONFIG_X86_SPEEDSTEP_CENTRINO=m
> CONFIG_X86_SPEEDSTEP_ICH=m
> CONFIG_X86_SPEEDSTEP_SMI=m
> CONFIG_X86_P4_CLOCKMOD=m
> CONFIG_X86_SPEEDSTEP_LIB=m
> CONFIG_X86_LONGRUN=m
> CONFIG_X86_LONGHAUL=m
Its a ittle late tonight, but I'll check this on
thursday at the latest as I have the day off work.
I'll report back :)
>
> > as I monitor temps I should be fairly safe. I
> doubt
> > my board will allow changes in voltage anyway.
>
> Yup - the SoftVID pins are hardly ever connected on
> desktop boards -
> although I've read about some mods in various fora.
> Which is nonsense,
> marketing-wise. Connecting the pins costs about
> 0.00002$.
Thanks for responding
Mark
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: help using Harold Milz patch for PSB overide
2004-08-23 21:06 ` GoatZilla
@ 2004-08-23 22:28 ` mark newman
2004-08-24 7:25 ` Harald Milz
0 siblings, 1 reply; 10+ messages in thread
From: mark newman @ 2004-08-23 22:28 UTC (permalink / raw)
To: Cpufreq
modprobe gave me no such device messages. I'm not on
the media box at the moment,but from memory dmesg
showed no pst etc (see my earlier message) ie the
normal behaviour when no freuency table is available.
This is as expected when no fid's etc are provided
using insmod. I am however wonderring if all the
relevant dependencies were loaded. I'll check on
this.
Mark
--- GoatZilla <goatzilla@gmail.com> wrote:
> Ah, and I had forgotten about all the other modules
> needed to get the
> powernow module working. Instead of insmod, try
> using modprobe, which
> if set up correctly will load the rest of the
> modules that you need.
>
>
>
> > > as I monitor temps I should be fairly safe. I
> doubt
> > > my board will allow changes in voltage anyway.
> >
> > Yup - the SoftVID pins are hardly ever connected
> on desktop boards -
> > although I've read about some mods in various
> fora. Which is nonsense,
> > marketing-wise. Connecting the pins costs about
> 0.00002$.
>
>
> I think the official recipe from AMD actually
> involves using a
> multiplexer IC, not just wiring SoftVID to the VRM.
> So it's different
> (more) wiring + another IC on the board.
>
> _______________________________________________
> Cpufreq mailing list
> Cpufreq@www.linux.org.uk
> http://www.linux.org.uk/mailman/listinfo/cpufreq
>
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: help using Harold Milz patch for PSB overide
2004-08-23 22:28 ` mark newman
@ 2004-08-24 7:25 ` Harald Milz
2004-08-26 14:11 ` mark newman
0 siblings, 1 reply; 10+ messages in thread
From: Harald Milz @ 2004-08-24 7:25 UTC (permalink / raw)
To: cpufreq
mark newman <emergant2000@yahoo.co.uk> wrote:
> using insmod. I am however wonderring if all the
> relevant dependencies were loaded. I'll check on
> this.
I added this line to my modprobe.conf.local, and simply modprobe
everything:
options powernow-k7 mycpuid=0x7a0 myfsbspeed=133 mymaxfid=0x15 mystartvid=0xb mynumpstates=2 myfids=0x15,0x0d
Don't forget to run "depmod -a" after modifying modprobe.conf.*.
--
Diplomacy is the art of saying "nice doggy" until you can find a rock.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: help using Harold Milz patch for PSB overide
2004-08-24 7:25 ` Harald Milz
@ 2004-08-26 14:11 ` mark newman
2004-08-28 13:23 ` mark newman
0 siblings, 1 reply; 10+ messages in thread
From: mark newman @ 2004-08-26 14:11 UTC (permalink / raw)
To: cpufreq
Thanks to everyones help, I've gotten a little
further.
To update
I've gone back to a 2.6.5 kernel using a prepatched
powernow-k7.c kindly supplied by Harid.
I've checked my kernel config and it includes the
followinfg
#
CONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_X86_POWERNOW_K6=m
CONFIG_X86_POWERNOW_K7=m
CONFIG_X86_POWERNOW_K8=m
CONFIG_X86_GX_SUSPMOD=m
CONFIG_X86_SPEEDSTEP_CENTRINO=m
CONFIG_X86_SPEEDSTEP_ICH=m
CONFIG_X86_SPEEDSTEP_SMI=m
CONFIG_X86_P4_CLOCKMOD=m
CONFIG_X86_SPEEDSTEP_LIB=m
CONFIG_X86_LONGRUN=m
CONFIG_X86_LONGHAUL=m
I have added this line to modules.conf and created
modprobe.conf.local with the same entry. I run depmod
-a. Also tried from cold boot
options powernow-k7 mycpuid=0x7a0 myfsbspeed=133
mymaxfid=0x16 mystartvid=0xb mynumpstates=2
myfids=0x16,0x0d
I have updated 0x15 to 0x16 as my xpm2500 supports a
14x multiplier
When I modrobe powernow-k7 it loads cleanly and also
loads freq_table
I can load the performance govenor cleanly
dmesg shows that frequency and voltage can be scaled,
but x86info says fid's wont change
I have selected the userspace govenor as default but
get no cpufreq directory under
/sys/devices/system/cpu/cpu0
cpudynd shows scaling as being disabled
My multiplier is still set at the default 6x according
to x86info
Does anyone have any suggestions. I'm going to read
up on the gentoo module loading structure and make
sure I've set up the options correctly. I'm still
unsure where I can get my cpuid from. I have enabled
the cpuid module but don't know where it sends the
results.
Thanks
Mark
?
--- Harald Milz <milz@seneca.muc.de> wrote:
> mark newman <emergant2000@yahoo.co.uk> wrote:
> > using insmod. I am however wonderring if all the
> > relevant dependencies were loaded. I'll check on
> > this.
>
> I added this line to my modprobe.conf.local, and
> simply modprobe
> everything:
>
> options powernow-k7 mycpuid=0x7a0 myfsbspeed=133
> mymaxfid=0x15 mystartvid=0xb mynumpstates=2
> myfids=0x15,0x0d
>
> Don't forget to run "depmod -a" after modifying
> modprobe.conf.*.
>
> --
> Diplomacy is the art of saying "nice doggy" until
> you can find a rock.
>
> _______________________________________________
> Cpufreq mailing list
> Cpufreq@www.linux.org.uk
> http://www.linux.org.uk/mailman/listinfo/cpufreq
>
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: help using Harold Milz patch for PSB overide
2004-08-26 14:11 ` mark newman
@ 2004-08-28 13:23 ` mark newman
2004-08-28 20:51 ` GoatZilla
0 siblings, 1 reply; 10+ messages in thread
From: mark newman @ 2004-08-28 13:23 UTC (permalink / raw)
To: mark newman, cpufreq
0I've found my cpuid, its 0x6a0, but stil no luck.
I'm confident the correct paremetres are being picked
up by modprobe.
I've looked on the windows cpumsr site and there is a
note giving the following info
- To this date function verified on following chipsets
(please report other):
VIA: KT133A, KT133E (reg. 55, bit 2 = 1 for those
two), KT266, KT266A, KT333 (reg. 95, bit 2 = 1 for
those three), KT333CF, KT400, KT400A, KT600 (reg. D5,
bit 2 = 1 for those four)
SiS: SiS730, SiS735, SiS745, SiS746, SiS748 - All SiS
chipsets should support this feature, never chipsets
are just updated old versions.
Ali: M1647 (ALiMAGiK1) supported
Ati: Radeon IGP320 supported
nVidia: nForce 2 (reg. E7, bit 4 = FID_Change Detect;
reg. 6F, bit 4 = Halt Disconnect) - But there is high
change this won't work, good solution hasn't been
found to this date.
AMD: AMD761, AMD762 (reg. 44, bit 0 = 1) - on AMD762
systems (AMD760MP, 760MPX chipsets) it may be
impossible to POST due to some BIOS limitations on
many motherboards
I have a via km266, I need to figure out how to set
reg 95 bit 2 = 1.
This can be done using setpci as I've done something
similar to activate powersave.
Mark
--- mark newman <emergant2000@yahoo.co.uk> wrote:
>
> Thanks to everyones help, I've gotten a little
> further.
>
> To update
>
> I've gone back to a 2.6.5 kernel using a prepatched
> powernow-k7.c kindly supplied by Harid.
>
> I've checked my kernel config and it includes the
> followinfg
> #
> CONFIG_X86_ACPI_CPUFREQ=m
> # CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
> CONFIG_X86_POWERNOW_K6=m
> CONFIG_X86_POWERNOW_K7=m
> CONFIG_X86_POWERNOW_K8=m
> CONFIG_X86_GX_SUSPMOD=m
> CONFIG_X86_SPEEDSTEP_CENTRINO=m
> CONFIG_X86_SPEEDSTEP_ICH=m
> CONFIG_X86_SPEEDSTEP_SMI=m
> CONFIG_X86_P4_CLOCKMOD=m
> CONFIG_X86_SPEEDSTEP_LIB=m
> CONFIG_X86_LONGRUN=m
> CONFIG_X86_LONGHAUL=m
>
> I have added this line to modules.conf and created
> modprobe.conf.local with the same entry. I run
> depmod
> -a. Also tried from cold boot
>
> options powernow-k7 mycpuid=0x7a0 myfsbspeed=133
> mymaxfid=0x16 mystartvid=0xb mynumpstates=2
> myfids=0x16,0x0d
>
> I have updated 0x15 to 0x16 as my xpm2500 supports a
> 14x multiplier
>
> When I modrobe powernow-k7 it loads cleanly and also
> loads freq_table
>
> I can load the performance govenor cleanly
>
> dmesg shows that frequency and voltage can be
> scaled,
> but x86info says fid's wont change
>
> I have selected the userspace govenor as default but
> get no cpufreq directory under
> /sys/devices/system/cpu/cpu0
>
> cpudynd shows scaling as being disabled
>
> My multiplier is still set at the default 6x
> according
> to x86info
>
> Does anyone have any suggestions. I'm going to read
> up on the gentoo module loading structure and make
> sure I've set up the options correctly. I'm still
> unsure where I can get my cpuid from. I have
> enabled
> the cpuid module but don't know where it sends the
> results.
>
> Thanks
>
> Mark
>
> ?
>
>
> --- Harald Milz <milz@seneca.muc.de> wrote:
> > mark newman <emergant2000@yahoo.co.uk> wrote:
> > > using insmod. I am however wonderring if all
> the
> > > relevant dependencies were loaded. I'll check
> on
> > > this.
> >
> > I added this line to my modprobe.conf.local, and
> > simply modprobe
> > everything:
> >
> > options powernow-k7 mycpuid=0x7a0 myfsbspeed=133
> > mymaxfid=0x15 mystartvid=0xb mynumpstates=2
> > myfids=0x15,0x0d
> >
> > Don't forget to run "depmod -a" after modifying
> > modprobe.conf.*.
> >
> > --
> > Diplomacy is the art of saying "nice doggy" until
> > you can find a rock.
> >
> > _______________________________________________
> > Cpufreq mailing list
> > Cpufreq@www.linux.org.uk
> > http://www.linux.org.uk/mailman/listinfo/cpufreq
> >
>
>
>
>
>
>
___________________________________________________________ALL-NEW
> Yahoo! Messenger - all new features - even more fun!
> http://uk.messenger.yahoo.com
>
> _______________________________________________
> Cpufreq mailing list
> Cpufreq@www.linux.org.uk
> http://www.linux.org.uk/mailman/listinfo/cpufreq
>
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: help using Harold Milz patch for PSB overide
2004-08-28 13:23 ` mark newman
@ 2004-08-28 20:51 ` GoatZilla
2004-08-28 21:47 ` mark newman
0 siblings, 1 reply; 10+ messages in thread
From: GoatZilla @ 2004-08-28 20:51 UTC (permalink / raw)
To: cpufreq
http://www.tldp.org/HOWTO/Athlon-Powersaving-HOWTO/approaches.html
It's an example of how to use the setpci command, and also happens to
be instructions for turning on the bus disconnect feature for
squeezing that last bit of energy savings out. It looks like one of
the disconnect bits is in the same register as this p-state transition
bit. Stop to take a look at the command and learn how to use it
first, and use it to READ your register value before setting it.
My x86info tells me my FID won't change, but I can still change it
somehow. I never had to do any PCI tweaking to get my FID changes to
work. This may very well be motherboard dependant... but I still
think you've done something else wrong.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: help using Harold Milz patch for PSB overide
2004-08-28 20:51 ` GoatZilla
@ 2004-08-28 21:47 ` mark newman
0 siblings, 0 replies; 10+ messages in thread
From: mark newman @ 2004-08-28 21:47 UTC (permalink / raw)
To: GoatZilla, cpufreq
Thanks, I'd been looking for that document.
I have a feeling I'm missing something too. I'll post
again if I figure it out, but at the moment I'm at a
loss. I can't even figure out how to track the
problem.
Mark
--- GoatZilla <goatzilla@gmail.com> wrote:
>
http://www.tldp.org/HOWTO/Athlon-Powersaving-HOWTO/approaches.html
>
> It's an example of how to use the setpci command,
> and also happens to
> be instructions for turning on the bus disconnect
> feature for
> squeezing that last bit of energy savings out. It
> looks like one of
> the disconnect bits is in the same register as this
> p-state transition
> bit. Stop to take a look at the command and learn
> how to use it
> first, and use it to READ your register value before
> setting it.
>
> My x86info tells me my FID won't change, but I can
> still change it
> somehow. I never had to do any PCI tweaking to get
> my FID changes to
> work. This may very well be motherboard
> dependant... but I still
> think you've done something else wrong.
>
> _______________________________________________
> Cpufreq mailing list
> Cpufreq@www.linux.org.uk
> http://www.linux.org.uk/mailman/listinfo/cpufreq
>
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-08-28 21:47 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-21 15:47 help using Harold Milz patch for PSB overide mark newman
2004-08-23 19:11 ` Harald Milz
2004-08-23 21:06 ` GoatZilla
2004-08-23 22:28 ` mark newman
2004-08-24 7:25 ` Harald Milz
2004-08-26 14:11 ` mark newman
2004-08-28 13:23 ` mark newman
2004-08-28 20:51 ` GoatZilla
2004-08-28 21:47 ` mark newman
2004-08-23 22:18 ` mark newman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.