Re: status of DRM_MGA on x86_64

Andi Kleen
2004-10-30T13:57:25Z

Dave Airlie <airlied@gmail.com> writes:

> sorry missed the list....
>

Ok my answers again.

> > It was solved long ago for the Radeon driver by Egbert Eich.
> > But for some unknown reason the DRI people never merged his patches.
>
> Because no-one agreed that his solution was clean enough for use,
> no-one contributed well described patches of the separate pieces to
> drm or dri,
>
> At the moment any solution to the 32/64-bit DRI will either break pure
> 64-bit systems or break 32/64-bit mixed systems, nobody has stepped
> forward and said that either of these are acceptable,

In short I think it doesn't make sense. There is enough existence
proof that you can write working 32bit emulation layers without
breaking any backwards compatibility. From my experiences with Egberts
patches there are also no compatibility problems.

You pay some cost for the conversion, but it tends to be not significant
(iirc from Egbert's results the non native case was not significantly
slower in ViewPerf)

Some people have attempted to design biarch ABIs in the past
for new interfaces, but more often than not they got it wrong in some
subtle detail and in the end you had to convert anyways.

> and no drm
> developer has the hardware to work on it,

Well, Egbert has and he wrote the code.

There is a working patch that you just need to apply, isn't there?

> This 64-bit vs 32/64-bit stuff has been on my drm todo list for ages
> but I've neither received clean patches or someone who has the test
> environment to convince me that breaking one or other of the currently
> working systems is acceptable...

Again you don't need to break anything. You just convert the ABI.

As a short layman's introduction on how Linux 32bit compatibility
works see http://www.firstfloor.org/~andi/writing-ioctl32
(some details are unfortunately outdated for 2.6, but you'll get
the high level view)

-Andi