[PlanetCCRMA] Matrox cards & 2.4.24-1.ll.rhfc1.ccrma Kernel

Rob Amour Rob Amour" <rob@amour01.force9.co.uk
Mon Mar 29 07:43:01 2004


I can now answer my own question.  Just had confirmation from Matrox, that
it's a bug in there script when identifying the kernel type running.

If anybody is installing a Matrox card make the following changes to the
src/kernel/mtx_vm.c

ORIGINAL

#define __NO_VERSION__
#include "mtx_drv.h"

#if defined(REDHAT_KERNEL) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,20))
&&
(LINUX_VERSION_CODE != KERNEL_VERSION(2,4,22))
  #define REMAP_PAGE_RANGE remap_page_range
#else
  #define REMAP_PAGE_RANGE(vma, start, base, size, prot) \
    remap_page_range(start, base, size, prot)
#endif

AMENDED

#define __NO_VERSION__
#include "mtx_drv.h"

#define REMAP_PAGE_RANGE(vma, start, base, size, prot) \
remap_page_range(start, base, size, prot)

Hope this is of use to others.

Rob