From owner-freebsd-smp Fri Sep 20 12:55:24 2002 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27BD137B401 for ; Fri, 20 Sep 2002 12:55:21 -0700 (PDT) Received: from mail.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8489643E65 for ; Fri, 20 Sep 2002 12:55:20 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 20594 invoked from network); 20 Sep 2002 19:48:44 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 20 Sep 2002 19:48:44 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g8KJmSBv070401; Fri, 20 Sep 2002 15:48:30 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Fri, 20 Sep 2002 15:48:29 -0400 (EDT) From: John Baldwin To: beemern Subject: RE: For those with P4 SMP problems.. Cc: smp@freebsd.org Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 20-Sep-2002 beemern wrote: > > ok, i edit'd as you indicated: > > --snip-- > /* get the PHYSICAL APIC ID# */ > physical_cpu = CPU_TO_ID(logical_cpu); > > printf("CPU_TO_ID of logical_cpu: %d gives physical_cpu %d\n", > logical_cpu,physical_cpu); > > /* XXX: override hack divemojo */ > physical_cpu = 11; > printf("OVERRIDE physical_cpu to: %d\n",physical_cpu); > > /* calculate the vector */ > vector = (boot_addr >> 12) & 0xff; > --snip-- > > and i set physical_cpu to 1,2,3...,11 as you indicated > > rebooting after make'ing and install'ing each kernel gave: > > --snip-- > avail memory = 517992448 (505852K bytes) > Programming 24 pins in IOAPIC #0 > IOAPIC #0 intpin 2 -> irq 0 > Programming 24 pins in IOAPIC #1 > Programming 24 pins in IOAPIC #2 > CPU_TO_ID of logical_cpu: 1 gives physical_cpu 6 > OVERRIDE physical_cpu to: 3 > WOOT WOOT WOOT > AP #1 (PHY# 6) failed! > panic y/n? [y] FreeBSD/SMP: Multiprocessor motherboard > cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 > cpu1 (AP): apic id: 6, version: 0x00000000, at 0xfee00000 > io0 (APIC): apic id: 2, version: 0x00178020, at 0xfec00000 > io1 (APIC): apic id: 3, version: 0x00178020, at 0xfec80000 > io2 (APIC): apic id: 4, version: 0x00178020, at 0xfec80400 > Preloaded elf kernel "kernel" at 0xc03b2000. > --snip-- > > where the ONLY difference, is the printf of the OVERRIDE physical_cpu, > which was obviously different on each instance since i was changing it in > the code (and just wanted to verify it in dmesg) > > basically, EACH kernel edit gave the "panic" msg as indicated in the > snippet > so... any other ideas to try at this point? Grrr. Hmm, might need to do the override in CPU_TO_ID() instead (overriding for logical cpu 1) so it is consistent everywhere. I'm curious, if you boot up linux what apic id does it give for the second CPU? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message