From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 26 16:36:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDF7316A402 for ; Wed, 26 Apr 2006 16:36:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id B637343D4C for ; Wed, 26 Apr 2006 16:36:07 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k3QGYanU038886; Wed, 26 Apr 2006 10:34:37 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 26 Apr 2006 10:34:50 -0600 (MDT) Message-Id: <20060426.103450.46658198.imp@bsdimp.com> To: hongz@promisechina.com From: "M. Warner Losh" In-Reply-To: <1146037663$82118$49670145@hongz@promisechina.com> References: <1146037663$82118$49670145@hongz@promisechina.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Can kldload trigger pci bus rescan? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 16:36:08 -0000 In message: <1146037663$82118$49670145@hongz@promisechina.com> writes: : I tried to use kldload to load our HBA driver. But the driver's pci probe : function can not find the HBA card! Does it mean that kldload can not : trigger pci bus rescan? If so, what should I do for triggering pci bus : rescan after loading our pci driver? kldload of a driver with a pci attachment will cause all pci busses to reprobe/attach their unattached children automatically. When you say that the driver's probe function can not find the HBA card, what do you mean? That none of the devices presented to it are accepted? Warner