From owner-freebsd-current@FreeBSD.ORG Tue Nov 17 15:58:20 2009 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 D204F106568B for ; Tue, 17 Nov 2009 15:58:20 +0000 (UTC) (envelope-from serguey-grigoriev@yandex.ru) Received: from forward6.mail.yandex.net (forward6.mail.yandex.net [77.88.60.125]) by mx1.freebsd.org (Postfix) with ESMTP id 1CDAB8FC17 for ; Tue, 17 Nov 2009 15:58:19 +0000 (UTC) Received: from webmail36.yandex.ru (webmail36.yandex.ru [77.88.60.15]) by forward6.mail.yandex.net (Yandex) with ESMTP id 529A5DC901C; Tue, 17 Nov 2009 18:58:16 +0300 (MSK) Received: from localhost (localhost.localdomain [127.0.0.1]) by webmail36.yandex.ru (Yandex) with ESMTP id 208E74F077A; Tue, 17 Nov 2009 18:58:16 +0300 (MSK) X-Yandex-Spam: 1 X-Yandex-Front: webmail36 X-Yandex-TimeMark: 1258473496 Received: from [89.223.19.70] ([89.223.19.70]) by mail.yandex.ru with HTTP; Tue, 17 Nov 2009 18:58:15 +0300 From: S.N.Grigoriev To: Andriy Gapon In-Reply-To: <4B025FA9.7020003@icyb.net.ua> References: <1031257439203@webmail57.yandex.ru> <941257966918@webmail42.yandex.ru> <200911111504.14906.jhb@freebsd.org> <20091112195932.5875387e@orwell.free.de> <4AFD140D.7010407@icyb.net.ua> <20091113144804.2c0fb90f@orwell.free.de> <4AFD655E.5020801@icyb.net.ua> <20091114022121.217dd831@orwell.free.de> <4AFE7A32.7060203@icyb.net.ua> <4B025FA9.7020003@icyb.net.ua> MIME-Version: 1.0 Message-Id: <24321258473495@webmail36.yandex.ru> Date: Tue, 17 Nov 2009 18:58:15 +0300 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: freebsd-current@freebsd.org Subject: Re: 8.0RC2 amd64 - kernel panic running make buildworld 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: Tue, 17 Nov 2009 15:58:20 -0000 17.11.09, 10:32, "Andriy Gapon" wrote: > Kai, > the latest patch in the works, it's against a clean tree: > diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c > index 44b71f3..ff35eb9 100644 > --- a/sys/amd64/amd64/pmap.c > +++ b/sys/amd64/amd64/pmap.c > @@ -2365,6 +2365,9 @@ pmap_demote_pde > * the read above and the store below. > */ > pde_store(pde, newpde); > + pmap_invalidate_page(pmap, va); > + clflush((vm_offset_t)vtopde(va)); > + mfence(); > /* > * Invalidate a stale recursive mapping of the page table page. > @@ -2981,6 +2984,11 @@ setpte: > * Map the superpage. > */ > pde_store(pde, PG_PS | newpde); > + pmap_invalidate_range(pmap, va & ~PDRMASK, (va & ~PDRMASK) + NBPDR); > + clflush((vm_offset_t)vtopde(va)); > + mfence(); > + if (va >= VM_MAXUSER_ADDRESS) > + pmap_invalidate_page(pmap, (vm_offset_t)vtopte(va)); > pmap_pde_promotions++; > CTR2(KTR_PMAP, "pmap_promote_pde: success for va %#lx" Andriy, I can confirm your patch works for me. I've done 'make -j8 buildworld && make -j8 buildkernel' without problems. -- Regards, S.Grigoriev.