public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Schlichter <thomas.schlichter@web.de>
To: "Prakash K. Cheemplavam" <PrakashKC@gmx.de>
Cc: Len Brown <len.brown@intel.com>,
	john stultz <johnstul@us.ibm.com>,
	lkml <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
	Dominik Brodowski <linux@brodo.de>
Subject: Re: ACPI PM Timer vs. C1 halt issue
Date: Thu, 11 Mar 2004 01:15:34 +0100	[thread overview]
Message-ID: <200403110115.36257.thomas.schlichter@web.de> (raw)
In-Reply-To: <404F9B5B.6010207@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

Hi!

As your problem may be similar to mine,
(http://marc.theaimsgroup.com/?l=linux-kernel&m=107840458123059&w=2)
you may try to boot with ACPI PM timer enabled but with the additional boot 
option 'noapic'. If this also cools down your processor, you maybe should try 
the attached patch....

   Thomas

Am Mittwoch, 10. März 2004 23:48 schrieb Prakash K. Cheemplavam:
> [snip]
>
> > That said, I don't know what caused the regression you describe.
> > Perhaps you can clarfiy the minimal changes necessary to switch between
> > correct and incorrect behaviour?
>
> Simply use tsc as timesource instead of PM Timer (ie not compiling in
> the latter) and all is cool again (now idle temp is as low as 40°C!).
> ACPI as such is included. I attached my current config. I guess one
> could also use a kernel boot parameter to switch between those timers.
>
> I don't know whether it is actual a problem with C1 or whatever. I just
> described my assumption I made. If I disable CPU disconnect, my CPU runs
> hot again even with tsc timer. With ACPI PM timer disconnect makes no
> difference (hot everytime...).
>
> Cheers,
>
> Prakash

[-- Attachment #2: fix-8259-timer-ack.diff --]
[-- Type: text/x-diff, Size: 1021 bytes --]

--- linux-2.6.4-rc2-mm1/arch/i386/kernel/io_apic.c.orig	2004-03-08 16:29:14.000000000 +0100
+++ linux-2.6.4-rc2-mm1/arch/i386/kernel/io_apic.c	2004-03-08 17:26:40.000000000 +0100
@@ -2181,7 +2181,7 @@ static inline void check_timer(void)
 	 */
 	apic_write_around(APIC_LVT0, APIC_LVT_MASKED | APIC_DM_EXTINT);
 	init_8259A(1);
-	if (nmi_watchdog == NMI_IO_APIC && !APIC_INTEGRATED(ver))
+	if (nmi_watchdog == NMI_IO_APIC || APIC_INTEGRATED(ver))
 		timer_ack = 1;
 	else
 		timer_ack = !cpu_has_tsc;
@@ -2202,7 +2202,7 @@ static inline void check_timer(void)
 				disable_8259A_irq(0);
 				setup_nmi();
 				enable_8259A_irq(0);
-				if (check_nmi_watchdog() < 0);
+				if (check_nmi_watchdog() < 0)
 					timer_ack = !cpu_has_tsc;
 			}
 			return;
@@ -2226,7 +2226,7 @@ static inline void check_timer(void)
 				add_pin_to_irq(0, 0, pin2);
 			if (nmi_watchdog == NMI_IO_APIC) {
 				setup_nmi();
-				if (check_nmi_watchdog() < 0);
+				if (check_nmi_watchdog() < 0)
 					timer_ack = !cpu_has_tsc;
 			}
 			return;

  reply	other threads:[~2004-03-11  0:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-09 21:35 ACPI PM Timer vs. C1 halt issue Prakash K. Cheemplavam
2004-03-09 22:11 ` john stultz
2004-03-09 22:45   ` Prakash K. Cheemplavam
2004-03-10 21:49     ` john stultz
2004-03-10 22:11       ` Len Brown
2004-03-10 22:48         ` Prakash K. Cheemplavam
2004-03-11  0:15           ` Thomas Schlichter [this message]
2004-03-11  8:47             ` Prakash K. Cheemplavam
2004-03-11 13:46               ` Thomas Schlichter
2004-03-11 14:23                 ` Prakash K. Cheemplavam
2004-03-10 22:53         ` Prakash K. Cheemplavam
2004-03-11 18:14         ` Prakash K. Cheemplavam

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=200403110115.36257.thomas.schlichter@web.de \
    --to=thomas.schlichter@web.de \
    --cc=PrakashKC@gmx.de \
    --cc=akpm@osdl.org \
    --cc=johnstul@us.ibm.com \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@brodo.de \
    --cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox