From owner-freebsd-current@FreeBSD.ORG Tue Aug 16 17:10:46 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D27A1065672 for ; Tue, 16 Aug 2011 17:10:46 +0000 (UTC) (envelope-from david.somayajulu@qlogic.com) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe005.messaging.microsoft.com [216.32.181.185]) by mx1.freebsd.org (Postfix) with ESMTP id 284538FC12 for ; Tue, 16 Aug 2011 17:10:44 +0000 (UTC) Received: from mail89-ch1-R.bigfish.com (216.32.181.170) by CH1EHSOBE006.bigfish.com (10.43.70.56) with Microsoft SMTP Server id 14.1.225.22; Tue, 16 Aug 2011 17:10:43 +0000 Received: from mail89-ch1 (localhost.localdomain [127.0.0.1]) by mail89-ch1-R.bigfish.com (Postfix) with ESMTP id 9B55813A021B; Tue, 16 Aug 2011 17:10:43 +0000 (UTC) X-SpamScore: -10 X-BigFish: VPS-10(zzbb2dK9371K542Mzz1202hzz8275dhz2ei2a8h668h839h944h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:198.70.193.64; KIP:(null); UIP:(null); IPVD:NLI; H:avexcashub1.qlogic.com; RD:avexcashub2.qlogic.com; EFVD:NLI Received-SPF: neutral (mail89-ch1: 198.70.193.64 is neither permitted nor denied by domain of qlogic.com) client-ip=198.70.193.64; envelope-from=david.somayajulu@qlogic.com; helo=avexcashub1.qlogic.com ; 1.qlogic.com ; Received: from mail89-ch1 (localhost.localdomain [127.0.0.1]) by mail89-ch1 (MessageSwitch) id 1313514643441010_23417; Tue, 16 Aug 2011 17:10:43 +0000 (UTC) Received: from CH1EHSMHS004.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.254]) by mail89-ch1.bigfish.com (Postfix) with ESMTP id 67EF6113004E; Tue, 16 Aug 2011 17:10:43 +0000 (UTC) Received: from avexcashub1.qlogic.com (198.70.193.64) by CH1EHSMHS004.bigfish.com (10.43.70.4) with Microsoft SMTP Server (TLS) id 14.1.225.22; Tue, 16 Aug 2011 17:10:39 +0000 Received: from avexmb1.qlogic.org ([fe80::9545:3a4f:c131:467d]) by avexcashub2.qlogic.org ([::1]) with mapi; Tue, 16 Aug 2011 10:10:37 -0700 From: David Somayajulu To: Andriy Gapon , John Baldwin Date: Tue, 16 Aug 2011 10:10:38 -0700 Thread-Topic: Loading drivers via kldload Thread-Index: AcxcMTt61vVWLHPSTjqLAQi3+PxqKQABYQhg Message-ID: <75E1A2A7D185F841A975979B0906BBA67BCC8773D4@AVEXMB1.qlogic.org> References: <75E1A2A7D185F841A975979B0906BBA67BCC877062@AVEXMB1.qlogic.org> <75E1A2A7D185F841A975979B0906BBA67BCC877180@AVEXMB1.qlogic.org> <4E4919DA.5000706@FreeBSD.org> <201108161145.02733.jhb@freebsd.org> <4E4A9A23.7060807@FreeBSD.org> In-Reply-To: <4E4A9A23.7060807@FreeBSD.org> 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 X-OriginatorOrg: qlogic.com Cc: "freebsd-current@freebsd.org" Subject: RE: Loading drivers via kldload X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 16 Aug 2011 17:10:46 -0000 Please see below. -david S. -----Original Message----- From: Andriy Gapon [mailto:avg@FreeBSD.org] Sent: Tuesday, August 16, 2011 9:26 AM To: John Baldwin Cc: David Somayajulu; freebsd-current@freebsd.org Subject: Re: Loading drivers via kldload The following are pure speculations, I'd rather let David speak, but just i= n case; on 16/08/2011 18:45 John Baldwin said the following: > Well, that would seem odd, still. It only returns BUS_PROBE_GENERIC (not= 0), so > David's driver's probe routine should still be called to get a chance to = attach to > the device. Maybe it doesn't do that exactly because device and vendor ID are zeroes as= David described earlier. [David S.] The vendor and device IDs are NOT zeros. They are valid numbers.= The SubSystem Vendor and Device IDs are zeros. > Also, the ATA driver only allocates its BAR once, so it shouldn't > trigger the panic in question in that case (the panic is only triggered w= hen you > try to double-allocate a BAR). This makes only if the BAR has sane values. Not sure what happens if the B= AR has some junk that duplicates other PCI device, or something like that. -- Andriy Gapon This message and any attached documents contain information from QLogic Cor= poration or its wholly-owned subsidiaries that may be confidential. If you = are not the intended recipient, you may not read, copy, distribute, or use = this information. If you have received this transmission in error, please n= otify the sender immediately by reply e-mail and then delete this message.