From owner-freebsd-x11@FreeBSD.ORG Wed Apr 15 18:55:35 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E4591065693 for ; Wed, 15 Apr 2009 18:55:35 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 232A68FC1B for ; Wed, 15 Apr 2009 18:55:35 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.156] (adsl-1-210-55.bna.bellsouth.net [65.1.210.55]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n3FItTMU014188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Apr 2009 14:55:29 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: John Nielsen In-Reply-To: <200904142212.07237.lists@jnielsen.net> References: <200904131902.22584.lists@jnielsen.net> <200904142212.07237.lists@jnielsen.net> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-bi9Skw377Z9L6VoBuB2c" Organization: FreeBSD Date: Wed, 15 Apr 2009 13:54:30 -0500 Message-Id: <1239821670.2194.10.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.0 FreeBSD GNOME Team Port X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-x11@freebsd.org Subject: Re: r128 dual-head error X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2009 18:55:36 -0000 --=-bi9Skw377Z9L6VoBuB2c Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2009-04-14 at 22:12 -0400, John Nielsen wrote: > On Monday 13 April 2009, Warren Block wrote: > > On Mon, 13 Apr 2009, John Nielsen wrote: > > > I'm trying to get dual-head + Xinerama going on a Dell Inspiron 4000 > > > laptop so I can use both the integrated flat panel and an external CR= T. > > > > Multiple screens aren't done with Xinerama any more. xrandr is the new > > way. >=20 > I don't think r128 is that modern.. >=20 > > > From what I can tell I have my xorg.conf configured properly and it's > > > trying to do the right thing but it's throwing an error when > > > initializing the secondary screen: > > > > > > (EE) R128(1): Unable to map MMIO aperture. Invalid argument (22) > > > > Don't know about r128 specifically, but that's an old-style xorg.conf. > > > > > How should I go about troubleshooting this? > > > > Rework your xorg.conf, example below. >=20 > I did but without much luck. >=20 > > Section "Monitor" > > > Option "PreferredMode" "1920x1200" > > Option "Position" "1024 0" >=20 > These options parsed fine but generated warnings about the fact that they= =20 > were ignored. >=20 > Running with a single active "Screen" section works fine, but xrandr give= s=20 > no indication that it's aware of more than one head/display. >=20 > Looking through the r128_driver.c code it looks like the IsPrimary and=20 > IsSecondary booleans only get set to true if there is more than one scree= n=20 > defined by the configuration. >=20 > I did some poor man's debugging of the original issue (by adding some log= =20 > print statements to the code). The function which is throwing the "invali= d=20 > argument" error is pci_device_map_range, called from R128MapMMIO. With my= =20 This is in libpciaccess. 22 is EINVAL, the call may be failing on mtrr or just the attempt to remap the same register space a second time. The problem is either in libpciaccess or the r128 driver. robert. > dual-screen xinerama config, R128MapMMIO is called once for each screen=20 > during pre-init. This succeeds for both screens (and is followed by=20 > corresponding UnMap calls). It is called again in ScreenInit. The call fo= r=20 > the primary screen succeeds, but the call for the secondary screen fails.= =20 > The arguments from the secondary screen's ScreenInit call are _exactly_ t= he=20 > same as they are in the pre-init call so it's either a really weird bug o= r=20 > something is happening to pScrn structure in the interim to make it=20 > "invalid."=20 >=20 > I didn't follow the chain of events any farther than that. Is there a goo= d=20 > forum on e.g. freedesktop to get some help with this if it's not FreeBSD- > specific? >=20 > Thanks, >=20 > JN >=20 > _______________________________________________ > freebsd-x11@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" --=20 Robert Noland FreeBSD --=-bi9Skw377Z9L6VoBuB2c Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAknmLWYACgkQM4TrQ4qfROOsQACdGJ5ZRE10O5+KKjLstkbkl/NF a/4AnRMBme12cNskAHsqqu6jqXnnQ+Xe =Tt5R -----END PGP SIGNATURE----- --=-bi9Skw377Z9L6VoBuB2c--