From owner-freebsd-current@FreeBSD.ORG Wed May 26 16:51:48 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 25E691065674; Wed, 26 May 2010 16:51:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 92C548FC08; Wed, 26 May 2010 16:51:47 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o4QGpsKi008710 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 26 May 2010 19:51:54 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o4QGpfLP086183; Wed, 26 May 2010 19:51:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o4QGpfwn086182; Wed, 26 May 2010 19:51:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 26 May 2010 19:51:41 +0300 From: Kostik Belousov To: Alan Cox Message-ID: <20100526165141.GF83316@deviant.kiev.zoral.com.ua> References: <4BFD4AE6.5040105@cs.rice.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qbWslfj5jix8J1iW" Content-Disposition: inline In-Reply-To: <4BFD4AE6.5040105@cs.rice.edu> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: alc@freebsd.org, Garrett Cooper , FreeBSD Current Subject: Re: nvidia-driver 195.22 use horribly broken on amd64 between r206173 and 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: Wed, 26 May 2010 16:51:48 -0000 --qbWslfj5jix8J1iW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 26, 2010 at 11:23:02AM -0500, Alan Cox wrote: > Garrett Cooper wrote: > > Just reporting the fact that nvidia-driver 195.22 is horribly > >broken between r206173 and r208486 (my machine consistency livelocks > >at X11 startup); the latest driver is still broken as well with the > >same symptoms. I realize that's a huge revision difference, and I'll > >definitely try and track down the root cause via a binary search, but > >I wanted to make sure that other folks knew of the issue and don't > >upgrade and their systems break horribly as well. > > I suspect that the locking changes are causing the issue, but I > >don't have any hard data to backup my claim at this time. > > =20 >=20 > I'm sure they are. The Nvidia driver directly accesses low-level=20 > virtual memory structures on which the synchronization rules have=20 > changed. (In contrast, the Xorg dri drivers in our source tree are=20 > using higher-level interfaces that have remained stable.) >=20 > I don't think that a binary search is needed. The lock assertion=20 > failures should indicate most if not all of the changes that are needed= =20 > in the driver. When Kip got this process started, he bumped=20 > FreeBSD_version, so it should be possible to condition the locking=20 > changes in the driver. >=20 > Good luck! I did a quick glance over the driver, try this: http://people.freebsd.org/~kib/misc/nvidia-vm_page_lock.1.patch I did not even compiled the patched driver. --qbWslfj5jix8J1iW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkv9UZwACgkQC3+MBN1Mb4jx+ACfcqwH2Tj17rNp/JhcVogezvoz cYAAnjS5f1sblFbGHuH/u3Xry7N2lqKt =bT4i -----END PGP SIGNATURE----- --qbWslfj5jix8J1iW--