public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix CPU hotplug with new time infrastructure
@ 2006-02-12 22:04 Zwane Mwaikambo
  2006-02-13  2:46 ` Nathan Lynch
  0 siblings, 1 reply; 2+ messages in thread
From: Zwane Mwaikambo @ 2006-02-12 22:04 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Andrew Morton, Nathan Lynch, John Stultz

tsc_disable was marked __initdata so we were accessing random data (which 
happened to have a set bit) so upon warm cpu online we would disable the 
TSC, resulting in the following. Nathan does this fix your triple fault?

root@arusha cpu1 {0:0} echo 1 > online
Booting processor 1/1 eip 3000
Disabling TSC...
Calibrating delay using timer specific routine.. 797.62 BogoMIPS 
(lpj=3988115)
CPU1: Intel Pentium II (Deschutes) stepping 02
migration_cost=2595
root@arusha cpu1 {0:0} ps
  PID TTY          TIME CMD
 2432 ttyS0    00:00:00 tcsh
 2490 ttyS0    00:00:00 ps
root@arusha cpu1 {0:0} ps
Segmentation fault
root@arusha cpu1 {0:139}

<signed-off-by> Zwane Mwaikambo <zwane@arm.linux.org.uk>

Index: linux-2.6.16-rc2-mm1/arch/i386/kernel/tsc.c
===================================================================
RCS file: /home/cvsroot/linux-2.6.16-rc2-mm1/arch/i386/kernel/tsc.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 tsc.c
--- linux-2.6.16-rc2-mm1/arch/i386/kernel/tsc.c	11 Feb 2006 16:55:15 -0000	1.1.1.1
+++ linux-2.6.16-rc2-mm1/arch/i386/kernel/tsc.c	12 Feb 2006 22:00:12 -0000
@@ -25,7 +25,7 @@
  */
 unsigned int tsc_khz;
 
-int tsc_disable __initdata = 0;
+int tsc_disable __cpuinitdata = 0;
 
 #ifdef CONFIG_X86_TSC
 static int __init tsc_setup(char *str)

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

* Re: [PATCH] Fix CPU hotplug with new time infrastructure
  2006-02-12 22:04 [PATCH] Fix CPU hotplug with new time infrastructure Zwane Mwaikambo
@ 2006-02-13  2:46 ` Nathan Lynch
  0 siblings, 0 replies; 2+ messages in thread
From: Nathan Lynch @ 2006-02-13  2:46 UTC (permalink / raw)
  To: Zwane Mwaikambo; +Cc: Linux Kernel, Andrew Morton, John Stultz

Zwane Mwaikambo wrote:
> tsc_disable was marked __initdata so we were accessing random data (which 
> happened to have a set bit) so upon warm cpu online we would disable the 
> TSC, resulting in the following. Nathan does this fix your triple fault?

Doesn't apply to latest -linus, which is where I've been seeing that.
I found tsc_disable in arch/i386/kernel/timers/timer_tsc.c, but it's
marked __devinitdata.

So my problem would appear to be something different; I'll try to get
more information, thanks.


> root@arusha cpu1 {0:0} echo 1 > online
> Booting processor 1/1 eip 3000
> Disabling TSC...
> Calibrating delay using timer specific routine.. 797.62 BogoMIPS 
> (lpj=3988115)
> CPU1: Intel Pentium II (Deschutes) stepping 02
> migration_cost=2595
> root@arusha cpu1 {0:0} ps
>   PID TTY          TIME CMD
>  2432 ttyS0    00:00:00 tcsh
>  2490 ttyS0    00:00:00 ps
> root@arusha cpu1 {0:0} ps
> Segmentation fault
> root@arusha cpu1 {0:139}
> 
> <signed-off-by> Zwane Mwaikambo <zwane@arm.linux.org.uk>
> 
> Index: linux-2.6.16-rc2-mm1/arch/i386/kernel/tsc.c
> ===================================================================
> RCS file: /home/cvsroot/linux-2.6.16-rc2-mm1/arch/i386/kernel/tsc.c,v
> retrieving revision 1.1.1.1
> diff -u -p -B -r1.1.1.1 tsc.c
> --- linux-2.6.16-rc2-mm1/arch/i386/kernel/tsc.c	11 Feb 2006 16:55:15 -0000	1.1.1.1
> +++ linux-2.6.16-rc2-mm1/arch/i386/kernel/tsc.c	12 Feb 2006 22:00:12 -0000
> @@ -25,7 +25,7 @@
>   */
>  unsigned int tsc_khz;
>  
> -int tsc_disable __initdata = 0;
> +int tsc_disable __cpuinitdata = 0;
>  
>  #ifdef CONFIG_X86_TSC
>  static int __init tsc_setup(char *str)
> -
> 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] 2+ messages in thread

end of thread, other threads:[~2006-02-13  2:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-12 22:04 [PATCH] Fix CPU hotplug with new time infrastructure Zwane Mwaikambo
2006-02-13  2:46 ` Nathan Lynch

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