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