Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jan 2015 09:01:39 -0700
From:      Ian Lepore <ian@freebsd.org>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        Hans Petter Selasky <hps@selasky.org>, markb@mellanox.com, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: [RFC] Start SMP subsystem earlier
Message-ID:  <1420560099.14601.28.camel@freebsd.org>
In-Reply-To: <CAJ-VmokqL4Mrkt3h4XnRGgm-bwAGwKfAE3yTAzF0jFtVFxBnuQ@mail.gmail.com>
References:  <54AA8F19.9030300@selasky.org> <54ABF32A.6010409@FreeBSD.org> <1420559715.14601.25.camel@freebsd.org> <CAJ-VmokqL4Mrkt3h4XnRGgm-bwAGwKfAE3yTAzF0jFtVFxBnuQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2015-01-06 at 07:57 -0800, Adrian Chadd wrote:
> On 6 January 2015 at 07:55, Ian Lepore <ian@freebsd.org> wrote:
> > On Tue, 2015-01-06 at 09:37 -0500, John Baldwin wrote:
> >> On 1/5/15 8:18 AM, Hans Petter Selasky wrote:
> >> > Hi,
> >> >
> >> > There is a limitiation on the number of interrupt vectors available when
> >> > only a single processor is running. To have more interrupts available we
> >> > need to start SMP earlier when building a monotolith kernel and not
> >> > loading drivers as modules. The driver in question is a network driver
> >> > and because it cannot be started after SI_SUB_ROOT_CONF due to PXE
> >> > support I see no other option than to move SI_SUB_SMP earlier.
> >> >
> >> > Suggested patch:
> >> >
> >> >>[...]
> >> >
> >> > This fixes a problem for Mellanox drivers in the OFED layer. Possibly we
> >> > need to move the SMP even earlier to not miss the generic FreeBSD PCI
> >> > device enumeration or maybe this is not possible. Does anyone know how
> >> > early we can start SMP?
> >>
> >> We need a lot more work before this is ready.  This is one of the goals
> >> of the multipass new-bus stuff.  In particular, we have to enumerate
> >> enough devices to bring event timer hardware up so that timer interrupts
> >> work so that tsleep() will actually sleep.  In addition, we also need
> >> idle threads created and working before APs are started as otherwise
> >> they will have no thread to run initially.  This is certainly a desired
> >> feature, but it is not as simple as moving the sysinit up I'm afraid.
> >>
> >
> > Just an FYI, the ARM world is now using the multipass newbus stuff.  It
> > works well, with some quirks...
> >
> > The predefined pass names don't always makes sense for the arm world.
> > There aren't enough predefined pass names and even though the number
> > space for them is 4 billion wide all the predefined names are in the
> > range < 100 and separated by only 10 so it's tricky to wedge things
> > between the existing names.
> 
> Maybe we need a RENUM script? :)
> 

I wanted to renumber them but it was pointed out to me that the existing
names and numbers are part of the ABI and we're not free to do so except
on -current, and that would make all related work going forward
ineligible for MFC.  (Personally, I'm a bit skeptical that there's any
big out-of-tree use of the existing names/numbers.)

-- Ian





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