From owner-freebsd-current@FreeBSD.ORG Fri Jul 2 16:55:52 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 83713106566C for ; Fri, 2 Jul 2010 16:55:52 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0C3628FC23 for ; Fri, 2 Jul 2010 16:55:51 +0000 (UTC) Received: by wyb34 with SMTP id 34so2233082wyb.13 for ; Fri, 02 Jul 2010 09:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=ROODYXVjfN/N2Uy0qQB5vgy/rEz0DnuL7JCqgRvg3tY=; b=Ts0YF6UqgR0u5DTKiPqhDAcYEgnfTBFjq7p9pCcVkQFc5NZB0xRLUkqnU/EW3GYSTv Zj3N9ldzlf6ntubhqma9N8OLzZzDULBQJnxdWEgzO1D4IS3GOyg7d2jqbmqTRgXJMqbD AMJDiZch0h8McWDfN6Li3OJBhe8kpv5X6I61o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=AW2StA0azZOQ0P/3Y6Vl0Crfxr71eX06C8DfMFPLdJ/vMze2zv+AwgzKW00ITwRbVo Vv/SMHBs9zcVcgy2T+EHL3YIMB6BCqB51nCu74eLJ0a2XXmqc0j3J3E07FzkCkGe0SZk 9RzQBXrr/Vst1r4tWVCQILXDzzVrF5FfDwQLM= Received: by 10.213.4.203 with SMTP id 11mr979233ebs.13.1278089748252; Fri, 02 Jul 2010 09:55:48 -0700 (PDT) Received: from dragon.dg (41-132-24-150.dsl.mweb.co.za [41.132.24.150]) by mx.google.com with ESMTPS id v59sm7049668eeh.22.2010.07.02.09.55.38 (version=SSLv3 cipher=RC4-MD5); Fri, 02 Jul 2010 09:55:46 -0700 (PDT) From: David Naylor Organization: Private To: =?iso-8859-1?q?Ren=E9_Ladan?= Date: Fri, 2 Jul 2010 18:55:38 +0200 User-Agent: KMail/1.13.3 (FreeBSD/9.0-CURRENT; KDE/4.4.3; amd64; ; ) References: <201007021146.46542.naylor.b.david@gmail.com> <20100702124628.GA2566@darklight.org.ru> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1495498.5U0Ds6C6jr"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201007021855.42103.naylor.b.david@gmail.com> Cc: Yuri Pankov , 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 16:55:52 -0000 --nextPart1495498.5U0Ds6C6jr Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Friday 02 July 2010 14:57:35 Ren=E9 Ladan wrote: > 2010/7/2 Yuri Pankov : > > On Fri, Jul 02, 2010 at 11:46:41AM +0200, David Naylor wrote: > >> Hi, > >>=20 > >> I'm not sure this has been reported before but I am experience crashes > >> with nvidia-driver on -current (cvsup ~day ago). > >>=20 > >> If I remove all the debugging options from the kernel config then it is > >> very usable. > >>=20 > >> Here are the backtraces from two nvidia-driver versions: > >>=20 > >> nvidia-driver-195.36.15 and GENERIC: > >> panic: mutex page lock not owned at > >> /home/freebsd9/src/sys/vm/vm_page.c:1638 cpuid =3D 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 > >>=20 > >> 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 =3D 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 =3D 0x801a17ddc, rsp =3D > >> 0x7fffffffe908, rbp =3D 0x100 --- > >>=20 > >> Also of note is: > >> # grep '^C.*FLAGS' /etc/make.conf > >> CFLAGS+=3D -DNDEBUG > >>=20 > >> As mentioned that without any debugging options the system is stable. > >>=20 > >> Is there anything I can do to assist diagnosis? > >>=20 > >> Regards, > >>=20 > >> David > >=20 > > http://lists.freebsd.org/pipermail/freebsd-current/2010-June/017936.html > > helps here, check the thread as well. > >=20 > > You could also try to use 256.35 driver. >=20 > The 256.35 driver works for me (without the above-referred patch), but > anywhere between 1 and 48 hours my laptop locks up hard without any > warning nor panic. This is with CURRENT r209581, GENERIC kernel, but with > debug.witness.watch=3D0 If I set debug.witness.watch to 1, the kernel > freezes when starting X. I experienced a lockup when using the 256.35 driver, I switched back to the= =20 195.36.15 driver and no problems since. The system also freezes up when=20 launching k3b so I'm not sure what caused that particular freeze... Thanks for the debug.witness.watch hint. =20 --nextPart1495498.5U0Ds6C6jr Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEABECAAYFAkwuGg4ACgkQUaaFgP9pFrLy7ACePO6k3cqoOpZpIk0an0DqAXAf 6YoAnj1taGQ6c/tQdDtSWDXupgXi9kXL =EHbH -----END PGP SIGNATURE----- --nextPart1495498.5U0Ds6C6jr--