Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2017 09:53:09 -0700
From:      Adrian Chadd <adrian.chadd@gmail.com>
To:        Ngie Cooper <yaneurabeya@gmail.com>
Cc:        Warner Losh <imp@bsdimp.com>, Kevin Oberman <rkoberman@gmail.com>,  Thomas Mueller <mueller6722@twc.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: iwm not in GENERIC kernel
Message-ID:  <CAJ-VmokHht9w8BDWuHoS_Waj_NrKcppLwsKrvALqAGntPaeHyQ@mail.gmail.com>
In-Reply-To: <E2A983DA-FDCB-4174-827E-C64DF02423A3@gmail.com>
References:  <20171029010942.GD5682@gmail.com> <1282E750-97FF-43A7-BFEE-3B82597311F0@gmail.com> <59f5a3e3.82b6df0a.9f209.0495SMTPIN_ADDED_MISSING@mx.google.com> <5BE53074-F3E7-4392-A48A-E01474A9AFAE@gmail.com> <CAN6yY1vu6cO2SOPqz7nTyrXLwxs7rFBNBnt59wqSMbBMeYSbrg@mail.gmail.com> <B4DA2B5B-C590-4A96-B6DE-CEFD9F467155@gmail.com> <CANCZdfqV_-0K7TuVFv3xdn8QmfGXhpNqN0D8pmiZpSKiGQOkcA@mail.gmail.com> <E2A983DA-FDCB-4174-827E-C64DF02423A3@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
uuuuugh okay

So it's a chicken/egg problem.

You can't finish the device probe/attach until the firmware loads.

For iwn, you can read the chipset abilities and mac address from
EPROM/flash on the chip without the firmware being loaded, so you can
complete probe/attach before the root filesystem is mounted.

For iwm, you have to load the firmware before you can read the chipset
abilities and MAC address so you can't complete probe/attach until
AFTER the root filesystem is mounted.

If someone wants to go add all of that support in to have probe/attach
deferred until after rootfs is available then please do so. Or, just
support the firmware being 100% compiled in- but when I tried this the
last time I ran out of some firmware arena size preventing other
firmware for other chipsets from being loaded.

Otherwise this is the current hack. :)

Sorry!



-adrian



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