From: "Christopher C. Chimelis" <chris@debian.org>
To: axp-list@redhat.com
Subject: Re: WORKED AROUND - Re: ksymoops debug of 2.4.18 oops on boot.
Date: Thu, 4 Apr 2002 01:38:39 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.21.0204040137040.4278-200000@spawn.hockeyfiend.com> (raw)
In-Reply-To: <20020404161124.A9779@ticons.com.au>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 934 bytes --]
On Thu, 4 Apr 2002, Matthew Tippett wrote:
> Okay, that could explain it.
>
> Although similar to Intel, shouldn't a kernel with SMP support 'just work',
> even if there is no second CPU? Ideally since in our environment we have both
> a ES40 and a DS10, we could have a kernel that runs on both (when multiple
> CPUs are installed).
>
> On our single ES40, I found the SMP kernel failed as well, but turning off
> SMP allowed the kernel to boot.
>
> Thanks for the clues that various people gave around the place. Does anyone
> know of any tuning guides for a DS10 with 1 GB RAM, and an ES40 with 4 GB
> RAM and 340 GB of disk (in a RA3000) - don't ask, the hardware was bought
> before there was any IT staff :(.
Try this patch and see if it helps on the ES40 when booting an SMP
kernel. I think gcc is spitting out bad code for one of the functions,
but the function is unnecessary in 2.4 anyway (patch attached).
C
[-- Attachment #2: Type: TEXT/plain, Size: 2320 bytes --]
Index: arch/alpha/kernel/smp.c
===================================================================
RCS file: /home/cvs/linux-24/arch/alpha/kernel/smp.c,v
retrieving revision 1.1.1.4
retrieving revision 1.4
diff -u -r1.1.1.4 -r1.4
--- arch/alpha/kernel/smp.c 11 Oct 2001 15:41:35 -0000 1.1.1.4
+++ arch/alpha/kernel/smp.c 11 Oct 2001 15:51:36 -0000 1.4
@@ -80,7 +80,6 @@
int smp_num_probed; /* Internal processor count */
int smp_num_cpus = 1; /* Number that came online. */
int smp_threads_ready; /* True once the per process idle is forked. */
-cycles_t cacheflush_time;
int __cpu_number_map[NR_CPUS];
int __cpu_logical_map[NR_CPUS];
@@ -212,63 +211,6 @@
/*
- * Rough estimation for SMP scheduling, this is the number of cycles it
- * takes for a fully memory-limited process to flush the SMP-local cache.
- *
- * We are not told how much cache there is, so we have to guess.
- */
-static void __init
-smp_tune_scheduling (int cpuid)
-{
- struct percpu_struct *cpu;
- unsigned long on_chip_cache;
- unsigned long freq;
-
- cpu = (struct percpu_struct*)((char*)hwrpb + hwrpb->processor_offset
- + cpuid * hwrpb->processor_size);
- switch (cpu->type)
- {
- case EV45_CPU:
- on_chip_cache = 16 + 16;
- break;
-
- case EV5_CPU:
- case EV56_CPU:
- on_chip_cache = 8 + 8 + 96;
- break;
-
- case PCA56_CPU:
- on_chip_cache = 16 + 8;
- break;
-
- case EV6_CPU:
- case EV67_CPU:
- on_chip_cache = 64 + 64;
- break;
-
- default:
- on_chip_cache = 8 + 8;
- break;
- }
-
- freq = hwrpb->cycle_freq ? : est_cycle_freq;
-
-#if 0
- /* Magic estimation stolen from x86 port. */
- cacheflush_time = freq / 1024L * on_chip_cache / 5000L;
-
- printk("Using heuristic of %d cycles.\n",
- cacheflush_time);
-#else
- /* Magic value to force potential preemption of other CPUs. */
- cacheflush_time = INT_MAX;
-
- printk("Using heuristic of %d cycles.\n",
- cacheflush_time);
-#endif
-}
-
-/*
* Send a message to a secondary's console. "START" is one such
* interesting message. ;-)
*/
@@ -607,7 +549,6 @@
current->processor = boot_cpuid;
smp_store_cpu_info(boot_cpuid);
- smp_tune_scheduling(boot_cpuid);
smp_setup_percpu_timer(boot_cpuid);
init_idle();
next prev parent reply other threads:[~2002-04-04 6:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-03 23:27 ksymoops debug of 2.4.18 oops on boot Matthew Tippett
2002-04-04 5:19 ` WORKED AROUND - " Matthew Tippett
2002-04-04 5:45 ` Kurt A. Ludwig
2002-04-04 6:11 ` Matthew Tippett
2002-04-04 6:38 ` Christopher C. Chimelis [this message]
2002-04-04 6:51 ` Matthew Tippett
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox