From owner-svn-src-head@FreeBSD.ORG Wed Feb 25 17:51:16 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EC65106568B; Wed, 25 Feb 2009 17:51:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 276C48FC20; Wed, 25 Feb 2009 17:51:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id B376446B9F; Wed, 25 Feb 2009 12:51:15 -0500 (EST) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n1PHp9Fp034556; Wed, 25 Feb 2009 12:51:09 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Nathan Whitehorn Date: Wed, 25 Feb 2009 12:51:01 -0500 User-Agent: KMail/1.9.7 References: <200902021954.n12JsGT2005768@svn.freebsd.org> <49A57F7B.3040704@freebsd.org> In-Reply-To: <49A57F7B.3040704@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902251251.01789.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 25 Feb 2009 12:51:09 -0500 (EST) X-Virus-Scanned: ClamAV 0.94.2/9047/Wed Feb 25 05:59:41 2009 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r188018 - in head: sys/dev/pci usr.sbin/pciconf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2009 17:51:38 -0000 On Wednesday 25 February 2009 12:27:23 pm Nathan Whitehorn wrote: > John Baldwin wrote: > > Author: jhb > > Date: Mon Feb 2 19:54:16 2009 > > New Revision: 188018 > > URL: http://svn.freebsd.org/changeset/base/188018 > > > > Log: > > - Add a new ioctl to /dev/pci to fetch details on an individual BAR of a > > device. The details include the current value of the BAR (including all > > the flag bits and the current base address), its length, and whether or not > > it is enabled. Since this operation is not invasive, non-root users are > > allowed to use it (unlike manual config register access which requires > > root). The intention is that userland apps (such as Xorg) will use this > > interface rather than dangerously frobbing the BARs from userland to > > obtain this information. > > - Add a new sub-mode to the 'list' mode of pciconf. The -b flag when used > > with -l will now list all the active BARs for each device. > > > > Do you happen to have any patches for libpciaccess to use this? > > Libpciaccess (and so the latest Xorg server) hoses my PowerPC machine > when trying to list BARs, but pciconf -b works correctly. There are > probably endianness problems in the libpciaccess code, and it would be > nice to just replace that mess with this interface. No, I don't have any patches. rnoland@ might. This interface was explicitly designed to replace mess in libpciaccess. :) -- John Baldwin