From owner-freebsd-emulation@FreeBSD.ORG Sat Aug 18 19:02:36 2012 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 CED5B1065670; Sat, 18 Aug 2012 19:02:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 45CF38FC14; Sat, 18 Aug 2012 19:02:35 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q7IJ2crv044817; Sat, 18 Aug 2012 22:02:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q7IJ2PJm074319; Sat, 18 Aug 2012 22:02:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q7IJ2PPi074318; Sat, 18 Aug 2012 22:02:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 18 Aug 2012 22:02:25 +0300 From: Konstantin Belousov To: Meowthink Message-ID: <20120818190225.GF33100@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kR3zbvD4cgoYnS/6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-x11@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: [CFT]Patch for dri / drm interoperability i386 world / amd64 kernel 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: Sat, 18 Aug 2012 19:02:36 -0000 --kR3zbvD4cgoYnS/6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 11, 2012 at 09:25:09AM +0800, Meowthink wrote: > Hello all, >=20 > So long FreeBSD's DRI implementation lacks of i386/amd64 > interoperability, as discussed [0] [1]. This breaks wine, linuxulator > etc. drawing using DRI-based OpenGL. > Paul Mackerras et al. actually did that part for Linux implementation, > so I simply translated their work to FreeBSD. Due to my poor > programming skills, there's some limitations: > 0. I tried to split compatible codes into separate files, like under > Linux. But as a result of the difference between FreeBSD and Linux, > the code is integrated in a "#include ...ioc32.c" form which is not > so elegant. > 1. For same reason, struct drm_driver_info has to be changed. I fixed 0 and 1 to my liking and committed the patch. Thank you. > 2. There should be some assertions if a 64-bit pointer failed to fit > in a 32-bit space. Linux implementation didn't do this either, but > they're guaranteed by user-space ioctl structures. This may result > unstable under heavy load. I am not sure what do you mean exactly. Can you elaborate, please ? --kR3zbvD4cgoYnS/6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlAv5ooACgkQC3+MBN1Mb4j2aQCgnBI9boW2+ygqqGhLWxo6bGez wEkAoNMpSaL+HhERdVPu9onnB26/1Ne+ =67i6 -----END PGP SIGNATURE----- --kR3zbvD4cgoYnS/6--