From owner-svn-src-head@FreeBSD.ORG Wed Feb 25 18:26:35 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 EBCB21065697; Wed, 25 Feb 2009 18:26:35 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id B9DA68FC1B; Wed, 25 Feb 2009 18:26:35 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=UTF-8; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) id <0KFM00I06TSAP300@smtpauth2.wiscmail.wisc.edu>; Wed, 25 Feb 2009 11:26:34 -0600 (CST) Received: from trantor.tachypleus.net (adsl-99-154-1-172.dsl.mdsnwi.sbcglobal.net [99.154.1.172]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KFM00BFQTS4TG70@smtpauth2.wiscmail.wisc.edu>; Wed, 25 Feb 2009 11:26:29 -0600 (CST) Date: Wed, 25 Feb 2009 11:27:23 -0600 From: Nathan Whitehorn In-reply-to: <200902021954.n12JsGT2005768@svn.freebsd.org> To: John Baldwin Message-id: <49A57F7B.3040704@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=99.154.1.172 X-Spam-PmxInfo: Server=avs-9, Version=5.5.1.360522, Antispam-Engine: 2.6.1.350677, Antispam-Data: 2009.2.25.171028, SenderIP=99.154.1.172 References: <200902021954.n12JsGT2005768@svn.freebsd.org> User-Agent: Thunderbird 2.0.0.19 (X11/20090126) 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 18:26:37 -0000 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. -Nathan