From owner-freebsd-drivers@FreeBSD.ORG Sun Oct 19 14:49:32 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E7CC106568A for ; Sun, 19 Oct 2008 14:49:32 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.245]) by mx1.freebsd.org (Postfix) with ESMTP id 757B38FC1D for ; Sun, 19 Oct 2008 14:49:32 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: by rv-out-0708.google.com with SMTP id k29so2006155rvb.0 for ; Sun, 19 Oct 2008 07:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=2DPBFGUG9WL+fxNDUrovoDgm3iYcu/6kp2nbbkeRShw=; b=l8xeuJknrqk03+1O85RcVl1FENJtYE3mi/y1zpbryOwpMsKyiRBG+cbLN1EL15I4CY JeQ5JkBBL1XHTuA+aKcgAutRdZEeHDqrcfkkVn0pjbYBfiwualkzAXb6+gqK2Dbw8XCh pxHUre4+YI8w9rzKWyCjk1JzcN2Qck1zRWtC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=Cm/LpAAaDa5F8bIXK7zXQP3C8AmcX1HIpkZ2MP4RbZYAJ3I4oA3tDOT5uotPbKhd7T txNks0kuNV2IfnwqVna7AzJfMiNbULgVjWiIZQG4b4IJXeOg48TxjcVvFxBXOSEvQC5n xU6pBmqxy8U13kp8iDzoCbn4cPwEWm43M2z/8= Received: by 10.141.197.8 with SMTP id z8mr4071158rvp.285.1224426032503; Sun, 19 Oct 2008 07:20:32 -0700 (PDT) Received: by 10.141.37.19 with HTTP; Sun, 19 Oct 2008 07:20:32 -0700 (PDT) Message-ID: <27cb3ada0810190720u2cc84097w2ed6425bc6ee8d3f@mail.gmail.com> Date: Sun, 19 Oct 2008 07:20:32 -0700 From: "Len Gross" To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Polling and Sleep in a Driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2008 14:49:32 -0000 I have a MAC protocol written using Netgraph. It runs in userland and uses a simple poll, sleep loop. It has proved that the algorithms are correct, but the sleeps are not regular/accurate enough for my purposes. (I have pushed Hz up quite a bit with no real effect) If I were to implement the algorithms within a driver would the sleeps still suffer from the same "non real-time" behaviour I see in userland? Thanks in advance. -- Len From owner-freebsd-drivers@FreeBSD.ORG Sun Oct 19 17:55:18 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34D1F106566B for ; Sun, 19 Oct 2008 17:55:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id EA2D08FC0C for ; Sun, 19 Oct 2008 17:55:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m9JHsDtC084069; Sun, 19 Oct 2008 11:54:13 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 19 Oct 2008 11:55:15 -0600 (MDT) Message-Id: <20081019.115515.-1350513661.imp@bsdimp.com> To: sandiegobiker@gmail.com From: "M. Warner Losh" In-Reply-To: <27cb3ada0810190720u2cc84097w2ed6425bc6ee8d3f@mail.gmail.com> References: <27cb3ada0810190720u2cc84097w2ed6425bc6ee8d3f@mail.gmail.com> X-Mailer: Mew version 5.2 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-drivers@freebsd.org Subject: Re: Polling and Sleep in a Driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2008 17:55:18 -0000 In message: <27cb3ada0810190720u2cc84097w2ed6425bc6ee8d3f@mail.gmail.com> "Len Gross" writes: : I have a MAC protocol written using Netgraph. It runs in userland : and uses a simple poll, sleep loop. It has proved that the algorithms : are correct, but the sleeps are not regular/accurate enough for my : purposes. (I have pushed Hz up quite a bit with no real effect) This surprises me. I've seen big effects going from 100Hz to 1000Hz. : If I were to implement the algorithms within a driver would the sleeps : still suffer from the same "non real-time" behaviour I see in : userland? Well, it depends on what you are seeing. How accurate a sleep do you need? I've discovered that 2 / HZ is a good lower bound for sleep inaccuracy in the kernel. Often times this won't matter. You may be able to push the bounds with some clever hacks, but it still won't get you below 1/Hz w/o some other interrupt source that can clock a higher res timer. Warner From owner-freebsd-drivers@FreeBSD.ORG Sun Oct 19 19:28:35 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 570481065685 for ; Sun, 19 Oct 2008 19:28:35 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id 2B8F78FC0C for ; Sun, 19 Oct 2008 19:28:35 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1286717rvf.43 for ; Sun, 19 Oct 2008 12:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=4ymF/aoulGZugja0u2BWEUXbQl/Ovr1rFC7u/OMjsTI=; b=GyTBZIZBjAolAnp6rDfXZLPb/0iKAvI7n29kiJu16M/6wpEiSqcFbd6boQ7mYGxawS coN1/MYpqCpEJ9LPPuYNyKxZDkXMzBoCr3BlZnTSXhcpjYhDxvZV7bcF8ZpskpcS8Zer KN+kdUj/vgqcBGSVGfZGUzoKlKqpMiHX+G6mA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=D1nEIMCKKeYK2m8ii/jyJYbkTdmRUrR8AujHONlsqoELQd34sLn4n6zYmEyRDIB71x S5wrZTEizshJ2M22gJolbYFCZMxW/ZrM97Md0ZsB7dG2gCwjy+t9GTSKRZ9N/nMU8mvY 78ivSkBNUv7SKQzNyqfITDav5+QzcGlsNGj94= Received: by 10.141.161.6 with SMTP id n6mr4236300rvo.201.1224444514806; Sun, 19 Oct 2008 12:28:34 -0700 (PDT) Received: by 10.141.37.19 with HTTP; Sun, 19 Oct 2008 12:28:34 -0700 (PDT) Message-ID: <27cb3ada0810191228y2cf4ba5end071263f6d2f93df@mail.gmail.com> Date: Sun, 19 Oct 2008 12:28:34 -0700 From: "Len Gross" To: "freebsd-drivers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Polling and Sleep in a Driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2008 19:28:35 -0000 Warner, Thanks so much for your response. This is really a case where I'm a bit over my head! I thought on a a "busy" machine, there was a fundamental "no uppper bound" on the wait on a sleep; independent of the Hz? Not real-time blah, blah, ...... I am trying to understand if a driver "sleep" gets special attention (i.e higher "priority") so that I see less slop in the timing. Of course, I could hack up a driver and try some tests, but wanted some advice before diving into that pool. Thanks again. -- Len From owner-freebsd-drivers@FreeBSD.ORG Sun Oct 19 19:32:00 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BB311065671 for ; Sun, 19 Oct 2008 19:32:00 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id D421B8FC14 for ; Sun, 19 Oct 2008 19:31:59 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1287628rvf.43 for ; Sun, 19 Oct 2008 12:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=4ymF/aoulGZugja0u2BWEUXbQl/Ovr1rFC7u/OMjsTI=; b=CkHErtw1GuPyEvb8dMD+KU5BGWZYDHVzYDB2jOAgDxXpOU3fVlSU7sYG81Ocm6NB62 mw8L9nJECF+5WBJetXMoe7jO55q4TAcJ4LiuxwZSpT6mRvrvWQJ3s/4CxOicq+7sDAvM 0DhPw2XInDAf8CUtgWJ5c84SPtmZuLYV5eZmw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=CfXAb8JzwzHgTrxu4kcw63w4dAZncZa/jNJrQ8EfPsUmfb1w2zz34DIvmF125Ntf4h LjL2NGKw84xcyHtcRsg2QiMNMdGz+Yw5C39TB+KtcKQ/eWsl8LRg9zorjNm5Z1Xop1rR SsL5TMiWXPTtQI7JeLKuLHtZDy7CdRd+lXmLo= Received: by 10.141.76.21 with SMTP id d21mr4234272rvl.242.1224444719543; Sun, 19 Oct 2008 12:31:59 -0700 (PDT) Received: by 10.141.37.19 with HTTP; Sun, 19 Oct 2008 12:31:59 -0700 (PDT) Message-ID: <27cb3ada0810191231v3f1fc510tf152c70b658a78a1@mail.gmail.com> Date: Sun, 19 Oct 2008 12:31:59 -0700 From: "Len Gross" To: "freebsd-drivers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Polling and Sleep in a Driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2008 19:32:00 -0000 Warner, Thanks so much for your response. This is really a case where I'm a bit over my head! I thought on a a "busy" machine, there was a fundamental "no uppper bound" on the wait on a sleep; independent of the Hz? Not real-time blah, blah, ...... I am trying to understand if a driver "sleep" gets special attention (i.e higher "priority") so that I see less slop in the timing. Of course, I could hack up a driver and try some tests, but wanted some advice before diving into that pool. Thanks again. -- Len From owner-freebsd-drivers@FreeBSD.ORG Mon Oct 20 14:01:27 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B4CD1065681 for ; Mon, 20 Oct 2008 14:01:27 +0000 (UTC) (envelope-from vmail@lists.ukgrid.net) Received: from alpha.ukgrid.net (lists.manap.net [85.159.60.196]) by mx1.freebsd.org (Postfix) with ESMTP id 62C878FC2B for ; Mon, 20 Oct 2008 14:01:26 +0000 (UTC) (envelope-from vmail@lists.ukgrid.net) Received: from vmail by alpha.ukgrid.net with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KrvJx-0008wC-11; Mon, 20 Oct 2008 15:01:21 +0100 References: <48F78D65.4080600@delphij.net> In-Reply-To: <48F78D65.4080600@delphij.net> From: "andys" To: d@delphij.net Date: Mon, 20 Oct 2008 15:01:21 +0100 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Message-Id: Sender: VMail virtual user Cc: freebsd-drivers@freebsd.org Subject: Re: mpt errors QUEUE FULL EVENT, freebsd 7.0 on dell 1950 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2008 14:01:27 -0000 Thanks for the reply, Ill feed back when Im able to get the latest firmware installed and tested, Andy. From owner-freebsd-drivers@FreeBSD.ORG Mon Oct 20 17:40:51 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 890721065671 for ; Mon, 20 Oct 2008 17:40:51 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 78A798FC14 for ; Mon, 20 Oct 2008 17:40:51 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 60B9B1A3C37; Mon, 20 Oct 2008 10:40:51 -0700 (PDT) Date: Mon, 20 Oct 2008 10:40:51 -0700 From: Alfred Perlstein To: Len Gross Message-ID: <20081020174051.GM22503@elvis.mu.org> References: <27cb3ada0810190720u2cc84097w2ed6425bc6ee8d3f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27cb3ada0810190720u2cc84097w2ed6425bc6ee8d3f@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-drivers@freebsd.org Subject: Re: Polling and Sleep in a Driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2008 17:40:51 -0000 * Len Gross [081019 07:49] wrote: > I have a MAC protocol written using Netgraph. It runs in userland > and uses a simple poll, sleep loop. It has proved that the algorithms > are correct, but the sleeps are not regular/accurate enough for my > purposes. (I have pushed Hz up quite a bit with no real effect) > > If I were to implement the algorithms within a driver would the sleeps > still suffer from the same "non real-time" behaviour I see in > userland? > > Thanks in advance. Try hooking hardclock(), just be careful. -Alfred From owner-freebsd-drivers@FreeBSD.ORG Mon Oct 20 17:42:03 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E38D1065680 for ; Mon, 20 Oct 2008 17:42:03 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4D71C8FC1A for ; Mon, 20 Oct 2008 17:42:03 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 38A631A3C38; Mon, 20 Oct 2008 10:42:03 -0700 (PDT) Date: Mon, 20 Oct 2008 10:42:03 -0700 From: Alfred Perlstein To: Len Gross Message-ID: <20081020174203.GN22503@elvis.mu.org> References: <27cb3ada0810191228y2cf4ba5end071263f6d2f93df@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27cb3ada0810191228y2cf4ba5end071263f6d2f93df@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: "freebsd-drivers@freebsd.org" Subject: Re: Polling and Sleep in a Driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2008 17:42:03 -0000 * Len Gross [081019 12:28] wrote: > Warner, > > Thanks so much for your response. This is really a case where I'm a > bit over my head! > > I thought on a a "busy" machine, there was a fundamental "no uppper > bound" on the wait on a sleep; independent of the Hz? Not real-time > blah, blah, ...... > > I am trying to understand if a driver "sleep" gets special attention > (i.e higher "priority") so that I see less slop in the timing. > > Of course, I could hack up a driver and try some tests, but wanted > some advice before diving into that pool. > > Thanks again. Yes, you should see less slop in a driver because the ithread priority will be much higher than userland. The reason your userland is getting jitter is because other things may be running before it is based on priority. -Alfred From owner-freebsd-drivers@FreeBSD.ORG Tue Oct 21 14:45:44 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A8AA1065671 for ; Tue, 21 Oct 2008 14:45:44 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 28A9E8FC13 for ; Tue, 21 Oct 2008 14:45:43 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so915536uge.39 for ; Tue, 21 Oct 2008 07:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=V08gFm4lDvUoM75P+5Y4HQOZkDmowsP6QLIrODuM9XQ=; b=QQm9MHPGd461d+Vo70TGq/vL6sJ8wgktqFtz4XCKGziYyVVObCqyBXmW+nCXIYlgK8 nebms+TREtWgtQCDzehgyKDBcQsXVRNon0gUSJhaQk2ccGoP4kdr6O2YGFqw7b+wZFvF k7xOTBGZjdwVmz3FcipoltOVaAga7HQ1IBsr8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=ozxCeqmfAhlSfmPc0uKEgYQgEHoLvmPmc4OCL8vO3Xs03vvADsL4Rxx77zYO6MRsAC kdRdhzhLpXU2Vlcy/PfsXnzyHQ3cjgq2nBW+N3oLxk+xbszS/OA9lGVBCVEkh4bJWAvE sswaFV4VRorXuAX+i2/xcLk0yUHtRo04WCanI= Received: by 10.67.116.18 with SMTP id t18mr2686275ugm.58.1224598843798; Tue, 21 Oct 2008 07:20:43 -0700 (PDT) Received: from ndenev.cmotd.com (blah.sun-fish.com [217.18.249.150]) by mx.google.com with ESMTPS id q1sm1599525uge.48.2008.10.21.07.20.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Oct 2008 07:20:42 -0700 (PDT) Message-Id: <2CF947E1-C13C-4CAE-82B8-59C7ADD59387@gmail.com> From: Nikolay Denev To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Tue, 21 Oct 2008 17:20:41 +0300 X-Mailer: Apple Mail (2.929.2) Subject: Moschip USB Ethernet support X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 14:45:44 -0000 Hi, Moship seem to have BSD licensed FreeBSD drivers for their hardware on their site : http://www.moschip.com/html/download_drivers.html Any reason these are not included in the tree? -- Regards, Nikolay Denev From owner-freebsd-drivers@FreeBSD.ORG Wed Oct 22 06:46:56 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDACA106566B for ; Wed, 22 Oct 2008 06:46:56 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id 4FD358FC19 for ; Wed, 22 Oct 2008 06:46:56 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so3166907fkk.11 for ; Tue, 21 Oct 2008 23:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=yUpYu85hB+n55oe2uToY9vlLNJINHWGFppuZhtzOYmc=; b=CRIHk3UqUZ+0co08zw+ybVNG8qmUx83ROQ5cxkBEvn5ln2DEGjWY4cdftgIl0H4kWB kSU2ZeuNFECbotj467JvLicj1slRR502uFjLG7s7QEKFSiyIYz/5mfOgAMPpJpiJtpYA IUEs/D5P4abKpsK+oVdNfETo9sc+AN/O4M4BM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ST0q6MArTwp25x8QdF72drYFli7Ma/5GaMm/ba1N6d9VRXeaIUNLC2o0/DQikzEtaw zwav4oTCrykvVpBiheOSb5qFEXgFhwHC3tyUfpu9apHi5rfeuTYkd4LDyCHChRTJINsY yA2e9vC9l61NT0QU/U29YNCemAEUvaYSSgn+M= Received: by 10.103.247.14 with SMTP id z14mr4941578mur.39.1224658015030; Tue, 21 Oct 2008 23:46:55 -0700 (PDT) Received: by 10.103.141.5 with HTTP; Tue, 21 Oct 2008 23:46:54 -0700 (PDT) Message-ID: Date: Wed, 22 Oct 2008 12:16:54 +0530 From: Srinivas To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Info] Device detection X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 06:46:56 -0000 Hello, I have been very curious about how devices are detected in a system under FreeBSD ... AFAIK, root_bus is added during system startup through "SI_SUB_DRIVERS" subsystem of SYSINIT mechanism. After that how the buses are detected and added and how the devices under each bus are detected and added to the kernel. Could someone plz explain or point out a link which has the explanation. Thanks for your time, Srinivas