Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263281AbUCSASB (ORCPT ); Thu, 18 Mar 2004 19:18:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263351AbUCRXyw (ORCPT ); Thu, 18 Mar 2004 18:54:52 -0500 Received: from mail.kroah.org ([65.200.24.183]:58286 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S263281AbUCRXsN (ORCPT ); Thu, 18 Mar 2004 18:48:13 -0500 Date: Thu, 18 Mar 2004 15:21:39 -0800 From: Greg KH To: Martin Hicks Cc: linux-kernel@vger.kernel.org Subject: Re: Exporting physical topology information Message-ID: <20040318232139.GA17586@kroah.com> References: <20040317213714.GD23195@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040317213714.GD23195@localhost> User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1287 Lines: 30 On Wed, Mar 17, 2004 at 04:37:14PM -0500, Martin Hicks wrote: > > Hi, > > I'm trying to figure out what the best way is to export a minimal amount > of physical topology information to userland. Would it be acceptable to > export this kind of information with sysfs? > > I'm not proposing that we build an entire physical topology tree in > sysfs, but just providing an attribute file. The two most obvious > examples of where this would be useful is for nodes and pci busses. The > Altix platform is a modular system with CPU bricks and IO bricks. We > currently have no method for locating where "node0" is, nor do we have a > method for locating pci bus 0000:20, for example. > > If we could physically locate a PCI bus, then it would be much easier > to (for example) locate our defective SCSI disk that is target4 on the > SCSI controller that is on pci bus 0000:20. Um, what's wrong with the current /sys/class/pci_bus/*/cpuaffinity files for determining this topology information? That is why it was added. thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/