From owner-freebsd-current@FreeBSD.ORG Sat May 15 02:12:23 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 ED00D106564A; Sat, 15 May 2010 02:12:23 +0000 (UTC) (envelope-from kaduk@mit.edu) Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU [18.9.25.12]) by mx1.freebsd.org (Postfix) with ESMTP id 5A7638FC0C; Sat, 15 May 2010 02:12:22 +0000 (UTC) X-AuditID: 1209190c-b7bd2ae000005d05-6b-4bee0306d1a4 Received: from mailhub-auth-2.mit.edu (MAILHUB-AUTH-2.MIT.EDU [18.7.62.36]) by dmz-mailsec-scanner-1.mit.edu (Symantec Brightmail Gateway) with SMTP id 2D.37.23813.6030EEB4; Fri, 14 May 2010 22:12:22 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id o4F2CMdC020853; Fri, 14 May 2010 22:12:22 -0400 Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o4F2CKvg015130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 14 May 2010 22:12:21 -0400 (EDT) Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id o4F2CJYt017567; Fri, 14 May 2010 22:12:19 -0400 (EDT) Date: Fri, 14 May 2010 22:12:19 -0400 (EDT) From: Benjamin Kaduk To: Alan Cox In-Reply-To: Message-ID: References: <20100514053907.GL83316@deviant.kiev.zoral.com.ua> <4BED8ADE.1030100@cs.rice.edu> User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Brightmail-Tracker: AAAAAA== Cc: Kostik Belousov , alc@freebsd.org, freebsd-current@freebsd.org Subject: Re: kgdb unuseable with cores on current (for some people) 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, 15 May 2010 02:12:24 -0000 On Fri, 14 May 2010, Benjamin Kaduk wrote: > On Fri, 14 May 2010, Alan Cox wrote: > >> >> I suspect the following is needed: >> >> Index: vm/vm_page.c >> =================================================================== >> --- vm/vm_page.c (revision 207823) >> +++ vm/vm_page.c (working copy) >> @@ -108,6 +108,7 @@ __FBSDID("$FreeBSD$"); >> #include >> #include >> #include >> +#include >> #include >> #include >> #include >> @@ -375,6 +376,14 @@ vm_page_startup(vm_offset_t vaddr) >> new_end + vm_page_dump_size, VM_PROT_READ | VM_PROT_WRITE); >> bzero((void *)vm_page_dump, vm_page_dump_size); >> #endif >> +#ifdef __amd64__ >> + pa = DMAP_TO_PHYS((vm_offset_t)msgbufp); If I change this to be msgbufp->msg_ptr, then all works as expected. While tracking this down, I realized that passing the -q(uiet) argument to kgdb would have been a valid workaround all along. Alan, could you please commit the modified patch? Thanks, Ben Kaduk >> + last_pa = pa + round_page(MSGBUF_SIZE); >> + while (pa < last_pa) { >> + dump_add_page(pa); >> + pa += PAGE_SIZE; >> + } >> +#endif >> /* >> * Compute the number of pages of memory that will be available for >> * use (taking into account the overhead of a page structure per >> >> > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >