From owner-freebsd-arch@FreeBSD.ORG Mon Jun 16 22:34:26 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 853C337B401 for ; Mon, 16 Jun 2003 22:34:26 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ADA843F85 for ; Mon, 16 Jun 2003 22:34:25 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h5H608Mo014906; Tue, 17 Jun 2003 02:00:08 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h5H5YutT021835; Mon, 16 Jun 2003 22:34:56 -0700 (PDT) (envelope-from jmg) Date: Mon, 16 Jun 2003 22:34:56 -0700 From: John-Mark Gurney To: "M. Warner Losh" Message-ID: <20030617053456.GG73854@funkthat.com> Mail-Followup-To: "M. Warner Losh" , arch@freebsd.org References: <20030616074122.GF73854@funkthat.com> <20030616.225216.115910026.imp@bsdimp.com> <20030617050905.GE73854@funkthat.com> <20030616.231258.116352275.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030616.231258.116352275.imp@bsdimp.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: arch@freebsd.org Subject: Re: make /dev/pci really readable X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2003 05:34:26 -0000 M. Warner Losh wrote this message on Mon, Jun 16, 2003 at 23:12 -0600: > In message: <20030617050905.GE73854@funkthat.com> > John-Mark Gurney writes: > : M. Warner Losh wrote this message on Mon, Jun 16, 2003 at 22:52 -0600: > : > In message: <20030616074122.GF73854@funkthat.com> > : > John-Mark Gurney writes: > : > : Does anyone have an objection to making /dev/pci really honor the > : > : permissions, and giving normal users (or just group wheel) premission > : > : to run pciconf -l. Right now the code requires the write bit set for > : > : any operation. > : > > : > Yes. That's too dangerous and will panic a machine. > : > : I'm not talking about -r... and anyways, I have fixed part of the > : problem with unaligned reads/writes which has been posted to this > : thread already.... > > Saw that. Still not sure it is a good idea, but only if the code is > reviewed heavily... You can take a look at it if you want (I'll send you my patchse shortly.). Shouldn't take but about 5-10 minutes of your time. It's a VERY simple interface/code. > : > You can get the same information that pciconf -l does by going through > : > the alternative interface of devinfo. > : > : So, I hear you proposing to remove pciconf and the /dev/pci interface? > > Not really. I'm saying that we should beef up devinfo interface so > that it can get PNP information from more databases that just the PCI > one. pciconf is the wrong place for -v to be placed. But it was the > only place to place it when it was written. Now that other busses > have begun to implement pnp info to userland, we should look at a good > way to deal. I agree... devinfo is much beter than pciconf for device information, but this whole bit was just started to get one small piece of code committed, at least it'll be better while it lasts. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."