On Mo, 12.03.07 19:00 David Baron <d_baron@xxxxxxxxxx> wrote: > At least the 9631 version of the Nvidia video driver did not compile > after the patch was applied and the kernel successfully build and > booted. Same would definitely hold for older Nvidia versions and > possibly newer ones as well. > > Problem: A bunch of obseleted #define SA_..... entries > in the linux source/include/linux/interrupt.h > > They say do not use in newer code but Nvidia does need them. > > Solution: Copy these from an older or unpatched version of this file > and then paste into the new one. One need not rebuild the kernel > since these are no longer used there. After do this, Nvidia will > build and run fine (so far). Don't "fix" the kernel, but fix the drivers ;) Patches for 9746 driver attached. Tom
--- usr/src/nv/nv.c.orig 2007-02-05 16:24:02.000000000 +0100 +++ usr/src/nv/nv.c 2007-02-05 16:24:58.000000000 +0100 @@ -107,7 +107,7 @@ static int nv_mmconfig_failure_detected = 0; -static kmem_cache_t *nv_pte_t_cache = NULL; +static struct kmem_cache *nv_pte_t_cache = NULL; // allow an easy way to convert all debug printfs related to events // back and forth between 'info' and 'errors'
--- usr/src/nv/nv.c.orig 2007-02-05 16:43:26.000000000 +0100 +++ usr/src/nv/nv.c 2007-02-05 16:44:23.000000000 +0100 @@ -1909,8 +1909,8 @@ } status = request_irq(nv->interrupt_line, nv_kern_isr, - SA_INTERRUPT | SA_SHIRQ, "nvidia", - (void *) nvl); + IRQF_DISABLED | IRQF_SHARED, "nvidia", + (void *) nvl); if (status != 0) { if ( nv->interrupt_line && (status == -EBUSY) )
Attachment:
signature.asc
Description: PGP signature