Subject: Re: Ultra 10, anyone?
To: Andrey Petrov <petrov@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: port-sparc64
Date: 08/22/2002 10:27:38
On Thu, Aug 22, 2002 at 10:23:16AM -0700, Andrey Petrov wrote:
> I'm not sure if that hme or not but the following patch fixed
> 'signal 11' during NFS build for me. I have some theory about
> aliased shared pages, but it's just guess with no prove at this
> point.
Please check this patch in. For a write-back cache, when MOD is cleared,
the cache *must* be written-back, otherwise it is possible for data to
be lost.
>
> Andrey
>
> Index: pmap.c
> ===================================================================
> RCS file: /cvsroot/syssrc/sys/arch/sparc64/sparc64/pmap.c,v
> retrieving revision 1.125
> diff -u -p -r1.125 pmap.c
> --- pmap.c 2002/08/12 12:04:31 1.125
> +++ pmap.c 2002/08/22 17:14:52
> @@ -2805,6 +2805,7 @@ pmap_clear_modify(pg)
> changed |= 1;
> pv->pv_va &= ~(PV_MOD);
> simple_unlock(&pv->pv_pmap->pm_lock);
> + dcache_flush_page(pa);
> }
> splx(s);
> pv_check();
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>