Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2010 15:22:52 +0530
From:      "C. Jayachandran" <c.jayachandran@gmail.com>
To:        Randall Stewart <rrs@lakerest.net>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: SMP support for XLR processors.
Message-ID:  <l2n98a59be81004200252lf1d0a372pfae8ac5f55440e58@mail.gmail.com>
In-Reply-To: <y2m98a59be81004190657kce2488b0p86a725b1175cb14b@mail.gmail.com>
References:  <w2z98a59be81004171540t2f0d5193nca2ec9e2540502e2@mail.gmail.com> <544BD79C-24C0-4015-AE04-F7F8D70CF537@freebsd.org> <DEF66A16-B4B8-4459-87C7-B695813FB68C@freebsd.org> <A1FC32B9-1105-43C5-91C1-C4A81F78066B@lakerest.net> <3BCD65EB-B997-449D-864C-CA24C7B19026@freebsd.org> <CFE92A18-C834-45C5-B18C-7F62437D1A2B@lakerest.net> <z2z98a59be81004190411hd4bee7e4t6e5eed3d3789180a@mail.gmail.com> <6BDB3874-D779-45A6-ABAE-4C331D78A189@lakerest.net> <y2m98a59be81004190657kce2488b0p86a725b1175cb14b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--000e0cd0ebd08be60c0484a80a7b
Content-Type: text/plain; charset=ISO-8859-1

On Mon, Apr 19, 2010 at 7:27 PM, C. Jayachandran
<c.jayachandran@gmail.com> wrote:
> I have a possible cause for the panic with invariants - we should not
> schedule the msgring threads unless the smp is completely up. I guess
> we start getting message ring interrupts on before the message ring
> threads can be scheduled.  I am trying out some changes for this -
> will send you a patch if this fixes it.

I've attached a patch that should fix the issue. The cause was the way
message ring threads are started on individual cores and the way
interrupts are enabled in the core.  I've moved starting message ring
threads on other cpus to be a SYSINIT after SMP is started.  I'd
thought originally that it was due to some clash with the changes in
HEAD - but looks like I was completely off-track there.

Please let me know if you don't get multi-user with 32 cpus with this
patch. There is still the original hang in buildworld, but that should
be a bug elsewhere

I have a copy at http://sites.google.com/site/cjayachandran/files too

Thanks,
JC.

--000e0cd0ebd08be60c0484a80a7b--



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