Date: Fri, 25 Jan 2008 09:06:59 +0300 From: Stanislav Sedov <stas@freebsd.org> To: Markus Strobl <markus.strobl@gmx.at> Cc: ports@freebsd.org Subject: Re: FreeBSD Port: devcpu-0.8.2_1 Message-ID: <20080125060659.GE82888@dracon.ht-systems.ru> In-Reply-To: <20080120215901.171800@gmx.net> References: <20080120215901.171800@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 20, 2008 at 10:59:01PM +0100 Markus Strobl mentioned: > Hi Stanislav, > > few days ago, i write you a mail over my problem with the devcpu kernelmodul. I want to set a msr for undervolting a amd x2 cpu. > Now I use the following patch for cpu.c: > > --- workO/devcpu-0.8.2/cpu/cpu.c 2007-07-20 00:30:18.000000000 +0200 > +++ work/devcpu-0.8.2/cpu/cpu.c 2008-01-18 23:59:32.000000000 +0100 > @@ -230,7 +230,8 @@ > ("[cpu,%d]: bad cpu number %d", __LINE__, cpu)); > > /* Explicitly clear cpuid data to avoid returning stale info */ > - data->data = 0; > + if (cmd == CPU_RDMSR) > + data->data = 0; > > DPRINTF("[cpu,%d]: operating on MSR %#0x for %d cpu\n", __LINE__, \ > data->msr, cpu); > > > Undervolting with a amd X2 cpu works now fine :-). Committed! Thanks a lot for this patch! I'm wondering, how I missed that before... WRMSR ioctl was totally broken. -- Stanislav Sedov ST4096-RIPE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080125060659.GE82888>