From owner-freebsd-emulation@FreeBSD.ORG Tue May 19 20:10:47 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3150106564A for ; Tue, 19 May 2009 20:10:47 +0000 (UTC) (envelope-from yamagi@yamagi.org) Received: from mail.yamagi.org (yamagi.org [88.198.78.242]) by mx1.freebsd.org (Postfix) with ESMTP id 6A4048FC28 for ; Tue, 19 May 2009 20:10:47 +0000 (UTC) (envelope-from yamagi@yamagi.org) Received: from localhost (unknown [10.0.0.3]) by mail.yamagi.org (Postfix) with ESMTP id 519DE1083591; Tue, 19 May 2009 22:10:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at yamagi.org Received: from mail.yamagi.org ([10.0.0.3]) by localhost (mail.yamagi.org [10.0.0.3]) (amavisd-new, port 10024) with LMTP id QmBzYBRw245i; Tue, 19 May 2009 22:10:34 +0200 (CEST) Received: from saya.home.yamagi.org (f054142048.adsl.alicedsl.de [78.54.142.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yamagi.org (Postfix) with ESMTP id 0434C1083C1A; Tue, 19 May 2009 22:10:33 +0200 (CEST) Received: from saya.home.yamagi.org (localhost [127.0.0.1]) by saya.home.yamagi.org (8.14.3/8.14.3) with ESMTP id n4JKAW6b028789; Tue, 19 May 2009 22:10:32 +0200 (CEST) (envelope-from yamagi@saya.home.yamagi.org) Received: (from yamagi@localhost) by saya.home.yamagi.org (8.14.3/8.14.3/Submit) id n4JKAWMg028788; Tue, 19 May 2009 22:10:32 +0200 (CEST) (envelope-from yamagi) Date: Tue, 19 May 2009 22:10:32 +0200 From: Yamagi Burmeister To: Robert Noland Message-ID: <20090519201032.GB12505@yamagi.org> References: <92596693@bb.ipt.ru> <20090515145252.GA69488@yamagi.org> <20090519165039.GA12505@yamagi.org> <200905192012.06401.tijl@ulyssis.org> <1242760698.1752.21.camel@balrog.2hip.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kXdP64Ggrk/fb43R" Content-Disposition: inline In-Reply-To: <1242760698.1752.21.camel@balrog.2hip.net> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-emulation@FreeBSD.org Subject: Re: [new port] graphics/linux-dri74 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2009 20:10:48 -0000 --kXdP64Ggrk/fb43R Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Tue, May 19, 2009 at 02:18:17PM -0500 schrieb Robert Noland: > > > yamagi@saya:ttyp3 ~: /usr/compat/linux/usr/bin/glxinfo > > > name of display: :0.0 > > > libGL: XF86DRIGetClientDriverName: 5.3.0 r300 (screen 0) > > > libGL: OpenDriver: trying /usr/lib/dri/tls/r300_dri.so > > > libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so > > > drmOpenDevice: node name is /dev/dri/card0 > > > drmOpenDevice: open result is 4, (OK) > > > DRM_IOCTL_VERSION: Bad address > > > Segmentation fault (core dumped) > > >=20 > > > yamagi@saya:ttyp3 ~: /usr/compat/linux/usr/bin/glxinfo > > > name of display: :0.0 > > > libGL: XF86DRIGetClientDriverName: 5.3.0 r300 (screen 0) > > > libGL: OpenDriver: trying /usr/lib/dri/tls/r300_dri.so > > > libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so > > > drmOpenDevice: node name is /dev/dri/card0 > > > drmOpenDevice: open result is 4, (OK) > > > drmOpenByBusid: Searching for BusID pci:0000:01:00.0 > > > drmOpenDevice: node name is /dev/dri/card0 > > > drmOpenDevice: open result is 4, (OK) > > > drmOpenByBusid: drmOpenMinor returns 4 > > > drmOpenByBusid: drmGetBusid reports (null) > > > drmOpenDevice: node name is /dev/dri/card1 > > > drmOpenByBusid: drmOpenMinor returns -1 > > > drmOpenDevice: node name is /dev/dri/card2 > > > drmOpenByBusid: drmOpenMinor returns -1 > > > drmOpenDevice: node name is /dev/dri/card3 > > > drmOpenByBusid: drmOpenMinor returns -1 > > > drmOpenDevice: node name is /dev/dri/card4 > > > drmOpenByBusid: drmOpenMinor returns -1 > > > [..] > > > drmOpenDevice: node name is /dev/dri/card14 > > > drmOpenByBusid: drmOpenMinor returns -1 > > > libGL error: drmOpenOnce failed (Operation not permitted) > > > libGL error: reverting to software direct rendering > > > libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so > > > libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so > > > display: :0 screen: 0 > > > direct rendering: Yes > > >=20 > > I noticed you use the r300 driver so maybe this patch helps: > > http://people.freebsd.org/~rnoland/drm_radeon-copyin-fix-try2.patch >=20 > This patch, while it may be useful isn't related to the issue. =20 As expected, the patch doesn't change anything. > It looks like the linux version of drmOpen is behaving badly. Possibly, > it needs linproc mounted. drmOpen appears to be returning file > descriptor 4, which may be being mis-interpreted, but in any case it > really shouldn't need keep looking for more cards. OK, I tried again. This time linprocfs and even linsysfs where mounted. No change at all, the error message stays exactly the same as shown above.=20 I realy would like to see this issue fixed, but I don't know anything about the internals of DRM. So the only short time help I can offer is providing informations. If you need more, just tell me. Ciao, Yamagi --=20 Homepage: www.yamagi.org Jabber: yamagi@yamagi.org GnuPG/GPG: 0xEFBCCBCB --kXdP64Ggrk/fb43R Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkoTEjcACgkQWTjlg++8y8s1wQCcDrkhd3NOb8UbeSGd+oBE4EKG iRkAoKEyxYXp6GfiR8PlTOB4kFJdto0z =QGvA -----END PGP SIGNATURE----- --kXdP64Ggrk/fb43R--