From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 11 05:23:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C434D16A4CE for ; Thu, 11 Nov 2004 05:23:22 +0000 (GMT) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3952243D3F for ; Thu, 11 Nov 2004 05:23:22 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (q7omhy25gpltgg92@thor.farley.org [IPv6:2002:4340:5fcd:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id iAB5NJD7033988; Wed, 10 Nov 2004 23:23:19 -0600 (CST) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (localhost [127.0.0.1]) by thor.farley.org (8.13.1/8.13.1) with ESMTP id iAB5NJGt000509; Wed, 10 Nov 2004 23:23:19 -0600 (CST) (envelope-from sean-freebsd@farley.org) Received: from localhost (sean@localhost)iAB5NIwS000506; Wed, 10 Nov 2004 23:23:19 -0600 (CST) (envelope-from sean-freebsd@farley.org) X-Authentication-Warning: thor.farley.org: sean owned process doing -bs Date: Wed, 10 Nov 2004 23:23:18 -0600 (CST) From: Sean Farley X-X-Sender: sean@thor.farley.org To: Matthew Dillon In-Reply-To: <200411101801.iAAI1SkK061883@apollo.backplane.com> Message-ID: <20041110230601.T416@thor.farley.org> References: <200411101801.iAAI1SkK061883@apollo.backplane.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org Subject: Re: bugs in contigmalloc*() related to "page not found in hash" panics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 05:23:22 -0000 On Wed, 10 Nov 2004, Matthew Dillon wrote: > I've tracked down several bugs in contigmalloc*() in DragonFly > based on kernel cores provided by David Rhodus. These bugs have > just been addressed in DFly but also need to be addressed in > FreeBSD-4, and at least some work must also be done in FreeBSD-5/6. > So someone needs to take up the ball and deal with this in FreeBSD. > > Here is the DragonFly commit. > > http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_contig.c.diff?r1=1.10&r2=1.11&f=u > > FreeBSD-4: > > FreeBSD-4 is in the same situation that DFly was in and requires > the same fixes as the above patch, though note that in FreeBSD-4 > the contigmalloc() code is in vm_page.c, not vm_contig.c. I tried the patch in the hopes it would fix my Nvidia-driver crash-on-demand system. :) While my system appears stable without the Nvidia driver but with this patch, my system can still crash easily with the Nvidia driver. It usually dies with a: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x30 fault code = supervisor read, page not present Two "page not found in hash" panics that I believe are related to the Nvidia driver: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/71086 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/72539 The first PR (mine) asks about a change in pmap_remove() that was later removed from FreeBSD-4 but left in FreeBSD-5. If anyone knows why this happened, I would be interested in knowing. Sean -- sean-freebsd@farley.org