Skip to contentSkip to conversation

Intel 830m backport (2.5 -> 2.4)

PATCH In review Federico Di Gregorio 4 participants 5 messages Aug 23, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Intel 830m backport (2.5 -> 2.4)

hi,

this is my first try at a kernel patch, i hope i am doing everything right; if not, please just tell me. (i sent this patch to both the drm maintainer and the linux-kernel ML. should i send 2.4 patches directly to marcelo? mm..)

anyway, this is just a backport of the 2.5 DRM driver for Intel 830M to the 2.4 series. It is against 2.4.19 but, consisting only of added files it should work clean on later kernels (tested on 2.4.20pre). The patch is quite big (67252 bytes) and can be downloaded from:

        http://people.initd.org/fog/linux-2.4.19-i830.diff

* Added files:

    linux-2.4.19/drivers/char/drm/i830_dma.c
    linux-2.4.19/drivers/char/drm/i830_drm.h
    linux-2.4.19/drivers/char/drm/i830_drv.c
    linux-2.4.19/drivers/char/drm/i830_drv.h
    linux-2.4.19/drivers/char/drm/i830.h

* Modified files:

    linux-2.4.19/Documentation/Configure.help
    linux-2.4.19/drivers/char/drm/Config.in
    linux-2.4.19/drivers/char/drm/Makefile

The only noteworthy change is the removal of some 2.5 specific code from i830_free_page (file i830_dma.c) and the replacement of unlock_page by UnlockPage.

I am not subscribed to the kernel ML, so please keep me in cc:.

ciao,
federico

Signature · 4 lines
Federico Di Gregorio
Debian GNU/Linux Developer                                [email protected]
INIT.D Developer                                           [email protected]
                   I came like Water, and like Wind I go. -- Omar Khayam
#1 lore raw
Quoted 11 lines · Federico Di Gregorio

hi,

this is my first try at a kernel patch, i hope i am doing everything right; if not, please just tell me. (i sent this patch to both the drm maintainer and the linux-kernel ML. should i send 2.4 patches directly to marcelo? mm..)

anyway, this is just a backport of the 2.5 DRM driver for Intel 830M to the 2.4 series. It is against 2.4.19 but, consisting only of added files it should work clean on later kernels (tested on 2.4.20pre). The patch is quite big (67252 bytes) and can be downloaded from:

Please don't do this. The 2.5 drm code is a piece of shit and even crappier than the one in 2.4.

Alan, is there any chance you could send marcelo the -ac drm code?

#2 lore raw
Quoted 1 line · Christoph Hellwig

Alan, is there any chance you could send marcelo the -ac drm code?

It needs untangling from any rmap macro dependancies. Go ahead

#3 lore raw
Quoted 5 lines · Alan Cox
Quoted 1 line · Christoph Hellwig

Alan, is there any chance you could send marcelo the -ac drm code?

It needs untangling from any rmap macro dependancies. Go ahead

There are no -rmap depencies, just on a few -ac features (new scheduler, strict overcommit).

I've uploaded a patch that updates the mainline drm code to -ac, fixes all compiler warnings and removes the remaining LINUX_VERSION_CODE checks after most have already been removed in -ac.

It's at http://verein.lst.de/~hch/misc/linux-2.4.20-pre4-drm.patch

#4 lore raw
In reply to Alan Cox
Quoted 5 lines · Alan Cox
Quoted 1 line · Christoph Hellwig

Alan, is there any chance you could send marcelo the -ac drm code?

It needs untangling from any rmap macro dependancies. Go ahead

Those "rmap macro dependencies" have been merged into 2.4 mainline a few months ago ;)

Rik

Signature · 3 lines
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/		http://distro.conectiva.com/