[MPlayer-matrox] Kernel 2.6.11-rc1 has no remap_page_range

Colin Harrison colin.harrison at virgin.net
Thu Jan 20 11:47:14 CET 2005


Hi,

I had to apply the following patch to make your latest mga_vid for 2.6.10
work with
kernel 2.6.11-rc1.

--- mga-vid-2.6.10/mga_vid.c    2005-01-11 09:17:52.000000000 +0000
+++ my_mga_vid.c        2005-01-16 18:25:38.000000000 +0000
@@ -949,7 +949,7 @@
        }
        vma->vm_flags |= VM_RESERVED; // don't swap the page out

-       if(remap_page_range(vma, vma->vm_start, card->mem_base +
card->src_base,
+       if(remap_pfn_range(vma, vma->vm_start, (card->mem_base +
card->src_base) >> PAGE_SHIFT,
                 vma->vm_end - vma->vm_start, vma->vm_page_prot))
        {
                printk(KERN_ERR "mga_vid: error mapping video memory\n");

Now works fine for me (Matrox G550) on 2.6.10 and when patched to
2.6.11-rc1.

Thanks

Colin Harrison




More information about the MPlayer-matrox mailing list