mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Ion Badulescu <ionut@badula.org>,
	Linus Torvalds <torvalds@transmeta.com>
Cc: Mikael Pettersson <mikpe@user.it.uu.se>,
	Rusty Russell <rusty@rustcorp.com.au>,
	linux-kernel@vger.kernel.org, mingo@redhat.com
Subject: Re: [BUG] 2.5.63: ESR killed my box!
Date: Wed, 26 Feb 2003 17:40:56 -0800	[thread overview]
Message-ID: <13610000.1046310055@[10.10.2.4]> (raw)
In-Reply-To: <Pine.LNX.4.44.0302261931130.6844-100000@moisil.badula.org>

> Works for me, but I'm curious if it works for Rusty. We're still not sure 
> if he's hitting the same bug... but I guess it's rather early morning in 
> .au. :-)
> 
> Oh, and 2.4 needs the same fix -- and if Mikael's original BUG_ON() is 
> undesirable then we should probably also remove this code from 2.4's 
> apic.c:setup_local_APIC()
> 
>         if (!clustered_apic_mode && 
>             !test_bit(GET_APIC_ID(apic_read(APIC_ID)),
> &phys_cpu_present_map))                 BUG();
> 
> because it's essentially the same test as the BUG_ON(), at least for the 
> UP case.

Also from smpboot.c / mpparse.c. Untested patch below (sorry, don't have a
box to hand that uses phys apicids to boot).

diff -urpN -X /home/fletch/.diff.exclude virgin/arch/i386/kernel/mpparse.c
nonzero_apicid2/arch/i386/kernel/mpparse.c
--- virgin/arch/i386/kernel/mpparse.c	Tue Feb 25 23:03:43 2003
+++ nonzero_apicid2/arch/i386/kernel/mpparse.c	Wed Feb 26 17:39:39 2003
@@ -162,7 +162,8 @@ void __init MP_processor_info (struct mp
 
 	if (m->mpc_cpuflag & CPU_BOOTPROCESSOR) {
 		Dprintk("    Bootup CPU\n");
-		boot_cpu_physical_apicid = m->mpc_apicid;
+		if (m->mpc_apicid != hard_smp_processor_id())
+			printk "Warning: MP table lies about boot cpu\n";
 		boot_cpu_logical_apicid = apicid;
 	}
 
diff -urpN -X /home/fletch/.diff.exclude virgin/arch/i386/kernel/smpboot.c
nonzero_apicid2/arch/i386/kernel/smpboot.c
--- virgin/arch/i386/kernel/smpboot.c	Sat Feb 15 16:11:40 2003
+++ nonzero_apicid2/arch/i386/kernel/smpboot.c	Wed Feb 26 17:37:12 2003
@@ -951,6 +951,7 @@ static void __init smp_boot_cpus(unsigne
 	print_cpu_info(&cpu_data[0]);
 
 	boot_cpu_logical_apicid = logical_smp_processor_id();
+	boot_cpu_physical_apicid = hard_smp_processor_id();
 
 	current_thread_info()->cpu = 0;
 	smp_tune_scheduling();
@@ -1008,9 +1009,6 @@ static void __init smp_boot_cpus(unsigne
 	connect_bsp_APIC();
 	setup_local_APIC();
 	map_cpu_to_logical_apicid();
-
-	if (GET_APIC_ID(apic_read(APIC_ID)) != boot_cpu_physical_apicid)
-		BUG();
 
 	setup_portio_remap();
 


  reply	other threads:[~2003-02-27  1:30 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-26  4:33 Rusty Russell
2003-02-26  5:51 ` Martin J. Bligh
2003-02-26  7:14   ` Rusty Russell
2003-02-26  7:27     ` William Lee Irwin III
2003-02-26 15:20       ` Linus Torvalds
2003-02-26 15:52         ` Martin J. Bligh
2003-02-26 16:37           ` Linus Torvalds
2003-02-26 16:52             ` Martin J. Bligh
2003-02-27  0:32               ` James Cleverdon
2003-02-27 11:11             ` Maciej W. Rozycki
2003-02-26 20:47     ` Ion Badulescu
2003-02-26 21:03       ` Martin J. Bligh
2003-02-26 21:16         ` Ion Badulescu
2003-02-26 21:23           ` Martin J. Bligh
2003-02-26 21:30           ` Linus Torvalds
2003-02-26 21:44             ` Ion Badulescu
2003-02-26 22:05               ` Linus Torvalds
2003-02-26 22:51                 ` Martin J. Bligh
2003-02-26 23:07                 ` Mikael Pettersson
2003-02-27  0:00                   ` Linus Torvalds
2003-02-27  0:45                     ` Martin J. Bligh
2003-02-27  1:20                       ` Ion Badulescu
2003-02-27  1:33                         ` Martin J. Bligh
2003-02-27 10:33                       ` Mikael Pettersson
2003-02-27  1:26                     ` Ion Badulescu
2003-02-27  1:40                       ` Martin J. Bligh [this message]
2003-02-27  7:17                     ` Rusty Russell
2003-02-26  8:43 Rusty Russell
2003-02-26 22:34 Grover, Andrew
2003-03-01  1:42 Mallick, Asit K
2003-03-01  3:07 Mallick, Asit K

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='13610000.1046310055@[10.10.2.4]' \
    --to=mbligh@aracnet.com \
    --cc=ionut@badula.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikpe@user.it.uu.se \
    --cc=mingo@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@transmeta.com \
    /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

all inboxes | Powered by JetHome®