From owner-freebsd-current@FreeBSD.ORG Wed Oct 3 00:53:16 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA53D16A418 for ; Wed, 3 Oct 2007 00:53:16 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.229]) by mx1.freebsd.org (Postfix) with ESMTP id B08D013C46E for ; Wed, 3 Oct 2007 00:53:16 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so2757977nzf for ; Tue, 02 Oct 2007 17:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=VulZu022RDEtPAFEE1I8RVva3fy82dcEgZCsphH99sY=; b=KafmNjpeedtv44/znWwQYYJHIUcLfGx6ZTz7HHKKIvFy2iyNOt+ZFSDp6+NyzlYjL0A3y0KbZTwzYvupzuqqXIhz5YtowhYgn1c6LHgl14w4z+Na5afgYlOwElOku/m+qtVB7apzPcSUkytWWPV9qozF3DsWlIUF+pAvP5SI/zI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=C363BUCam3BdcPZHJYvK+0PglIath653jJ7Q4/ueullQxxj5HuEhavjqAgUyCMYAoL1dBVY2pK3sLvCqdaFK9ovxTXddZIdOE2EW7X4jgBWBOsLXwBkhXMu4OK73ax4AVtfURuC5AQzpAIuLEM3u+EiyfEWbSb1mglUVMRw7Y/0= Received: by 10.114.149.2 with SMTP id w2mr1148319wad.1191372795464; Tue, 02 Oct 2007 17:53:15 -0700 (PDT) Received: by 10.114.184.12 with HTTP; Tue, 2 Oct 2007 17:53:15 -0700 (PDT) Message-ID: Date: Wed, 3 Oct 2007 00:53:15 +0000 From: "Aryeh Friedman" To: freebsd-current@freebsd.org In-Reply-To: <47d0403c0710021409na4e8ba2p2005a11957bf4d28@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070921202523.GB4044@nowhere> <20071002204850.GA33227@nowhere> <47d0403c0710021409na4e8ba2p2005a11957bf4d28@mail.gmail.com> Subject: Re: Patch for nvidia-driver on current (panic: spin locks can only use msleep_spin) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 00:53:17 -0000 Can you post it to some anon ftp/url (if you need one I can set up anon ftp on my site) [no patch was attached] --Aryeh On 10/2/07, Ben Kaduk wrote: > Hi Craig, > > Thanks for tracking this down. > However, mailman likes to eat non-MIME-text attachments. > > Thanks, > > Ben Kaduk > > On 10/2/07, Craig Boston wrote: > > Hi all, I did some more investigating and found what was causing the > > nvidia driver to occasionally panic on my machine. It calls cv_wait(9) > > using a spin mutex, which according to the man page is a no-no. > > > > I simply changed the os_*_sema interfaces to use a standard mutex > > instead. Tried running a bunch of glxgears and xscreensaver GL demos in > > parallel and haven't been able to reproduce a panic since. As a bonus, > > the 5 second pause I would sometimes get when a GL-based xscreensaver > > process terminates seems to be gone as well. > > > > There doesn't appear to be any documentation that I could find as to > > what contexts those functions may be called from. I'm not a locking > > guru, so I can't say for certain why a spin mutex was being used. Wild > > guess: an artifact from the 4.x or 5.x code that may be obsoleted by > > adaptive mutexes. > > > > Patch is attached; cc danfe@ in case others report this problem to him. > > > > Craig > > > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >