Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2009 11:57:20 -0600
From:      Robert Noland <rnoland@FreeBSD.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Nathan Whitehorn <nwhitehorn@freebsd.org>
Subject:   Re: svn commit: r188018 - in head: sys/dev/pci usr.sbin/pciconf
Message-ID:  <1235584641.1273.69.camel@widget.2hip.net>
In-Reply-To: <200902251251.01789.jhb@freebsd.org>
References:  <200902021954.n12JsGT2005768@svn.freebsd.org> <49A57F7B.3040704@freebsd.org>  <200902251251.01789.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-ZzJVl2HcEeaQbPZG0ifs
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 2009-02-25 at 12:51 -0500, John Baldwin wrote:
> 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
> > >=20
> > > 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 (includ=
ing all
> > >     the flag bits and the current base address), its length, and whet=
her or not
> > >     it is enabled.  Since this operation is not invasive, non-root us=
ers are
> > >     allowed to use it (unlike manual config register access which req=
uires
> > >     root).  The intention is that userland apps (such as Xorg) will u=
se 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 wh=
en used
> > >     with -l will now list all the active BARs for each device.
> > >
> >=20
> > Do you happen to have any patches for libpciaccess to use this?
> >=20
> > Libpciaccess (and so the latest Xorg server) hoses my PowerPC machine=20
> > when trying to list BARs, but pciconf -b works correctly. There are=20
> > probably endianness problems in the libpciaccess code, and it would be=20
> > nice to just replace that mess with this interface.
>=20
> No, I don't have any patches.  rnoland@ might.  This interface was explic=
itly
> designed to replace mess in libpciaccess. :)

I still need to work on getting this into libpciaccess.  It's
complicated by the fact that we still need to keep the existing code in
place and only use the new ioctl where it exists...

I'll try and get a patch together soon.

robert.

--=20
Robert Noland <rnoland@FreeBSD.org>
FreeBSD

--=-ZzJVl2HcEeaQbPZG0ifs
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)

iEYEABECAAYFAkmlhoAACgkQM4TrQ4qfROPYEgCgh5QGApTSDKRoAjcxxJkxSWce
FQEAn00SjwkZ8gvkGry9bBxLQ+3DCGz5
=vmhb
-----END PGP SIGNATURE-----

--=-ZzJVl2HcEeaQbPZG0ifs--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1235584641.1273.69.camel>