mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* NUMA-Q breakage 4/7 cpu_init() heisenbug
@ 2002-07-12 22:39 William Lee Irwin III
  0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2002-07-12 22:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: mochel, hpa

cpu_init() (or something nearby) is broken and there is no clear way to
tell why. Adding printk's seems to make it go away. hpa seemed to have
a notion of what was going on around here.

Workaround below.


Cheers,
Bill



===== arch/i386/kernel/cpu/common.c 1.1 vs edited =====
--- 1.1/arch/i386/kernel/cpu/common.c	Fri May 10 09:06:30 2002
+++ edited/arch/i386/kernel/cpu/common.c	Thu Jul 11 22:09:41 2002
@@ -446,6 +446,8 @@
 	__asm__ __volatile__("lgdt %0": "=m" (gdt_descr));
 	__asm__ __volatile__("lidt %0": "=m" (idt_descr));
 
+	printk(KERN_INFO "Loading GDT/IDT for CPU#%d\n", nr);
+
 	/*
 	 * Delete NT
 	 */
@@ -466,6 +468,8 @@
 	load_TR(nr);
 	load_LDT(&init_mm.context);
 
+	printk(KERN_INFO "Loaded per-cpu LDT/TSS for CPU#%d\n", nr);
+
 	/* Clear %fs and %gs. */
 	asm volatile ("xorl %eax, %eax; movl %eax, %fs; movl %eax, %gs");
 
@@ -483,4 +487,6 @@
 	clear_thread_flag(TIF_USEDFPU);
 	current->used_math = 0;
 	stts();
+
+	printk(KERN_INFO "Cleaned up FPU and debug regs for CPU#%d\n", nr);
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-12 22:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-12 22:39 NUMA-Q breakage 4/7 cpu_init() heisenbug William Lee Irwin III

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®