From owner-freebsd-smp Thu Feb 8 16:26:22 2001 Delivered-To: freebsd-smp@freebsd.org Received: from abattoir.com (limbo.abattoir.com [63.73.217.13]) by hub.freebsd.org (Postfix) with ESMTP id A522D37B401 for ; Thu, 8 Feb 2001 16:26:03 -0800 (PST) Received: (from banshee@localhost) by abattoir.com (8.9.3/8.9.3) id QAA13198 for freebsd-smp@freebsd.org; Thu, 8 Feb 2001 16:26:02 -0800 (PST) Date: Thu, 8 Feb 2001 16:26:02 -0800 (PST) From: John M Vinopal Message-Id: <200102090026.QAA13198@abattoir.com> To: freebsd-smp@freebsd.org Subject: sharing pci irq == conflicts Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org FreeBSD 4.2-STABLE HP Vectra XU 6/180 Dual PPro used as a gateway Solid in uniprocessor mode, but in SMP it sporadically generates watchdog timeouts on both ethernet interfaces, which then persist and lock down the interfaces. Seems to be the same problem reported on Dec 25, 2000 by Vic E Loukatch as "FREEBSD TROUBLE" in -stable. I suspect the problem here is that they are sharing irq 11 and somehow getting out of sync. When I reconfigure irq (free them from isa use), the system runs fine. -j >Changing APIC ID for IO APIC #0 from 16 to 2 in MP table >APIC_IO: MP table broken: 8259->APIC entry missing! >Programming 16 pins in IOAPIC #0 >IOAPIC #0 intpin 2 -> irq 0 >FreeBSD/SMP: Multiprocessor motherboard >cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000 >cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 >io0 (APIC): apic id: 2, version: 0x000f0011, at 0xfec00000 >dc0: port 0xff00-0xff7f mem 0xfffcc000-0xfffcc3ff irq 11 at device 12.0 on pci0 >miibus0: on dc0 >xl0: <3Com 3c905-TX> port 0xff80-0xffbf irq 11 at device 13.0 on pci0 >miibus1: on xl0 =============================================================================== MPTable, version 2.0.15 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: BIOS physical address: 0x000f95c0 signature: '_MP_' length: 16 bytes version: 1.1 checksum: 0x2f mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x000f95d0 signature: 'PCMP' base table length: 236 version: 1.1 checksum: 0xe0 OEM ID: 'HP ' Product ID: 'XX ' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 21 local APIC address: 0xfee00000 extended table length: 0 extended table checksum: 0 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 1 0x11 BSP, usable 6 1 0 0xfbff 0 0x11 AP, usable 6 1 0 0xfbff -- Bus: Bus ID Type 1 ISA 0 PCI -- I/O APICs: APIC ID Version State Address 16 0x11 usable 0xfec00000 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# INT conforms conforms 1 1 255 1 INT conforms conforms 1 0 255 2 INT conforms conforms 1 3 255 3 INT conforms conforms 1 4 255 4 INT conforms conforms 1 5 255 5 INT conforms conforms 1 6 255 6 INT conforms conforms 1 7 255 7 INT conforms conforms 1 8 255 8 INT conforms conforms 1 9 255 9 INT conforms conforms 1 10 255 10 INT conforms conforms 1 11 255 11 INT conforms conforms 1 12 255 12 INT conforms conforms 1 13 255 13 INT conforms conforms 1 14 255 14 INT conforms conforms 1 15 255 15 -- Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# NMI conforms conforms 1 2 255 1 =============================================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Thu Feb 8 16:35:25 2001 Delivered-To: freebsd-smp@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 1E3F437B401 for ; Thu, 8 Feb 2001 16:35:07 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.1/8.11.1) with ESMTP id f190aZ302432; Thu, 8 Feb 2001 16:36:36 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200102090036.f190aZ302432@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: John M Vinopal Cc: freebsd-smp@freebsd.org Subject: Re: sharing pci irq == conflicts In-reply-to: Your message of "Thu, 08 Feb 2001 16:26:02 PST." <200102090026.QAA13198@abattoir.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 08 Feb 2001 16:36:35 -0800 From: Mike Smith Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > FreeBSD 4.2-STABLE > HP Vectra XU 6/180 Dual PPro > used as a gateway > > Solid in uniprocessor mode, but in SMP it sporadically generates watchdog > timeouts on both ethernet interfaces, which then persist and lock down the > interfaces. Seems to be the same problem reported on Dec 25, 2000 by > Vic E Loukatch as "FREEBSD TROUBLE" in -stable. > > I suspect the problem here is that they are sharing irq 11 and somehow > getting out of sync. When I reconfigure irq (free them from isa use), > the system runs fine. I don't know what exactly you're saying you do here, however it's worth knowing that in SMP mode, the "irq" value is *NOT* the IRQ assigned to a device. It's an opaque handler number that we probably shouldn't be printing. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Fri Feb 9 20:44:20 2001 Delivered-To: freebsd-smp@freebsd.org Received: from pozo.com (pozo.com [216.101.162.50]) by hub.freebsd.org (Postfix) with ESMTP id 0C1DD37B401; Fri, 9 Feb 2001 20:43:59 -0800 (PST) Received: from dual.pozo.com (dual.pozo.com [216.101.162.51]) by pozo.com (8.11.2/8.11.2) with ESMTP id f1A4hqj00429; Fri, 9 Feb 2001 20:43:57 -0800 (PST) (envelope-from null@pozo.com) Message-Id: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> X-Sender: null@pozo.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 09 Feb 2001 20:43:51 -0800 To: current@FreeBSD.ORG From: Manfred Antar Subject: Current SMP Kernel panics Cc: smp@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org A current kernel built 10 mins ago form fresh cvsup panics: APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0 IPsec: Initialized Security Association Processing. panic: mutex sched lock not owned at ../../kern/kern_synch.c:175 cpuid = 0; lapic.id = 00000000 syncing disks... done Uptime: 0s dpt0: Shutting down (mode 100) HBA. Please wait... dpt0: Controller was warned of shutdown and is now disabled Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... Manfred ================================== || null@pozo.com || || Ph. (415) 681-6235 || ================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sat Feb 10 7:21: 7 2001 Delivered-To: freebsd-smp@freebsd.org Received: from garm.bart.nl (garm.bart.nl [194.158.170.13]) by hub.freebsd.org (Postfix) with ESMTP id 5C57C37B4EC; Sat, 10 Feb 2001 07:20:46 -0800 (PST) Received: from daemon.chronias.ninth-circle.org (root@cable.ninth-circle.org [195.38.232.6]) by garm.bart.nl (8.10.1/8.10.1) with ESMTP id f1AFKeF23286; Sat, 10 Feb 2001 16:20:40 +0100 (CET) Received: (from asmodai@localhost) by daemon.chronias.ninth-circle.org (8.11.1/8.11.0) id f1AFKYK00603; Sat, 10 Feb 2001 16:20:34 +0100 (CET) (envelope-from asmodai) Date: Sat, 10 Feb 2001 16:20:34 +0100 From: Jeroen Ruigrok/Asmodai To: Manfred Antar Cc: current@FreeBSD.ORG, smp@FreeBSD.ORG Subject: Re: Current SMP Kernel panics Message-ID: <20010210162033.C406@daemon.ninth-circle.org> References: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com>; from null@pozo.com on Fri, Feb 09, 2001 at 08:43:51PM -0800 Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [20010210 06:26], Manfred Antar (null@pozo.com) wrote: >APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0 >IPsec: Initialized Security Association Processing. >panic: mutex sched lock not owned at ../../kern/kern_synch.c:175 Me too. 166 static void 167 roundrobin(arg) 168 void *arg; 169 { 170 #ifndef SMP 171 struct proc *p = curproc; /* XXX */ 172 #endif 173 174 #ifdef SMP 175 need_resched(); 176 forward_roundrobin(); 177 #else 178 if (p == PCPU_GET(idleproc) || RTP_PRIO_NEED_RR(p->p_rtprio.type) ) 179 need_resched(); 180 #endif 181 182 callout_reset(&roundrobin_callout, sched_quantum, roundrobin, NUL L); 183 } Should it become: #ifdef SMP mtx_lock_spin(&sched_lock); need_resched(); forward_roundrobin(); mtx_unlock_spin(&sched_lock); #else ? I cannot test it yet, need to reanimate my testbox first. -- Jeroen Ruigrok vd Werven/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] Documentation nutter/C-rated Coder BSD: Technical excellence at its best D78D D0AD 244D 1D12 C9CA 7152 035C 1138 546A B867 I'm a child of the air, I'm a witch of the wind... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sat Feb 10 8:24:41 2001 Delivered-To: freebsd-smp@freebsd.org Received: from garm.bart.nl (garm.bart.nl [194.158.170.13]) by hub.freebsd.org (Postfix) with ESMTP id CB79337B401; Sat, 10 Feb 2001 08:24:21 -0800 (PST) Received: from daemon.chronias.ninth-circle.org (root@cable.ninth-circle.org [195.38.232.6]) by garm.bart.nl (8.10.1/8.10.1) with ESMTP id f1AGOHK25539; Sat, 10 Feb 2001 17:24:17 +0100 (CET) Received: (from asmodai@localhost) by daemon.chronias.ninth-circle.org (8.11.1/8.11.0) id f1AGOIl00820; Sat, 10 Feb 2001 17:24:18 +0100 (CET) (envelope-from asmodai) Date: Sat, 10 Feb 2001 17:24:17 +0100 From: Jeroen Ruigrok/Asmodai To: current@FreeBSD.ORG, smp@FreeBSD.ORG Subject: Re: Current SMP Kernel panics Message-ID: <20010210172417.F406@daemon.ninth-circle.org> References: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> <20010210162033.C406@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010210162033.C406@daemon.ninth-circle.org>; from asmodai@wxs.nl on Sat, Feb 10, 2001 at 04:20:34PM +0100 Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [20010210 16:27], Jeroen Ruigrok/Asmodai (asmodai@wxs.nl) wrote: >#ifdef SMP > mtx_lock_spin(&sched_lock); > need_resched(); > forward_roundrobin(); > mtx_unlock_spin(&sched_lock); >#else This does not quite work. I don't get the panic() anymore, but now I have solve the hanging. :) Perhaps only need_resched() needs to be spinlocked. I am not sure, I am not a SMP guru. -- Jeroen Ruigrok vd Werven/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] Documentation nutter/C-rated Coder BSD: Technical excellence at its best D78D D0AD 244D 1D12 C9CA 7152 035C 1138 546A B867 I'm a child of the air, I'm a witch of the wind... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sat Feb 10 8:54:38 2001 Delivered-To: freebsd-smp@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id EFFAD37B4EC; Sat, 10 Feb 2001 08:54:17 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f1AGsGi26440; Sat, 10 Feb 2001 08:54:16 -0800 (PST) Date: Sat, 10 Feb 2001 08:54:16 -0800 From: Alfred Perlstein To: Jeroen Ruigrok/Asmodai Cc: current@FreeBSD.ORG, smp@FreeBSD.ORG Subject: Re: Current SMP Kernel panics Message-ID: <20010210085416.H3274@fw.wintelcom.net> References: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> <20010210162033.C406@daemon.ninth-circle.org> <20010210172417.F406@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010210172417.F406@daemon.ninth-circle.org>; from asmodai@wxs.nl on Sat, Feb 10, 2001 at 05:24:17PM +0100 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Jeroen Ruigrok/Asmodai [010210 08:24] wrote: > -On [20010210 16:27], Jeroen Ruigrok/Asmodai (asmodai@wxs.nl) wrote: > >#ifdef SMP > > mtx_lock_spin(&sched_lock); > > need_resched(); > > forward_roundrobin(); > > mtx_unlock_spin(&sched_lock); > >#else > > This does not quite work. > > I don't get the panic() anymore, but now I have solve the hanging. :) > > Perhaps only need_resched() needs to be spinlocked. I am not sure, I am > not a SMP guru. That looks correct, need_resched() needs sched_lock. I'm currently looking to see if forward_roundrobin() does as well. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sat Feb 10 9: 7: 0 2001 Delivered-To: freebsd-smp@freebsd.org Received: from pozo.com (pozo.com [216.101.162.50]) by hub.freebsd.org (Postfix) with ESMTP id F00B537B4EC; Sat, 10 Feb 2001 09:06:32 -0800 (PST) Received: from dual.pozo.com (dual.pozo.com [216.101.162.51]) by pozo.com (8.11.2/8.11.2) with ESMTP id f1AH6O600441; Sat, 10 Feb 2001 09:06:26 -0800 (PST) (envelope-from null@pozo.com) Message-Id: <5.0.2.1.2.20010210090400.00a6d0b8@pozo.com> X-Sender: null@pozo.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sat, 10 Feb 2001 09:06:23 -0800 To: Jeroen Ruigrok/Asmodai From: Manfred Antar Subject: Re: Current SMP Kernel panics Cc: current@FreeBSD.ORG, smp@FreeBSD.ORG In-Reply-To: <20010210162033.C406@daemon.ninth-circle.org> References: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 04:20 PM 2/10/2001 +0100, Jeroen Ruigrok/Asmodai wrote: >-On [20010210 06:26], Manfred Antar (null@pozo.com) wrote: >>APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0 >>IPsec: Initialized Security Association Processing. >>panic: mutex sched lock not owned at ../../kern/kern_synch.c:175 > >Me too. > >166 static void >167 roundrobin(arg) >168 void *arg; >169 { >170 #ifndef SMP >171 struct proc *p = curproc; /* XXX */ >172 #endif >173 >174 #ifdef SMP >175 need_resched(); >176 forward_roundrobin(); >177 #else >178 if (p == PCPU_GET(idleproc) || RTP_PRIO_NEED_RR(p->p_rtprio.type) > ) >179 need_resched(); >180 #endif >181 >182 callout_reset(&roundrobin_callout, sched_quantum, roundrobin, NUL > L); >183 } > >Should it become: > >#ifdef SMP > mtx_lock_spin(&sched_lock); > need_resched(); > forward_roundrobin(); > mtx_unlock_spin(&sched_lock); >#else > >? > >I cannot test it yet, need to reanimate my testbox first. > I tried the above and the machine just hangs when it comes to: SMP: AP CPU # 1 Launched! :( Manfred ================================== || null@pozo.com || || Ph. (415) 681-6235 || ================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sat Feb 10 9:10:25 2001 Delivered-To: freebsd-smp@freebsd.org Received: from cr66388-a.rchrd1.on.wave.home.com (cr66388-a.rchrd1.on.wave.home.com [24.114.165.24]) by hub.freebsd.org (Postfix) with ESMTP id EA17837B401; Sat, 10 Feb 2001 09:10:05 -0800 (PST) Received: from cr66388-a.rchrd1.on.wave.home.c (localhost [127.0.0.1]) by cr66388-a.rchrd1.on.wave.home.com (Postfix) with ESMTP id BECB0BAB0; Sat, 10 Feb 2001 12:10:05 -0500 (EST) X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.3 To: Jeroen Ruigrok/Asmodai Cc: Manfred Antar , current@FreeBSD.ORG, smp@FreeBSD.ORG Subject: Re: Current SMP Kernel panics In-Reply-To: Message from Jeroen Ruigrok/Asmodai of "Sat, 10 Feb 2001 16:20:34 +0100." <20010210162033.C406@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Feb 2001 12:10:05 -0500 From: Jake Burkholder Message-Id: <20010210171005.BECB0BAB0@cr66388-a.rchrd1.on.wave.home.com> Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Should it become: > > #ifdef SMP > mtx_lock_spin(&sched_lock); > need_resched(); > forward_roundrobin(); > mtx_unlock_spin(&sched_lock); > #else > > ? > > I cannot test it yet, need to reanimate my testbox first. You need to handle the UP case as well :) Also, I don't think that sched_lock should be held across forward_roundrobin(). But, my box still hangs with the assertion satisifed. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sat Feb 10 9:11:38 2001 Delivered-To: freebsd-smp@freebsd.org Received: from garm.bart.nl (garm.bart.nl [194.158.170.13]) by hub.freebsd.org (Postfix) with ESMTP id 5ABC737B4EC; Sat, 10 Feb 2001 09:11:17 -0800 (PST) Received: from daemon.chronias.ninth-circle.org (root@cable.ninth-circle.org [195.38.232.6]) by garm.bart.nl (8.10.1/8.10.1) with ESMTP id f1AHBCn27833; Sat, 10 Feb 2001 18:11:13 +0100 (CET) Received: (from asmodai@localhost) by daemon.chronias.ninth-circle.org (8.11.1/8.11.0) id f1AHBD001018; Sat, 10 Feb 2001 18:11:13 +0100 (CET) (envelope-from asmodai) Date: Sat, 10 Feb 2001 18:11:13 +0100 From: Jeroen Ruigrok/Asmodai To: Alfred Perlstein Cc: current@FreeBSD.ORG, smp@FreeBSD.ORG Subject: Re: Current SMP Kernel panics Message-ID: <20010210181112.G406@daemon.ninth-circle.org> References: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> <20010210162033.C406@daemon.ninth-circle.org> <20010210172417.F406@daemon.ninth-circle.org> <20010210085416.H3274@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010210085416.H3274@fw.wintelcom.net>; from bright@wintelcom.net on Sat, Feb 10, 2001 at 08:54:16AM -0800 Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [20010210 18:08], Alfred Perlstein (bright@wintelcom.net) wrote: >* Jeroen Ruigrok/Asmodai [010210 08:24] wrote: >> >> Perhaps only need_resched() needs to be spinlocked. I am not sure, I am >> not a SMP guru. > >That looks correct, need_resched() needs sched_lock. Problem is that when I sched_lock need_resched() it just hangs and doesn't boot further. -- Jeroen Ruigrok vd Werven/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] Documentation nutter/C-rated Coder BSD: Technical excellence at its best D78D D0AD 244D 1D12 C9CA 7152 035C 1138 546A B867 I'm a child of the air, I'm a witch of the wind... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sat Feb 10 11:46:27 2001 Delivered-To: freebsd-smp@freebsd.org Received: from garm.bart.nl (garm.bart.nl [194.158.170.13]) by hub.freebsd.org (Postfix) with ESMTP id 5A3A937B65D; Sat, 10 Feb 2001 11:46:04 -0800 (PST) Received: from daemon.chronias.ninth-circle.org (root@cable.ninth-circle.org [195.38.232.6]) by garm.bart.nl (8.10.1/8.10.1) with ESMTP id f1AJjxZ32773; Sat, 10 Feb 2001 20:45:59 +0100 (CET) Received: (from asmodai@localhost) by daemon.chronias.ninth-circle.org (8.11.1/8.11.0) id f1AJjtW01593; Sat, 10 Feb 2001 20:45:55 +0100 (CET) (envelope-from asmodai) Date: Sat, 10 Feb 2001 20:45:55 +0100 From: Jeroen Ruigrok/Asmodai To: current@FreeBSD.ORG, smp@FreeBSD.ORG Subject: Re: Current SMP Kernel panics Message-ID: <20010210204555.J406@daemon.ninth-circle.org> References: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> <20010210162033.C406@daemon.ninth-circle.org> <20010210172417.F406@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010210172417.F406@daemon.ninth-circle.org>; from asmodai@wxs.nl on Sat, Feb 10, 2001 at 05:24:17PM +0100 Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [20010210 17:30], Jeroen Ruigrok/Asmodai (asmodai@wxs.nl) wrote: >Perhaps only need_resched() needs to be spinlocked. I am not sure, I am >not a SMP guru. To add: It needed to be spinlocked as you saw jake's commit affirmed and fixed. However I am currently hanging just after lauching the second CPU: art_init: trying /sched!st in/init SMP: CPU1 apic_initialize(): lint0: 0x00010700 lint1: 0x00010400 TPR: 0x00000010 SVR: 0x000001ff After that the only things I get are: Generator gate Generator gate finish after each couple of seconds. Going in ddb yields [abbreviated, no serial console]: ddb> show mutex Giant @ ../../kern_intr:427 ddb> show witness spinlocks: sio @ isa/sio.c:2549 sched_lock @ kern/kern_sync.c:809 clk @ i386/isa/clock.c:406 callout @ kern/kern_timeout.c:283 ithread table @ i386/isa/intr_machdep.c:587 ithread list @ kern/kern_intr.237 ap boot @ i386/i386/mp_machdep.c:2270 imen @ i386/i386/mpapic.c:261 Going out of ddb by panicing resulted in either a direct kernel trap 12 with interrupts disabled or a kernel trap 0 with interrupts disabled after which another panic led to a kernel trap 12 with interrupts disabled. The kernel trap 12 was an infinite loop. -- Jeroen Ruigrok vd Werven/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] Documentation nutter/C-rated Coder BSD: Technical excellence at its best D78D D0AD 244D 1D12 C9CA 7152 035C 1138 546A B867 I'm a child of the air, I'm a witch of the wind... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message