From owner-freebsd-current@FreeBSD.ORG Thu Apr 16 15:55:39 2009 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 3B6D3106564A; Thu, 16 Apr 2009 15:55:39 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 115E48FC13; Thu, 16 Apr 2009 15:55:39 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id BAC2B46B89; Thu, 16 Apr 2009 11:55:38 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 8DAC28A01A; Thu, 16 Apr 2009 11:55:32 -0400 (EDT) From: John Baldwin To: deeptech71@gmail.com Date: Thu, 16 Apr 2009 11:16:57 -0400 User-Agent: KMail/1.9.7 References: <49E6ACEE.6080301@gmail.com> In-Reply-To: <49E6ACEE.6080301@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904161116.58094.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Thu, 16 Apr 2009 11:55:32 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=4.2 tests=RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-current@freebsd.org, rnoland@freebsd.org Subject: Re: diagnosing freezes (DRI?) 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: Thu, 16 Apr 2009 15:55:39 -0000 [ moved to current@ ] On Wednesday 15 April 2009 11:58:38 pm deeptech71@gmail.com wrote: > I can reliably (~40%) reproduce a freeze, which I think is related. > > Using the GENERIC debug kernel built from SVN HEAD: > > # cd /usr/obj/usr/src/sys/GENERIC/ > # kgdb kernel.debug /var/crash/vmcore.0 > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-marcel-freebsd"... [ snipped lots of stuff ] > Kernel page fault with the following non-sleepable locks held: > > exclusive sleep mutex drmdev (drmdev) r = 0 (0xc373f860) locked @ > /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_drv.c:777 > > KDB: stack backtrace: > > calltrap() at calltrap+0x6 > > --- trap 0xc, eip = 0xc0b611b6, esp = 0xd67d4a98, ebp = 0xd67d4b48 --- > > slow_copyin(c373f800,c4103300,c42e64e0,d67d4b64,0,...) at > slow_copyin+0x6 > radeon_cp_texture(c373f800,c42e64e0,c4103300,309,c0c26218,...) at > radeon_cp_texture+0x199 > > drm_ioctl(c39d4e00,c018644e,c42e64e0,3,c40afaf0,...) at drm_ioctl+0x356 > The drm code is doing a copyin() while holding a mutex (which is not allowed). -- John Baldwin