From owner-freebsd-x11@freebsd.org Thu Dec 7 10:07:16 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01E0EE823EE; Thu, 7 Dec 2017 10:07:15 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B38EC7FDA5; Thu, 7 Dec 2017 10:07:15 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id F01CD1F7E7; Thu, 7 Dec 2017 10:07:14 +0000 (UTC) Date: Thu, 7 Dec 2017 10:07:14 +0000 From: Alexey Dokuchaev To: Andriy Gapon Cc: freebsd-x11 , FreeBSD Current Subject: Re: couple of nvidia-driver issues Message-ID: <20171207100714.GB59559@FreeBSD.org> References: <07b9dbda-60ef-3643-308f-18a05e8ca958@FreeBSD.org> <20171205140308.GA94043@FreeBSD.org> <5e95dc14-9d3b-e2eb-b89c-f66f7857eb58@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5e95dc14-9d3b-e2eb-b89c-f66f7857eb58@FreeBSD.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2017 10:07:16 -0000 On Thu, Dec 07, 2017 at 11:33:51AM +0200, Andriy Gapon wrote: > ... > > I've done some work with a debugger and it seems that there is code that does > something like this: > > char *last = NULL; > > while (1) { > ... > > The binary patch is here: https://people.freebsd.org/~avg/nvidia-smi.bsdiff Appreciate taking very close look Andriy. > It's been a while since I posted the patch and there are no comments yet. > I can only add that I am running an INVARIANTS and WITNESS enabled kernel all > the time and before the patch I was getting kernel panics every now and then. > Since I started using the patch I haven't had a single nvidia panic yet. I'll collect all the feedback from you over past few weeks and try to update the driver within couple of days. Thanks! ./danfe