RT : nvidia driver and perhaps others

Serge Noiraud
2005-06-15T08:34:34Z

Hi,

I try to compile the nvidia driver for my RT kernel.
It does not work anymore.

I have a great question : Do we need to modify all drivers ?

Isn't there a better way to avoid these modifications ?
for example to have the external fonction the same than non RT kernel.
and have an internal link to the new one or something like that ?

I will have the same problem with PVIC drivers I think.

These drivers are proprietary, so I can't modify them.
I think we should change :

1 - local_irq_* to raw_local_irq_* : is it always true ?
I done this and now the driver loads OK
# define NV_CLI() local_irq_disable()
# define NV_SAVE_FLAGS(eflags) local_save_flags(eflags)
# define NV_RESTORE_FLAGS(eflags) local_irq_restore(eflags)

2 - spin_* to raw_spin_* ?

#define nv_init_lock(lock) spin_lock_init(&lock)
#define nv_lock(lock) spin_lock(&lock)
#define nv_unlock(lock) spin_unlock(&lock)
#define nv_lock_irq(lock,flags) spin_lock_irqsave(&lock,flags)
#define nv_unlock_irq(lock,flags) spin_unlock_irqrestore(&lock,flags)

and other in two files ... too many modifications.