Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2009 18:58:15 +0300
From:      S.N.Grigoriev <serguey-grigoriev@yandex.ru>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-current@freebsd.org
Subject:   Re: 8.0RC2 amd64 - kernel panic running make buildworld
Message-ID:  <24321258473495@webmail36.yandex.ru>
In-Reply-To: <4B025FA9.7020003@icyb.net.ua>
References:  <1031257439203@webmail57.yandex.ru> <hdc73v$4rt$1@ger.gmane.org> <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>

next in thread | previous in thread | raw e-mail | index | archive | help


17.11.09, 10:32, "Andriy Gapon" <avg@icyb.net.ua>
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24321258473495>