SIS1100e/310x LINUX driver opensuse 12.3rc1 at kernel 3.7.6

Thanks to Tibor Keri from the University of Glasgow for bringing the following to our attention:

In kernel 3.7-rc1, the flag VM_RESERVED is removed

The implication is, that sis11_mmap.c requires the following patch:

/*   offset in bytes           + size of mapping          */

if ((vma->vm_pgoff<<PAGE_SHIFT)+(vma->vm_end-vma->vm_start)>

PAGE_ALIGN(size))

return -EINVAL;

/* start of patch  */

#ifndef VM_RESERVED

# define  VM_RESERVED   (VM_DONTEXPAND | VM_DONTDUMP)

#endif

/* end of patch  */

vma->vm_flags |= VM_RESERVED;

vma->vm_flags |= VM_IO;

vma->vm_flags |= VM_DONTEXPAND;

vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);

 

Refer to the following links also:

https://www.virtualbox.org/pipermail/vbox-dev/2012-October/005392.html

https://www.virtualbox.org/pipermail/vbox-dev/2012-October/005395.html

This entry was posted in Driver, Interface and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.