From owner-freebsd-current@FreeBSD.ORG Fri Jul 2 12:47:58 2010 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 44EED1065672 for ; Fri, 2 Jul 2010 12:47:58 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id C30318FC08 for ; Fri, 2 Jul 2010 12:47:57 +0000 (UTC) Received: by ewy26 with SMTP id 26so1230566ewy.13 for ; Fri, 02 Jul 2010 05:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=T4ioJ+8rOaJ78+dHBtf2fgGP1KTQ1I3BpVOKCkghWLc=; b=nMzKv2tLKXaLNHKipEzq8Z82PwK5bH0FiLo9dyRQc8GhT5dsou89YpSapBIeGu7M1i Ybn3cgcFE/KfE+6vEeLHXPMjyBlWWUIAHDFDHnkNscd8ZeTivZIUucpPlJ/rXM9n5zTi h2qe0bgJGI6F2kwlicK2BjJYSz6VVWjO69NYQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=quCpWoq9IVj8pwhrzM+b43IpIN+p5F34aeJ0u61LlH+i+gk2DNbSeYDGtgG5Qv4B8B kyV/XdR2mW2b3jhXlXwoUMNsMdRPTDVdWpJaV5uUv0HrLzY8KGkOSPo/yayKJu65hW3D 4NYUhnwz1Xex3skE4RWQRZ6JSsw1SA5Fcm9r0= Received: by 10.213.35.17 with SMTP id n17mr646276ebd.37.1278074866500; Fri, 02 Jul 2010 05:47:46 -0700 (PDT) Received: from darklight.org.ru ([213.132.76.142]) by mx.google.com with ESMTPS id v8sm5240670eeh.14.2010.07.02.05.47.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Jul 2010 05:47:45 -0700 (PDT) Received: from darklight.org.ru (yuri@darklight.org.ru [IPv6:::1]) by darklight.org.ru (8.14.4/8.14.4) with ESMTP id o62CkSTg046843; Fri, 2 Jul 2010 16:46:28 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.org.ru (8.14.4/8.14.4/Submit) id o62CkSl8046842; Fri, 2 Jul 2010 16:46:28 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.org.ru: yuri set sender to yuri.pankov@gmail.com using -f Date: Fri, 2 Jul 2010 16:46:28 +0400 From: Yuri Pankov To: David Naylor Message-ID: <20100702124628.GA2566@darklight.org.ru> References: <201007021146.46542.naylor.b.david@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201007021146.46542.naylor.b.david@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current@freebsd.org Subject: Re: nvidia-driver crashing kernel on head 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, 02 Jul 2010 12:47:58 -0000 On Fri, Jul 02, 2010 at 11:46:41AM +0200, David Naylor wrote: > Hi, > > I'm not sure this has been reported before but I am experience crashes with > nvidia-driver on -current (cvsup ~day ago). > > If I remove all the debugging options from the kernel config then it is very > usable. > > Here are the backtraces from two nvidia-driver versions: > > nvidia-driver-195.36.15 and GENERIC: > panic: mutex page lock not owned at /home/freebsd9/src/sys/vm/vm_page.c:1638 > cpuid = 1 > KDB: enter: panic > [ thread pid 1815 tid 100097 ] > Stopped at kdb_enter+0x3d: movq $0,0x6bc27c(%rip) > db> bt > Tracing pid 1815 tid 100097 td 0xffffff00045af000 > kdb_enter() at kdb_enter+0x3d > panic() at panic+0x176 > assert_mtx() at assert_mtx > vm_page_wire() at vm_page_wire+0x37 > nv_alloc_system_pages() at nv_alloc_system_pages+0x217 > nv_alloc_pages() at nv_alloc_pages+0xcd > _nv019978rm() at _nv019978rm+0x7f > > nvidia-driver-256.35 and custom kernel: > panic: blockable sleep lock (sleep mutex) select mtxpool @ > /home/freebsd9/src/sys/kern/sys_generic.c:1479 > cpuid = 1 > KDB: enter: panic > [ thread pid 1830 tid 100090 ] > Stopped at kdb_enter+0x3d: movq $0,0x51368c(%rip) > db> bt > Tracing pid 1830 tid 100090 td 0xffffff000456d3d0 > kdb_enter() at kdb_enter+0x3d > panic() at panic+0x176 > witness_checkorder() at witness_checkorder+0x913 > _mtx_lock_flags() at _mtx_lock_flags+0x68 > selrecord() at selrecord+0x71 > nvidia_dev_poll() at nvidia_dev_poll+0x52 > devfs_poll_f() at devfs_poll_f+0x55 > kern_select() at kern_select+0x501 > select() at select+0x54 > syscallenter() at syscallenter+0x19b > syscall() at syscall+0x41 > Xfast_syscall() at Xfast_syscall+0xe2 > --- syscall (93, FreeBSD ELF64, select), rip = 0x801a17ddc, rsp = 0x7fffffffe908, > rbp = 0x100 --- > > Also of note is: > # grep '^C.*FLAGS' /etc/make.conf > CFLAGS+= -DNDEBUG > > As mentioned that without any debugging options the system is stable. > > Is there anything I can do to assist diagnosis? > > Regards, > > David http://lists.freebsd.org/pipermail/freebsd-current/2010-June/017936.html helps here, check the thread as well. You could also try to use 256.35 driver. HTH, Yuri