Date: Wed, 24 Oct 2018 10:31:48 -0700 From: John Baldwin <jhb@FreeBSD.org> To: Jan Mazur <dingorth@gmail.com>, freebsd-new-bus@freebsd.org Cc: Wojciech Moczulski <womoczulski@gmail.com> Subject: Re: Where are bus passes with lower than default pass value called? Message-ID: <d4ff13bb-cabf-1fb3-19df-5d3b824f10d6@FreeBSD.org> In-Reply-To: <CADGEm4fs0P7yBgUqcqdBvNNOo2Y0=QP1QwOrvbLgfzhmJzrdrw@mail.gmail.com> References: <CADGEm4fs0P7yBgUqcqdBvNNOo2Y0=QP1QwOrvbLgfzhmJzrdrw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5/28/18 3:16 AM, Jan Mazur wrote: > Here: http://bxr.su/FreeBSD/sys/kern/subr_bus.c#901 > bus_current_pass is set to BUS_PASS_ROOT. > > AFAIK autoconfiguration starts here: > http://bxr.su/FreeBSD/sys/mips/mips/autoconf.c#95 and later it > calls BUS_NEW_PASS(root_bus) which calls bus_set_pass(BUS_PASS_DEFAULT). > Why is it called with maximum possible bus pass level - BUS_PASS_DEFAULT? > Where are bus passes with lower pass value called? bus_set_pass() walks up from the current bus pass to the requested bus pass stopping at each level that has a registered driver. The intention is that eventually we may want to insert SYSINITs in between some of the passes in which case a SYSINIT would use bus_set_pass with a lower level and then do some other work, but currently we don't have any of those, so we are still just passing through all the levels in one SYSINIT. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d4ff13bb-cabf-1fb3-19df-5d3b824f10d6>