Re: status of DRM_MGA on x86_64

From: Egbert Eich
Date: Mon Nov 01 2004 - 04:54:02 EST


Andi Kleen writes:
> Thomas Zehetbauer <thomasz@xxxxxxxxxxxxxx> writes:
>
> > On Fre, 2004-10-29 at 12:47 -0700, Ian Romanick wrote:
> > > The problem, which exists with most (all?) DRM drivers, is that data
> > > types are used in the kernel/user interface that have different sizes on
> > > LP32 and LP64. If your kernel is 64-bit, you will have problems with
> > > 32-bit applications.
>
> That was not the reason I disabled it. I reenabled it now in my tree.
>
> > Then either all or no DRM drivers should be enabled on x86_64, the
> > DRM_TDFX, DRM_R128, DRM_RADEON and DRM_SIS are not currently disabled. I
> > vote for enabling all drivers that work with 64-bit applications.
>
> > I wonder if this should be the first and only place where different
> > kernel/userland bitness causes problems. How has this been solved
> > elsewhere?
>
> It was solved long ago for the Radeon driver by Egbert Eich.
> But for some unknown reason the DRI people never merged his patches.
>

I solved it for RADEON, MGA and R128.
It would be interesting to solve this for the i915 driver, too,
and possibly some others.

That it hasn't been merged into DRI yet is a shame. Appearantly
nobody has ever realized why this stuff is useful. Unfortunately
I don't have the time for lobbying it.
It's a very boring undertaking to have to port this from one DRI
version to the next.

Egbert.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/