Re: Anyone working on Octeon SMP?

Kevin Bowling <[email protected]> Tue, 28 Apr 2026 03:57:11 -0700
Newsgroups gmane.os.netbsd.ports.mips.devel
Message-ID <CAK7dMtAhE89ZUrftvmObwyzt6wamZEib=EbOeFd9ZfdSgdtX0g@mail.gmail.com>
On Fri, Apr 24, 2026 at 11:18=E2=80=AFPM Martin Husemann <[email protected]=
e> wrote:
>
> On Fri, Apr 24, 2026 at 12:30:59PM +0000, Andrew Parker wrote:
> > Ktruss pointed to multiple lwp_getprivate and lwp_setprivate calls just=
 before
> > the segfault.  My assumption was that unbound is using l_private for
> > synchronization and perhaps that value was 'stale'.
>
> This is strange. There should be exactly one _lwp_setprivate() call per
> userland thread and it never changes later (for that thread).
>
> The _lwp_getprivate() calls happen often when userland gets the
> thread controll structure.

The interrupt mask is insufficient on octeon and causes some bizarre
corruptions including curlwp.  Nick and I are working through a patch
over email.

> Martin