From owner-freebsd-questions@FreeBSD.ORG Thu Feb 9 09:00:00 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26575106566B for ; Thu, 9 Feb 2012 09:00:00 +0000 (UTC) (envelope-from Kashyap.Desai@lsi.com) Received: from na3sys009aog117.obsmtp.com (na3sys009aog117.obsmtp.com [74.125.149.242]) by mx1.freebsd.org (Postfix) with ESMTP id 91C9E8FC0C for ; Thu, 9 Feb 2012 08:59:59 +0000 (UTC) Received: from paledge01.lsi.com ([192.19.193.42]) (using TLSv1) by na3sys009aob117.postini.com ([74.125.148.12]) with SMTP ID DSNKTzOLD6EMOtu8XE6CzWV/KR86+pxpcHa+@postini.com; Thu, 09 Feb 2012 00:59:59 PST Received: from PALCAS01.lsi.com (128.94.213.117) by PALEDGE01.lsi.com (192.19.193.42) with Microsoft SMTP Server (TLS) id 8.3.213.0; Thu, 9 Feb 2012 03:53:23 -0500 Received: from inbexch02.lsi.com (135.36.98.40) by PALCAS01.lsi.com (128.94.213.117) with Microsoft SMTP Server (TLS) id 8.3.213.0; Thu, 9 Feb 2012 03:49:06 -0500 Received: from inbmail01.lsi.com ([135.36.98.64]) by inbexch02.lsi.com ([135.36.98.40]) with mapi; Thu, 9 Feb 2012 14:19:03 +0530 From: "Desai, Kashyap" To: "Kenneth D. Merry" , "freebsd-scsi@freebsd.org" , "freebsd-questions@freebsd.org" Date: Thu, 9 Feb 2012 14:19:02 +0530 Thread-Topic: mps driver overwrite using loader.conf Thread-Index: AczmkwW0Nq9TxRlGSaqs40VXn5mZPwAdCxbg Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "Justin T. Gibbs" , "McConnell, Stephen" Subject: RE: mps driver overwrite using loader.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 09:00:00 -0000 Hi, I have found another email id to post question so adding " freebsd-ques= tions@freebsd.org" in list. Here are some more detail. driver is inbuilt in FreeBSD-9 and FreeBSD-10-Current. I want to use my next version of driver to be loaded instead of = compiled inbuilt in kernel binary. When I added /boot/loader.conf with mps_load=3D"YES", I see my new driver a= vailable at /boot/kernel/mps.ko is getting loaded on FreeBSD-9-RELEASE, but on FreeBSD-10-CURRENT it always use inbuilt dr= iver. Any Idea if this is expected behavior ? Any change in FreeBSD-10 is causing= this behavioral difference ? ` Kashyap > -----Original Message----- > From: owner-freebsd-scsi@freebsd.org [mailto:owner-freebsd- > scsi@freebsd.org] On Behalf Of Desai, Kashyap > Sent: Thursday, February 09, 2012 12:24 AM > To: Kenneth D. Merry; freebsd-scsi@freebsd.org > Cc: Justin T. Gibbs; McConnell, Stephen > Subject: mps driver overwrite using loader.conf >=20 > With upstream mps driver, I am trying to do some testing with my next > driver. >=20 > I followed below process to overwrite existing mps driver with new one. >=20 > 1. My kernel has pre-compiled mps driver (It is not part of module) > 2. While booting itself I wants to replace with my next version of mps > driver. > 3. I copy my new "mps" driver at /boot/kernel/ location > 4. modify /boot/defaults/loader.conf with >=20 > Now I see new mps is getting loaded instead of inbuilt mps driver. > Here is output of sysctl with mpslsi driver loaded into kernel. [For > LSI's internal tracking this driver is called mpslsi ] > device mps > hw.mps.disable_msi: 0 > hw.mps.disable_msix: 0 > dev.mpslsi.0.%desc: LSI SAS2008 > dev.mpslsi.0.%driver: mpslsi > dev.mpslsi.0.%location: slot=3D0 function=3D0 > dev.mpslsi.0.%pnpinfo: vendor=3D0x1000 device=3D0x0072 subvendor=3D0x1000 > subdevice=3D0x0072 class=3D0x010700 > dev.mpslsi.0.%parent: pci6 > dev.mpslsi.0.debug_level: 0 > dev.mpslsi.0.disable_msix: 0 > dev.mpslsi.0.disable_msi: 0 > dev.mpslsi.0.firmware_version: 12.250.01.00 > dev.mpslsi.0.driver_version: 13.255.00.01 < -- New Driver > dev.mpslsi.0.io_cmds_active: 0 > dev.mpslsi.0.io_cmds_highwater: 1 > dev.mpslsi.0.chain_free: 2048 > dev.mpslsi.0.chain_free_lowwater: 2047 > dev.mpslsi.0.max_chains: 2048 > dev.mpslsi.0.chain_alloc_fail: 0 >=20 >=20 > _But_ Strange thing is if I unload my "mps" module, there is still some > stale entry in kernel. > After I unload mpslsi driver here is output of sysctl > device mps > hw.mps.disable_msi: 0 > hw.mps.disable_msix: 0 >=20 > What is this "device mps" instance ? > I want to understand How FreeBSD handle this kind of scenario ? >=20 > ~ Kashyap > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org"