Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Dec 2016 13:59:27 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Slawa Olhovchenkov <slw@zxy.spb.ru>
Cc:        freebsd-current@freebsd.org, Warner Losh <imp@bsdimp.com>
Subject:   Re: How to load kernel module automatic?
Message-ID:  <556090d6-1f56-9aef-622c-ab0b502ec4e5@selasky.org>
In-Reply-To: <20161206125257.GJ99742@zxy.spb.ru>
References:  <20161206114715.GP57876@zxy.spb.ru> <af8df81f-028f-38ff-420d-14f711b641ca@selasky.org> <20161206125257.GJ99742@zxy.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/06/16 13:52, Slawa Olhovchenkov wrote:
> On Tue, Dec 06, 2016 at 12:50:40PM +0100, Hans Petter Selasky wrote:
>
>> On 12/06/16 12:47, Slawa Olhovchenkov wrote:
>>> Now I am try to update fw in chelsio card.
>>> Firmware can't be updated if card was running (interface go to UP).
>>> I am try to unload if_cxgbe module, check module unloaded... and after
>>> short time see module loaded again!
>>> How is this possible?
>>
>> Hi,
>>
>> devd is likely re-loading the .ko for you.
>
> What event is?
> How devd guess module name for load?

Hi,

Usually the kernel generates a no-driver found event, and that triggers 
devd to reload the driver based on its configuration scripts. Warner 
Losh, has done some work to integrate PCI device hints in the linker 
hints. I'm not sure if his work has been committed yet.

Try to stop devd temporarily.

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?556090d6-1f56-9aef-622c-ab0b502ec4e5>