mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: P4/i845 Strange clock drifting
@ 2002-04-05 17:52 Mikael Pettersson
  2002-04-08 13:49 ` Chris Wilson
  0 siblings, 1 reply; 10+ messages in thread
From: Mikael Pettersson @ 2002-04-05 17:52 UTC (permalink / raw)
  To: chris; +Cc: linux-kernel

On Fri, 5 Apr 2002 13:28:10 +0100, Chris Wilson wrote:
>I've now tried a couple more kernels to no avail - nothing can find APICs.
>Is it even possible for a P4 to not have a local APIC? System is a
>supermicro 5012B*. 
>
>/proc/cpuinfo shows:
>
>flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
>
>(notice no "apic"). Is this normal/correct? If just just removed the check
>from apic.c and tried to enable the apic anyway then are bad things going
>to happen? 

Your P4 does contain a local APIC, but your BIOS chose to disable it.
The following patch should (re)enable it:

--- linux-2.5.7/arch/i386/kernel/apic.c.~1~	Sat Mar  9 12:53:12 2002
+++ linux-2.5.7/arch/i386/kernel/apic.c	Fri Apr  5 19:35:14 2002
@@ -603,7 +603,7 @@
 		goto no_apic;
 	case X86_VENDOR_INTEL:
 		if (boot_cpu_data.x86 == 6 ||
-		    (boot_cpu_data.x86 == 15 && cpu_has_apic) ||
+		    boot_cpu_data.x86 == 15 ||
 		    (boot_cpu_data.x86 == 5 && cpu_has_apic))
 			break;
 		goto no_apic;
@@ -615,7 +615,7 @@
 		/*
 		 * Some BIOSes disable the local APIC in the
 		 * APIC_BASE MSR. This can only be done in
-		 * software for Intel P6 and AMD K7 (Model > 1).
+		 * software for Intel P6/P4 and AMD K7 (Model > 1).
 		 */
 		rdmsr(MSR_IA32_APICBASE, l, h);
 		if (!(l & MSR_IA32_APICBASE_ENABLE)) {

This should work (and is known to work on many P6 and K7 boards),
but your BIOS may have problems with the local APIC.
- does apm --suspend work? does the resume afterwards work?
- if you run something compute-intensive for a while, does it
  continue working ok or does it hang suddenly?
If your box remained stable, great!

If it experienced problems like unexpected hangs, then we'll need to
prevent the local APIC from being enabled on this mainboard.
In this case, please apply the patch below, reconfigure without
local APIC support, rebuild and send me (not the list) the DMI strings
printed during boot -- or the entire boot log if you're not certain
which parts are the DMI strings.

/Mikael

--- linux-2.5.7/arch/i386/kernel/dmi_scan.c.~1~	Tue Mar 19 01:10:03 2002
+++ linux-2.5.7/arch/i386/kernel/dmi_scan.c	Fri Apr  5 19:35:33 2002
@@ -21,8 +21,8 @@
 	u16	handle;
 };
 
-#define dmi_printk(x)
-//#define dmi_printk(x) printk x
+//#define dmi_printk(x)
+#define dmi_printk(x) printk x
 
 static char * __init dmi_string(struct dmi_header *dm, u8 s)
 {

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: P4/i845 Strange clock drifting
@ 2002-04-03 14:52 "Fernández-Victorio Arévalo, Gonzalo"
  0 siblings, 0 replies; 10+ messages in thread
From: "Fernández-Victorio Arévalo, Gonzalo" @ 2002-04-03 14:52 UTC (permalink / raw)
  To: 'Chris Wilson', linux-kernel


Hi.

Maybe you could read Bernd Schubert message to this list on Wed Mar 27 2002
- 10:28:35 EST
http://www.uwsg.iu.edu/hypermail/linux/kernel/0203.3/0557.html

HTH

Gonzalo

-----Original Message-----
From: Chris Wilson [mailto:chris@jakdaw.org]
Sent: Wednesday, April 03, 2002 4:10 PM
To: linux-kernel@vger.kernel.org
Subject: P4/i845 Strange clock drifting



Hi,

I've got a 1U 2.0 Ghz P4 rackmount server with an i845 chipset and have
noticed some strange issues with the timer. For the most part it keeps
time perfectly... but pretty often (tens of times each day) it'll have
drifted anything from a few seconds to a few minutes - during a 10 minute
period. It's always behind-time - so perhaps this is something to do with
the P4's throttling stuff? Has anyone else seen similar?

I tried to use 2.5.7-dj2 with Zwane Mwaikambo's thermal LVT support in
there but it didn't detect a local APIC on bootup (!) - I'm guessing there
needs to be an APIC for Zwane's stuff? When I tried to switch back to
2.4.18 the machine never came back - as soon as someone power cycles it
then I can do some more tests!

Regards,

Chris

-- 
Chris Wilson
chris@jakdaw.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 10+ messages in thread
* P4/i845 Strange clock drifting
@ 2002-04-03 14:10 Chris Wilson
  2002-04-03 14:17 ` Zwane Mwaikambo
  0 siblings, 1 reply; 10+ messages in thread
From: Chris Wilson @ 2002-04-03 14:10 UTC (permalink / raw)
  To: linux-kernel


Hi,

I've got a 1U 2.0 Ghz P4 rackmount server with an i845 chipset and have
noticed some strange issues with the timer. For the most part it keeps
time perfectly... but pretty often (tens of times each day) it'll have
drifted anything from a few seconds to a few minutes - during a 10 minute
period. It's always behind-time - so perhaps this is something to do with
the P4's throttling stuff? Has anyone else seen similar?

I tried to use 2.5.7-dj2 with Zwane Mwaikambo's thermal LVT support in
there but it didn't detect a local APIC on bootup (!) - I'm guessing there
needs to be an APIC for Zwane's stuff? When I tried to switch back to
2.4.18 the machine never came back - as soon as someone power cycles it
then I can do some more tests!

Regards,

Chris

-- 
Chris Wilson
chris@jakdaw.org

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-04-09  9:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-05 17:52 P4/i845 Strange clock drifting Mikael Pettersson
2002-04-08 13:49 ` Chris Wilson
2002-04-09  9:33   ` Chris Wilson
  -- strict thread matches above, loose matches on Subject: below --
2002-04-03 14:52 "Fernández-Victorio Arévalo, Gonzalo"
2002-04-03 14:10 Chris Wilson
2002-04-03 14:17 ` Zwane Mwaikambo
2002-04-05 12:28   ` Chris Wilson
2002-04-05 14:31     ` Zwane Mwaikambo
2002-04-05 15:01       ` Chris Wilson
2002-04-05 16:40         ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®