atom feed8 messages in org.freebsd.freebsd-smpRe: Current SMP Kernel panics
FromSent OnAttachments
Manfred AntarFeb 9, 2001 8:43 pm 
Jeroen Ruigrok/AsmodaiFeb 10, 2001 7:20 am 
Jeroen Ruigrok/AsmodaiFeb 10, 2001 8:23 am 
Alfred PerlsteinFeb 10, 2001 8:53 am 
Manfred AntarFeb 10, 2001 9:06 am 
Jake BurkholderFeb 10, 2001 9:09 am 
Jeroen Ruigrok/AsmodaiFeb 10, 2001 9:10 am 
Jeroen Ruigrok/AsmodaiFeb 10, 2001 11:45 am 
Subject:Re: Current SMP Kernel panics
From:Manfred Antar (nu@pozo.com)
Date:Feb 10, 2001 9:06:01 am
List:org.freebsd.freebsd-smp

At 04:20 PM 2/10/2001 +0100, Jeroen Ruigrok/Asmodai wrote:

-On [20010210 06:26], Manfred Antar (nu@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.

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message