From owner-freebsd-current@freebsd.org Tue Dec 6 14:53:08 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20D75C6ACEF for ; Tue, 6 Dec 2016 14:53:08 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pg0-x230.google.com (mail-pg0-x230.google.com [IPv6:2607:f8b0:400e:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E3788D4C for ; Tue, 6 Dec 2016 14:53:07 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pg0-x230.google.com with SMTP id x23so150160552pgx.1 for ; Tue, 06 Dec 2016 06:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Rk7vaYVxDPGpJ5Gpfnywe0eOTyZ8lnf7Zr7ExDPlevY=; b=OWPkdY50C37gJ2RUE5MWcGFcCEeCwoidc2TpcVt8E8QY8i86m8yXswwfYJZHiezLTA A80iqEdUA1iONsI2Ur0eDcb8yFkWccDjomkuhrEwQazUMmSAcHVS1xaizqYjaWc0VqPi 9E9E+ABs8fEyegZMu8fu97WYqpwRJPYs2Scf/UFlNa9YYBdY0Q004FuDrg7hSq9kbsYf aNAt/6xa8Qe4eMUe4vfpeskT4vLU7/CVMcCMO7Olx2iW7WJxRuZ0VDLi6mOcOUIiD4mg EU1WJTWF1fgIHmnBvDDfO8KBKNK/yvZv66n+BnuVFokIlcY7UR4ZHaqFbPvDtoFZRA8R 3MSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=Rk7vaYVxDPGpJ5Gpfnywe0eOTyZ8lnf7Zr7ExDPlevY=; b=CL/nW+H8rM/OMSF1N4nnLvMWWIrW9LllRUT4TzpqftABLK2TLU5HTu2HgDxHZ+3IxM aDl8HqQFsh93LGtMYLykeBYoBAT2IkCJ1nXVMSZuIFYbmoO/XfReqsSapwJN0RagnnXJ hPyOpqoqQhElXhn0tqya0Jyz/5gb3pVs5KWcxtmfXftwBBPDz16+OyDaZ9ZvIrE0GbvP CyxO8l4VgYTQeJ+PH0j3HWU54oVFuFhd4jTtEu7qbS9WHZiWiCIlIsh34MKRwxX0hw5K oJ9Qpx8VqwMskk9MMp+bVKbrJ5HK+YP5Hf3X2RHrFlRvUDfGZBqaMlJJGVG1iQvdkyOB 0EqQ== X-Gm-Message-State: AKaTC00P88rrkwfwxdEXfHqq8oakzOWt3O2eH0cAVs6c7zU+uyM5PfjAea2uEffOWTZKdw== X-Received: by 10.99.1.132 with SMTP id 126mr112358558pgb.129.1481035987376; Tue, 06 Dec 2016 06:53:07 -0800 (PST) Received: from ox (c-73-93-112-83.hsd1.ca.comcast.net. [73.93.112.83]) by smtp.gmail.com with ESMTPSA id w24sm35604031pfa.9.2016.12.06.06.53.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 06:53:06 -0800 (PST) Date: Tue, 6 Dec 2016 06:53:03 -0800 From: Navdeep Parhar To: Slawa Olhovchenkov Cc: freebsd-current@freebsd.org Subject: Re: How to load kernel module automatic? Message-ID: <20161206145303.GH14137@ox> Mail-Followup-To: Slawa Olhovchenkov , freebsd-current@freebsd.org References: <20161206114715.GP57876@zxy.spb.ru> <20161206142544.GF14137@ox> <20161206143456.GQ99742@zxy.spb.ru> <20161206144114.GG14137@ox> <20161206144338.GR99742@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161206144338.GR99742@zxy.spb.ru> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2016 14:53:08 -0000 On Tue, Dec 06, 2016 at 05:43:38PM +0300, Slawa Olhovchenkov wrote: > On Tue, Dec 06, 2016 at 06:41:14AM -0800, Navdeep Parhar wrote: > > > On Tue, Dec 06, 2016 at 05:34:56PM +0300, Slawa Olhovchenkov wrote: > > > On Tue, Dec 06, 2016 at 06:25:44AM -0800, Navdeep Parhar wrote: > > > > > > > On Tue, Dec 06, 2016 at 02:47:15PM +0300, 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? > > > > > > > > Something is running "ifconfig cxgbe|cxl|cc" on your system. ifconfig > > > > can figure out the name of the module from the name of the ifnet and > > > > will kldload it if it isn't in the kernel already. > > > > > > What is 'something'? > > > > A script that's running via devd or some other mechanism. > > Its not clear to me what exact event cause devd start such script. Doesn't have to be devd. Could be any automated script running ifconfig. Leave this running and see if ifconfig is ever called with (cxgbe|cxl|cc) as parameter. If it is then that's what's loading cxgbe(4) automatically. dtrace -n 'proc:::exec-success /execname == "ifconfig"/ {trace(curpsinfo->pr_psargs);} Regards, Navdeep