From owner-freebsd-arch@FreeBSD.ORG Thu Dec 11 17:04:30 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E03F516A4CE for ; Thu, 11 Dec 2003 17:04:30 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 0DFFA43D35 for ; Thu, 11 Dec 2003 17:04:30 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 51401 invoked by uid 1000); 12 Dec 2003 01:04:31 -0000 Date: Thu, 11 Dec 2003 17:04:31 -0800 (PST) From: Nate Lawson To: Bruce M Simpson In-Reply-To: <20031212002902.GB83410@saboteur.dek.spc.org> Message-ID: <20031211170335.X51376@root.org> References: <20031211145311.Q51054@root.org> <20031212002902.GB83410@saboteur.dek.spc.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: arch@freebsd.org cc: "M. Warner Losh" Subject: Re: Common device driver classes? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 01:04:31 -0000 On Fri, 12 Dec 2003, Bruce M Simpson wrote: > I'm tracking the outcome of this discussion so I know where to put things > like cache geometry discovery. My original plan was to assume uniform > cache and TLB geometry across all CPUs in the system. This may not be > the case. In which case implementing it via ivars may be more appropriate > if Nate chooses to go down this road -- but this leaves the problem of > how to export these properties easily to the userland. > > This is to facilitate getting at these properties a bit easier and > machine-independent (I note that the current NDIS and PowerPC efforts > could probably use this stuff). Those would definitely be properties of the CPU and could be exported via sysctl. My need is a little different in that I need to attach a child driver to a cpu. -Nate