Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Oct 2000 09:53:44 -0700
From:      Jake Burkholder <jburkhol@home.com>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-smp@FreeBSD.ORG
Subject:   Re: witness code status? 
Message-ID:  <20001003165344.56138BA77@io.yi.org>
In-Reply-To: Message from Steve Kargl <sgk@troutmask.apl.washington.edu>  of "Mon, 02 Oct 2000 16:32:36 PDT." <200010022332.e92NWan00373@troutmask.apl.washington.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart MIME message.

--==_Exmh_10802101420
Content-Type: text/plain; charset=us-ascii

> What's the current status of the integration of BSDi's
> witness code?  If I include "options WITNESS" in my kernel
> config file, I get an immediate panic at boot.  My sources
> are from today (01 Oct 00), and the system is currently
> running a MP kernel (built without the witness code).

This makes no sense to me; I can't figure out why the panic
is happening at all.  Can you send me your kernel config file?

Also, please make absolutely sure that your sources are up to
date and build a new world and kernel.

What's happening is the w_spin flag in the witness structure
for Mark's harvest mutex is being set when it should not be.
But I can't see where this could happen unless someone is
randomly overwriting memory.

> 
> PS:  Yes, I know there will be periods of instability, but 
>      you (the SMP developers) can't possibly have all combinations
>      of MP hardware.
> 
> PPS: "options USER_LDT" is currently broken for MP kernels.
> 

Attached is a patch that should fix this.
Please let me know and I'll commit it.  (Works here.)



--==_Exmh_10802101420
Content-Type: text/plain ; name="idle.diff"; charset=us-ascii
Content-Description: idle.diff
Content-Disposition: attachment; filename="idle.diff"

Index: kern_idle.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_idle.c,v
retrieving revision 1.5
diff -u -r1.5 kern_idle.c
--- kern_idle.c	2000/09/22 03:19:24	1.5
+++ kern_idle.c	2000/10/03 16:44:22
@@ -4,6 +4,9 @@
  * $FreeBSD: src/sys/kern/kern_idle.c,v 1.5 2000/09/22 03:19:24 msmith Exp $
  */
 
+#ifdef __i386__
+#include "opt_user_ldt.h"
+#endif
 #include "opt_ktrace.h"
 
 #include <sys/param.h>

--==_Exmh_10802101420--




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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001003165344.56138BA77>