From owner-freebsd-mips@FreeBSD.ORG Fri Apr 23 15:38:16 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 682E7106564A; Fri, 23 Apr 2010 15:38:16 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 331628FC13; Fri, 23 Apr 2010 15:38:15 +0000 (UTC) Received: by pwi9 with SMTP id 9so7129581pwi.13 for ; Fri, 23 Apr 2010 08:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=k1jyhzWYkUFVHaZjbNI/4ltXtx3cmiK19WfhsEVmSVA=; b=kCD4JIr+5E4kBdYHNBLgi6+HmMgE3MV5q4eeOCl5ecjqIOqVMrQRa9xtAMg/OzKHVa UxIFn+wEULm9hVTDF0wm1AsPgXApG2xU3ruNosfQvfQCt1CW27CFbkrrnR2Jhq2Qm0jp pANdOWN968PcQdphWofpM0HGc17y/ABUi4vs0= 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=pALlwyKVCNwKQEh7lzjFJUB3E5cyytWhlO37YaS0PoS1GtmOzGB3GvoXPM3MspxpGn 43VaZnzY6JkSC1rvdt8hgUi9Zwe9jwADQhW14Uxhvvp/6lDqzLLebtsoW8rIfDLHCGSC V0l8gKG+ZpMFJg5PBDs5LxLFBFNE5O5bu0CVo= MIME-Version: 1.0 Received: by 10.141.23.19 with SMTP id a19mr290571rvj.63.1272037095628; Fri, 23 Apr 2010 08:38:15 -0700 (PDT) Received: by 10.140.194.17 with HTTP; Fri, 23 Apr 2010 08:38:15 -0700 (PDT) In-Reply-To: <79B7AA80-4D2D-4A5C-973D-4D0FB22E2D85@lakerest.net> References: <79B7AA80-4D2D-4A5C-973D-4D0FB22E2D85@lakerest.net> Date: Fri, 23 Apr 2010 21:08:15 +0530 Message-ID: From: "C. Jayachandran" To: Randall Stewart Content-Type: multipart/mixed; boundary=000e0cd1b72c39e05f0484e937ab X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: Crashes with the current -HEAD 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: Fri, 23 Apr 2010 15:38:16 -0000 --000e0cd1b72c39e05f0484e937ab Content-Type: text/plain; charset=ISO-8859-1 On Fri, Apr 23, 2010 at 8:48 PM, Randall Stewart wrote: > JC: > > My crash is different... hmmm I have not tried one without SMP... need > to do that. > > What I am seeing is a spin lock held to long.. I could fix this, but I hit the crash I reported immediately after that. So I reverted my changes to the HEAD and the crash was still there without the changes. I've attached a fix for the smp_rendezvous hang - in the LMEM macros, the pmap_invalidate_page will call smp_rendezvous with interrupts disabled. If two threads do this it hangs beacuse smp_rendezvous needs interrupts enabled so that it can do IPI. (patch also at http://sites.google.com/site/cjayachandran/files). > sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/edit_cfg.sh > /usr/src/lib/ncurses/ncurses/ncurses_cfg.h term.h.new > ** edit: HAVE_TCGETATTR 1 > spin lock 0x804c91f4 (smp rendezvous) held by 0xcb943270 (tid 100205) too > long > panic: spin lock held too long > cpuid = 2 > KDB: enter: panic > ~~ > > I think this is probably a different issue... It smells like a recursive > call > to the spin lock... possibly.. but I have not had time to dig too deep into > it... and for some reason we don't enter DDB... even though I manually > entered it before starting the buildworld to make sure it would > work ;-o > > I will have to find the specific panic and put an enter DDB in there and > see if that will work ;-) JC. --000e0cd1b72c39e05f0484e937ab--