On Mon, 2003-05-12 at 23:51, David Mosberger wrote:
> Michel> Hmm, isn't there a way to make it work with older kernels as
> Michel> well? For reference, we've been using
> Michel> http://www.penguinppc.org/~daenzer/DRI/drm-ioremapagp.diff
> Michel> by Benjamin Herrenschmidt for a while for Apple UniNorth
> Michel> northbridges.
>
> It should be possible to add vmap() and vunmap() to kernel/vmalloc.c
> on older kernels. I think those are the only dependencies
There are a couple more, like pte_offset_kernel(), pte_pfn(),
pfn_to_page() and flush_tlb_kernel_range(). Getting this working with
2.4 seems like a lot of work and/or ugly. :\
> (apart from PAGE_AGP, which is taken care of by the latest patch).
Not quite, PAGE_KERNEL_NOCACHE isn't defined on all architectures
either.
> Michel> Anyway, after applying your second patch, things looked much
> Michel> better, and the attached patch against the DRI CVS trunk
> Michel> builds without warnings here.
>
> Great! Does this mean that next time Linus does a pull he'll pick up
> this stuff?
No, I haven't committed it yet. I'd like to find a solution for PAGE_AGP
first at least. Looks like we have to wait for Linus to merge the
asm/agp.h part of your patch first?
Meanwhile, here's another version of the DRI CVS patch, I got rid of the
local variable in the drm_ioremap* functions.
-- Earthling Michel Dänzer \ Debian (powerpc), XFree86 and DRI developer Software libre enthusiast \ http://svcs.affero.net/rm.php?r=daenzer
- 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/
This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:42 EST