[PATCH] 32 bit compatibility ioctls for radeon driver

Marat N.Afanasyev amarat at li.ru
Tue Jul 22 17:21:25 UTC 2014


Jean-Sébastien Pédron wrote:
> On 18.03.2014 12:09, Jan Kokemüller 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!
>
any chance to have drm with such a patch? not drm2, but drm?

-- 
SY, Marat

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4228 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20140722/31602cf8/attachment.bin>


More information about the freebsd-x11 mailing list