Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jan 2003 00:45:33 -0600
From:      "Alan L. Cox" <alc@imimic.com>
To:        Arun Sharma <adsharma@unix-os.sc.intel.com>
Cc:        alc@freebsd.org, freebsd-ia64@freebsd.org
Subject:   Re: Assertion failure in vm_page.c:289
Message-ID:  <3E16830D.F7D8507D@imimic.com>
References:  <20030103180935.A3170@unix-os.sc.intel.com> <20030103183441.A3425@unix-os.sc.intel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Arun Sharma wrote:
> 
> Looking at i386 code, this seems to be the missing lock.
> 

Yes, that looks plausible.  I'll commit the change shortly.

Thanks,
Alan

> 
> --- pmap.c-     Sat Jan  4 00:14:49 2003
> +++ pmap.c      Sat Jan  4 02:30:57 2003
> @@ -1694,7 +1694,9 @@
>          */
>         if (opa) {
>                 int error;
> +               vm_page_lock_queues();
>                 error = pmap_remove_pte(pmap, pte, va, 0, 0);
> +               vm_page_unlock_queues();
>                 if (error)
>                         panic("pmap_enter: pte vanished, va: 0x%lx", va);
>         }
> 
> On Fri, Jan 03, 2003 at 06:09:35PM -0800, Arun Sharma wrote:
> > Alan,
> >
> > It looks like you added this assertion on Dec 28th.
> >
> > void
> > vm_page_flag_clear(vm_page_t m, unsigned short bits)
> > {
> >
> >         mtx_assert(&vm_page_queue_mtx, MA_OWNED); <-----
> >         m->flags &= ~bits;
> > }
> >
> > and I'm seeing the assertion failure right at startup (after execing
> > /sbin/init) on a ia64 box. Is it possible that there was an accompanying
> > change that was made to i386, but not ia64 ?
> >
> >       -Arun

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ia64" in the body of the message




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