From owner-freebsd-current@FreeBSD.ORG Fri Apr 17 04:19:34 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 4A9BE106566C for ; Fri, 17 Apr 2009 04:19:34 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: from mail-bw0-f165.google.com (mail-bw0-f165.google.com [209.85.218.165]) by mx1.freebsd.org (Postfix) with ESMTP id C622A8FC15 for ; Fri, 17 Apr 2009 04:19:33 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: by bwz9 with SMTP id 9so125379bwz.43 for ; Thu, 16 Apr 2009 21:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=jljJSa/qKPem9McApape++rF6lxdqGbawiAiN4rAqqM=; b=ovyPxELME6PhInaZkEnWa76MOYT01GmSXzCxU7n/OJMc+Mvpe/DU3/LXYlQavy81Tm 11ZwU6bi1BnVPUqJWdKMrffHt7mKg0+SyKqCWFWxWZ2274904jFJtcW7Hd/o+Vs5RQcm /FcMZw8rd8q/FGTICjmvr3tu/Dl8fI7+fV6QY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=GlulyzRqMYe+AoKcrkstj8LNvC9IHjdR47aW0VOWIMjTY3prOUHmI8tsOaAT5EHDTi CcpzzD6DeU4cLfCN9ukZ3SJn9oFYfTSoK4QzbKMcm/Jm1oQMbb2SVuh7wJe4lsy68tXs u277Ab8rU1xFB+o0B67iEL2vCT9SJgsPFreBw= Received: by 10.103.92.8 with SMTP id u8mr1111166mul.34.1239940731074; Thu, 16 Apr 2009 20:58:51 -0700 (PDT) Received: from ?157.181.96.136? (quark.teteny.elte.hu [157.181.96.136]) by mx.google.com with ESMTPS id 23sm4299860mum.23.2009.04.16.20.58.50 (version=SSLv3 cipher=RC4-MD5); Thu, 16 Apr 2009 20:58:50 -0700 (PDT) Message-ID: <49E7FED0.9090708@gmail.com> Date: Fri, 17 Apr 2009 06:00:16 +0200 From: deeptech71@gmail.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090303 SeaMonkey/1.1.15 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <49E6ACEE.6080301@gmail.com> <200904161116.58094.jhb@freebsd.org> <1239913234.1991.1.camel@balrog.2hip.net> In-Reply-To: <1239913234.1991.1.camel@balrog.2hip.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 17 Apr 2009 04:19:34 -0000 Robert Noland wrote: > On Thu, 2009-04-16 at 11:16 -0400, John Baldwin wrote: >> 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). > > Ok, the quick and dirty fix for this is > http://people.freebsd.org/~rnoland/drm_radeon_state-copyin-fix.patch > > I think there may be other places of concern though and a more proper > fix is needed. I still get the same lockup :(