From owner-freebsd-current@FreeBSD.ORG Sat Jul 17 14:25:07 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 AED2A106566B; Sat, 17 Jul 2010 14:25:07 +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 B4CD48FC13; Sat, 17 Jul 2010 14:25:06 +0000 (UTC) Received: by wyf22 with SMTP id 22so3367673wyf.13 for ; Sat, 17 Jul 2010 07:25:05 -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=IMyDKc6LgTTM4AYgcgRvP3w7K1k85hldECmOSIhARuA=; b=tzh04YNJ1mVvr/RCLzMI8mVn+fM7xsYmHQbc8h1RaVDzkuF6fSPsdblf7zf+Pa3tlx DfNrDGZGVUO+v4T7QjAzCES1IV+tHO0F9rlg1XT6UmIXhUW4lPSO1vk94+G8YVPGQJr6 B2pUi0tLIOTZ8/uAXkO6cVCYVL3kctnnwk7GE= 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=o8kZvjH3ViWXrkiSeDPhgwNUZgdUGvHQczTQu2Qe27rv65RNULQuM5gAjye0Bx/FkB /GKCk02osF0nBtRV5rEosPlf8fbBTu9E9AjX1JcKCPzP4FvE8tgVy+/5R+1pV4/po2aL 4YoNys8molOhLQehGRzarWFmpInV7feHAK5yQ= Received: by 10.216.59.131 with SMTP id s3mr1853824wec.71.1279376705443; Sat, 17 Jul 2010 07:25:05 -0700 (PDT) Received: from dragon.dg (41-132-92-33.dsl.mweb.co.za [41.132.92.33]) by mx.google.com with ESMTPS id k46sm1267992weq.10.2010.07.17.07.24.55 (version=SSLv3 cipher=RC4-MD5); Sat, 17 Jul 2010 07:25:03 -0700 (PDT) From: David Naylor Organization: Private To: Doug Barton Date: Sat, 17 Jul 2010 16:24:54 +0200 User-Agent: KMail/1.13.3 (FreeBSD/9.0-CURRENT; KDE/4.4.3; amd64; ; ) References: <201007021146.46542.naylor.b.david@gmail.com> <4C36488A.6030203@freebsd.org> <4C3A2634.5050003@FreeBSD.org> In-Reply-To: <4C3A2634.5050003@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1866925.R1uP5nKUTG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201007171624.58434.naylor.b.david@gmail.com> Cc: danfe@freebsd.org, Christian Zander , Yuri Pankov , freebsd-current@freebsd.org, Rene Ladan 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: Sat, 17 Jul 2010 14:25:07 -0000 --nextPart1866925.R1uP5nKUTG Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Sunday 11 July 2010 22:14:44 Doug Barton wrote: > On 07/08/10 14:52, Rene Ladan wrote: > > On 08-07-2010 22:09, Doug Barton wrote: > >> On Thu, 8 Jul 2010, John Baldwin wrote: > >>> These freezes and panics are due to the driver using a spin mutex > >>> instead of a > >>> regular mutex for the per-file descriptor event_mtx. If you patch the > >>> driver > >>> to change it to be a regular mutex I think that should fix the > >>> problems. > >>=20 > >> Can you give an example? :) I don't mind creating a patch for all of > >> them if you can illustrate what needs to be changed. > >=20 > > See the attached patch >=20 > In order to use 195.36.15 it was necessary to use the patch Rene sent, > the suggestion from jhb previously to remove some locks, plus a bit > more. The patch that got it working on HEAD for me (specifically > r209633) is attached. With that patch I could start X, and run it for a > while, but performance was very poor, even in comparison with the stock > nv driver, and it crashed a couple times (although not nearly as bad as > previously). >=20 > So based on other suggestions I tried the newest release version at > nvidia, 256.35. Some of the same locking stuff was needed to patch it, a > patch for the port which includes the locking patch is also attached. If > you are running an amd64 system you'll have to type 'make makesum' after > applying this patch to the port. I'm not sure this patch is complete, or > what Alexey might want to do with the update, but it does create an > accurate plist which means you can cleanly deinstall/pkg_delete when > you're done. >=20 > With 256.35 performance and stability have both been quite good, > comparable even to before the the drama started. The only concern I have > at this point is that I'm periodically getting a strange sort of "flash" > popping up on my screen that I didn't get while I was running the nv > driver recently. It looks sort of like the default X background (the > tiny gray crosshatch) is popping through for just a split second. I've been getting these messages on the console: NVRM: Xid (0001:00): 16, Head 00000000 Count 000218d5 NVRM: Xid (0001:00): 8, Channel 00000000 NVRM: Xid (0001:00): 16, Head 00000000 Count 000218d6 NVRM: Xid (0001:00): 8, Channel 00000002 This is preceded by X locking hard. I cannot VT switch to a normal console= =20 and sometimes the computer needs a hard reset (i.e. does not respond to pow= er=20 button). It appears to only trigger when under heavy load. eg=20 make -C /usr/src -j8 buildworld This seems to be messing with interrupts with other subsystems as my networ= k=20 drivers are less than reliable of late. (Watchdog timeouts). =20 This happens with 195.36.15 unpatched and 256.35 patched. =20 I have not checked if booting with WITNESS enabled works. =20 Regards --nextPart1866925.R1uP5nKUTG 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) iEYEABECAAYFAkxBvToACgkQUaaFgP9pFrIYJwCeMtleLMXuUh7fadKf7+VtCw56 xZ4Anj/7MWX5TvsTcv5o0n40E/DQqp1v =pbS6 -----END PGP SIGNATURE----- --nextPart1866925.R1uP5nKUTG--