From owner-freebsd-mips@FreeBSD.ORG Tue Apr 20 09:52:55 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86AC8106564A; Tue, 20 Apr 2010 09:52:55 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 48E4D8FC08; Tue, 20 Apr 2010 09:52:55 +0000 (UTC) Received: by pvc7 with SMTP id 7so3877754pvc.13 for ; Tue, 20 Apr 2010 02:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=UVmI6xVbJVT/JygC9m3Pi5DDS7em7rL1f7KKyUVbFQ4=; b=W50mvN7vcZzajs/GceYCt+rdTHpEX6ZX02A6vra3C7+ZdtXuBWGIEJ2UmH+qgch+CR QdP07m1hsLozup58HuXQl8nmRsT1t9eaDojfwr+np+XC9i3yabZsVG6+XRHAOwNNATwB Y4sLPz6DNhrercT9mEjxft7FaZO67+B3SjfEA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=SCXmvUlN/1DcX8vSwDd6IOKCO4+4nN8MLgu5kiLdbX4aPP5dov1hDuIFgKAadOU/4s hiUlP7t3XtIB4QiVQtDSr309wrU1zq0J8RQGrsbd7m9AO18WhM2r7fgTggnFtCYLVSwg olR4YdvaNiJ9jQ2Ef3HipP5Lss5l5szJma9yw= MIME-Version: 1.0 Received: by 10.141.29.15 with HTTP; Tue, 20 Apr 2010 02:52:52 -0700 (PDT) In-Reply-To: References: <544BD79C-24C0-4015-AE04-F7F8D70CF537@freebsd.org> <3BCD65EB-B997-449D-864C-CA24C7B19026@freebsd.org> <6BDB3874-D779-45A6-ABAE-4C331D78A189@lakerest.net> Date: Tue, 20 Apr 2010 15:22:52 +0530 Received: by 10.141.4.10 with SMTP id g10mr5369144rvi.179.1271757173151; Tue, 20 Apr 2010 02:52:53 -0700 (PDT) Message-ID: From: "C. Jayachandran" To: Randall Stewart Content-Type: multipart/mixed; boundary=000e0cd0ebd08be60c0484a80a7b X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: SMP support for XLR processors. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2010 09:52:55 -0000 --000e0cd0ebd08be60c0484a80a7b Content-Type: text/plain; charset=ISO-8859-1 On Mon, Apr 19, 2010 at 7:27 PM, C. Jayachandran wrote: > I have a possible cause for the panic with invariants - we should not > schedule the msgring threads unless the smp is completely up. I guess > we start getting message ring interrupts on before the message ring > threads can be scheduled. I am trying out some changes for this - > will send you a patch if this fixes it. I've attached a patch that should fix the issue. The cause was the way message ring threads are started on individual cores and the way interrupts are enabled in the core. I've moved starting message ring threads on other cpus to be a SYSINIT after SMP is started. I'd thought originally that it was due to some clash with the changes in HEAD - but looks like I was completely off-track there. Please let me know if you don't get multi-user with 32 cpus with this patch. There is still the original hang in buildworld, but that should be a bug elsewhere I have a copy at http://sites.google.com/site/cjayachandran/files too Thanks, JC. --000e0cd0ebd08be60c0484a80a7b--