All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kenneth Ho <ken.ho@theorem.ca>
To: Ducrot Bruno <ducrot@poupinou.org>
Cc: cpufreq@www.linux.org.uk
Subject: Re: speedstep-piix4 don't work
Date: Wed, 09 Jul 2003 02:09:41 -0400	[thread overview]
Message-ID: <3F0BB1A5.7040606@theorem.ca> (raw)
In-Reply-To: <20030708181735.GN7796@poupinou.org>

Ducrot Bruno wrote:

>I can not promise you anything, but can you try the patch attached?
>
>This also add a little bit more debug output (just to check that
>I do it ok for gpo stuff) and the fix may be in the lines
>that look like:
>
>	pcntrl |= 1 << 9;               /* CC_EN = 1 */
>and
>	pcntrl |= (0x3 << 1);
>
>
>--- linux-2.4.21-ac4/arch/i386/kernel/speedstep-piix4.c	2003/07/08 18:01:49	1.1
>+++ linux-2.4.21-ac4/arch/i386/kernel/speedstep-piix4.c	2003/07/08 18:08:17
>@@ -123,9 +123,11 @@
> 	/* read state */
> 	value = inb_p(pmbase + gpo_hilo_port);
> 
>+	dprintk(KERN_DEBUG "speedstep: reading %.2x from port %.4x\n", value, pmbase + gpo_hilo_port);
> 	/* compute new state */
> 	value &= ~(1 << gpo_hilo_shift);
> 	value |= state << gpo_hilo_shift;
>+	dprintk(KERN_DEBUG "speedstep: new gpo value: 0x%.2x\n", value);
> 
> 	/* disable bus master arbitration */
> 	pm2_blk = inb(0x22);
>@@ -139,12 +141,12 @@
> 	pcntrl |= 1 << 12;              /* STPCLK_EN = 1 */
> 	pcntrl |= 1 << 11;              /* SLEEP_EN = 1 */
> 	pcntrl &= ~(1 << 10);           /* BURST_EN = 0 */
>-	pcntrl &= ~(1 << 9);            /* CC_EN = 0 */
>+	pcntrl |= 1 << 9;               /* CC_EN = 1 */
> 	pcntrl &= ~(1 << 4);            /* THT_EN = 0 */
> 
> 	/* We may have to define a 'good' throttling duty ? */
> 	pcntrl &= ~(0x7 << 1);
>-	pcntrl |= (0x2 << 1);
>+	pcntrl |= (0x3 << 1);
> 
> 	dprintk(KERN_DEBUG "pcntrl before: 0x%.8x\n", pcntrl_save);
> 	dprintk(KERN_DEBUG "pcntrl after:  0x%.8x\n", pcntrl);
>@@ -323,7 +325,7 @@
> 
> 	gpo_hilo_port = 0x34 + (gpo_hilo / 8);
> 	gpo_hilo_shift = (gpo_hilo % 8);
>-
>+	dprintk(KERN_INFO "speedstep: gpo port: 0x%.2x shift: 0x%.2x\n", gpo_hilo_port, gpo_hilo_shift);
> 	return cpufreq_register_driver(&speedstep_driver);
> }
> 
>
>  
>
No good - still won't change frequency.

dmesg output follows after the patch:

cpufreq: Coppermine: MSR_IA32_EBL_CR_POWERON is 0x44080020, 0x0
cpufreq: Coppermine: MSR_IA32_PLATFORM ID is 0x0, 0x2540000
speedstep: gpo port: 0x34 shift: 0x00
speedstep-lib: P3 - MSR_IA32_EBL_CR_POWERON: 0x44080020 0x0
speedstep-lib: P3 - MSR_IA32_EBL_CR_POWERON: 0x44080020 0x0
cntb before: 0x000000e1
cntb after:  0x000007e1
speedstep: reading ff from port 1034
speedstep: new gpo value: 0xff
pcntrl before: 0x00001200
pcntrl after:  0x00001a06
speedstep-lib: P3 - MSR_IA32_EBL_CR_POWERON: 0x44080020 0x0
cpufreq: change failed
speedstep-lib: P3 - MSR_IA32_EBL_CR_POWERON: 0x44080020 0x0
speedstep-lib: P3 - MSR_IA32_EBL_CR_POWERON: 0x44080020 0x0
cntb before: 0x000000e1
cntb after:  0x000007e1
speedstep: reading ff from port 1034
speedstep: new gpo value: 0xfe
pcntrl before: 0x00001200
pcntrl after:  0x00001a06
speedstep-lib: P3 - MSR_IA32_EBL_CR_POWERON: 0x44080020 0x0
cpufreq: change failed
speedstep-lib: P3 - MSR_IA32_EBL_CR_POWERON: 0x44080020 0x0

  reply	other threads:[~2003-07-09  6:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-08 16:12 speedstep-piix4 don't work Kenneth Ho
2003-07-08 16:35 ` Ducrot Bruno
2003-07-08 17:45   ` Kenneth Ho
2003-07-08 18:17     ` Ducrot Bruno
2003-07-09  6:09       ` Kenneth Ho [this message]
2003-07-09 10:08         ` Ducrot Bruno
2003-07-11 15:11           ` Frank Mehnert
2003-07-11 15:48             ` Ducrot Bruno
2003-07-11 16:08               ` Frank Mehnert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F0BB1A5.7040606@theorem.ca \
    --to=ken.ho@theorem.ca \
    --cc=cpufreq@www.linux.org.uk \
    --cc=ducrot@poupinou.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.