From owner-freebsd-x11@FreeBSD.ORG Mon Apr 28 14:15:50 2014 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B37A9EB4 for ; Mon, 28 Apr 2014 14:15:50 +0000 (UTC) Received: from mail.made4.biz (mail.made4.biz [IPv6:2001:41d0:2:c018::1:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 75221129A for ; Mon, 28 Apr 2014 14:15:50 +0000 (UTC) Received: from [2001:1b48:10b:cafe:225:64ff:febe:589f] (helo=viking.yzserv.com) by mail.made4.biz with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82 (FreeBSD)) (envelope-from ) id 1WemLU-000NL8-6X; Mon, 28 Apr 2014 16:15:48 +0200 Message-ID: <535E628E.6070400@FreeBSD.org> Date: Mon, 28 Apr 2014 16:15:42 +0200 From: =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Jan_Kokem=FCller?= , freebsd-x11@freebsd.org Subject: Re: [PATCH] 32 bit compatibility ioctls for radeon driver References: <53282961.5010404@gmail.com> In-Reply-To: <53282961.5010404@gmail.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="32NsBrtiPjRUMDwK0ueRgiUMRF5Bjrj6G" X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2014 14:15:50 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --32NsBrtiPjRUMDwK0ueRgiUMRF5Bjrj6G Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 18.03.2014 12:09, Jan Kokem=FCller wrote: > I've noticed that the kernel currently pagefaults when trying to run > 32-bit 3D applications under a 64-bit kernel with a Radeon card when > COMPAT_FREEBSD32 is defined. The generic DRM code tries to access the > compat_ioctls_nr and compat_ioctls fields of the drm_driver_info struct= , > but they aren't set by the radeon driver. > I've tried to translate the compatibility ioctls in radeon_ioc32.c from= > the Linux versions to FreeBSD. It seems to work fine with 32-bit > glxgears and some games under Wine. > A patch is attached. Hello Jan! I tried your patch this week-end and I was able to play to StarCraft II on FreeBSD 11-CURRENT :) I committed it to my DRM update branch for now, but will commit it to HEAD and stable/{10,9} as soon as I can. Thank you for your work! --=20 Jean-S=E9bastien P=E9dron --32NsBrtiPjRUMDwK0ueRgiUMRF5Bjrj6G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTXmKTAAoJEDnpl2Gl/ZTMNyMQAI9qUl0Qr65Lvhi4Qr19Y/0C dhx+/TE6Gr0Ew1sSkRlbWEF2JxezbqRAyW2gDE96MOl55ocQmJ6RY287ZwMMhqBG Tu9fXasNY/gi0ALQ2bmVJ/in+vkr8ZHicOz0j7zaTGb9OlHN1SyHQ+zSOuFIH4NJ uBkcO23pWE9RJWE69uvuM1L9n1yDXuLYWg38sPawdhLoYN0OoOLnYRbYGmOPpRMn tD0/Vcvt0LUoK5ocm5KbEgD9Wffe+3docAoWyXqmcUNB1lC+RnBBZkxbbv2sKFbq +YVKFNy7AIAA3kkRYeBQ9oepBCDJ/YX6bmsJ+9McMCnlQDivJEkzfX5scHBCwk7N UCl6kPxds3FExhavlviawpsu9/v2ruCQrdhlXXYyPVyc8oKvYFw4+TtNFEH0quQJ 8ET/dO9KNwHFfRKvIR5rbJwEu1N8nBNkwBs9isWF0T8EG4s86j6lv1YbGepPdNCA YrzmrHDDcLfSH9HHlAeECWJxbCK72mHpxy+qlTeXJDKxdRr0qnZh4XDn1ue3naEk 1FIHeK4yYha26ocMKkb72+KKnsS1h7K5is3DPW7IjdMkZe4aDvwEtu3xS8NPjKop +Pitj799D/sdojwCo7kG/bzKN6r/1lsm2FBiW3YGIKDIRqKCfcS/DJaShlP86c5c ZAbmoHSRMvtOfBIjjkqm =TDie -----END PGP SIGNATURE----- --32NsBrtiPjRUMDwK0ueRgiUMRF5Bjrj6G--