Re: Improved DRM support for cant_use_aperture platforms

David Mosberger (davidm@napali.hpl.hp.com)
Sun, 11 May 2003 11:09:00 -0700


>>>>> On 11 May 2003 13:43:36 +0200, Michel Dänzer <michel@daenzer.net> said:

Michel> On Sam, 2003-05-10 at 12:09, David Mosberger wrote:
>> This patch is rather big, but actually very straight-forward: it
>> adds a "agp dev" argument to DRM_IOREMAP(),
>> DRM_IOREMAP_NOCACHE(), and DRM_IOREMAPFREE() and then uses it in
>> drm_memory.h to support platforms where CPU accesses to the AGP
>> space are not translated by the GART (true for ia64 and alpha,
>> not true for x86, I don't know about the other platforms). On
>> platforms where cant_use_aperture is always false, this whole
>> patch will look like a no-op. On ia64, it works. Don't know
>> about other platforms, but it should simplify things for Alpha at
>> least (and if it breaks a platform, I shall be happy to work with
>> the respective maintainer to get fix back to working).

Michel> I'd love to commit this to DRI CVS,

Great!

Michel> but there'd have to be fallbacks for older kernels (this is
Michel> against 2.4.20-ben8):

OK, we have a chicken & egg problem then: I could obviously add Linux
kernel version checks where needed, but to do that, the patch first
needs to go into the kernel. Dave, would you mind applying the patch
to your tree? Then once Linus picked it up, I can send a new patch to
dri-devel. Or does someone have a better suggestion?

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