From owner-freebsd-current@FreeBSD.ORG Sat Oct 13 14:27:05 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E1D316A473 for ; Sat, 13 Oct 2007 14:27:05 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from aaron.protected-networks.net (aaron.protected-networks.net [202.12.127.66]) by mx1.freebsd.org (Postfix) with ESMTP id 9025713C43E for ; Sat, 13 Oct 2007 14:27:04 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from localhost (localhost [127.0.0.1]) by aaron.protected-networks.net (Postfix) with ESMTP id ED546C5F8; Sat, 13 Oct 2007 10:27:02 -0400 (EDT) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Iain Michael Butler", Issuer "Protected Networks Certificate Authority" (verified OK)) (Authenticated sender: imb@protected-networks.net) by aaron.protected-networks.net (Postfix) with ESMTP id 6E96CC507; Sat, 13 Oct 2007 10:26:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=protected-networks.net; s=200705; t=1192285615; bh=4izFy4gLu9Y3mn oopG5rmQgVsqtCrznq+1Q/XTNYldo=; h=DomainKey-Signature:Message-ID: Date:From:User-Agent:MIME-Version:To:CC:Subject:References: In-Reply-To:X-Enigmail-Version:OpenPGP:Content-Type: Content-Transfer-Encoding; b=H840oKHHLgd634WO9W79tPsajv8J+zepw5jm3 1L1P4UH0753gzlhHkmn0RRrBwHUNY2zTz+zk+vnOFxCbHDs8OQDdyEq/DFq6QIgHyum KeT268i70hrNfieOIIBoqu2W DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=SLugQbIIxZOdw70118RxMZN3MZjWzjwKv84clpFxQD0p6g2/4l4cXnd6Z0wxfd3hJ aOOILYHvOYaEP+f+f13aW6HEAYa/XUNzIe1qhZsc/DvP6yjgLk9/godf9WL5wIU Message-ID: <4710D5AE.9080107@protected-networks.net> Date: Sat, 13 Oct 2007 10:26:54 -0400 From: Michael Butler User-Agent: Thunderbird 2.0.0.6 (X11/20070903) MIME-Version: 1.0 To: John Baldwin References: <4709666D.5070504@protected-networks.net> <200710111626.35144.jhb@freebsd.org> In-Reply-To: <200710111626.35144.jhb@freebsd.org> X-Enigmail-Version: 0.95.2 OpenPGP: id=0442D492 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: Gkrellmd prompts "sleeping thread" 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: Sat, 13 Oct 2007 14:27:05 -0000 John Baldwin wrote: > On Sunday 07 October 2007 07:06:21 pm Michael Butler wrote: >> For whatever reason I seem to be able to reliably reproduce a panic on >> -current by running gkrellmd on one of my machines yet another (this >> one) has no problems at all :-( [ .. snip .. ] Sorry - have been traveling this week. The patch you offered solves the problem. Thanks! Michael > Can you make sure you have DDB in your kernel and get the full console > messages when it panics? It will include the stack trace for the offending > thread. But actually, try this patch: > > Index: intpm.c > =================================================================== > RCS file: /usr/cvs/src/sys/pci/intpm.c,v > retrieving revision 1.39 > diff -u -r1.39 intpm.c > --- intpm.c 19 Apr 2007 17:14:06 -0000 1.39 > +++ intpm.c 11 Oct 2007 20:25:52 -0000 > @@ -436,7 +436,7 @@ > /* So that it can use device during device probe on SMBus. */ > return (intsmb_stop_poll(sc)); > > - error = tsleep(sc, PWAIT | PCATCH, "SMBWAI", hz / 8); > + error = msleep(sc, &sc->lock, PWAIT | PCATCH, "SMBWAI", hz / 8); > if (error == 0) { > status = bus_read_1(sc->io_res, PIIX4_SMBHSTSTS); > if (!(status & PIIX4_SMBHSTSTAT_BUSY)) { > >