{"id":307,"date":"2013-02-08T08:07:48","date_gmt":"2013-02-08T08:07:48","guid":{"rendered":"http:\/\/www.struck.de\/blog\/?p=307"},"modified":"2013-02-08T08:07:48","modified_gmt":"2013-02-08T08:07:48","slug":"sis1100e310x-linux-driver-opensuse-12-3rc1-at-kernel-3-7-6","status":"publish","type":"post","link":"https:\/\/www.struck.de\/blog\/?p=307","title":{"rendered":"SIS1100e\/310x LINUX driver opensuse 12.3rc1 at kernel 3.7.6"},"content":{"rendered":"<p>Thanks to Tibor Keri from the University of Glasgow for bringing the following to our attention:<\/p>\n<pre>In kernel 3.7-rc1, the flag VM_RESERVED is removed<\/pre>\n<p>The implication is, that sis11_mmap.c requires the following patch:<\/p>\n<p>\/*\u00a0\u00a0 offset in bytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 + size of mapping\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 *\/<\/p>\n<p>if ((vma-&gt;vm_pgoff&lt;&lt;PAGE_SHIFT)+(vma-&gt;vm_end-vma-&gt;vm_start)&gt;<\/p>\n<p>PAGE_ALIGN(size))<\/p>\n<p>return -EINVAL;<\/p>\n<p>\/* start of patch\u00a0 *\/<\/p>\n<p>#ifndef VM_RESERVED<\/p>\n<p># define\u00a0 VM_RESERVED\u00a0\u00a0 (VM_DONTEXPAND | VM_DONTDUMP)<\/p>\n<p>#endif<\/p>\n<p>\/* end of patch\u00a0 *\/<\/p>\n<p>vma-&gt;vm_flags |= VM_RESERVED;<\/p>\n<p>vma-&gt;vm_flags |= VM_IO;<\/p>\n<p>vma-&gt;vm_flags |= VM_DONTEXPAND;<\/p>\n<p>vma-&gt;vm_page_prot = pgprot_noncached(vma-&gt;vm_page_prot);<\/p>\n<p>&nbsp;<\/p>\n<p>Refer to the following links also:<\/p>\n<p><a href=\"https:\/\/www.virtualbox.org\/pipermail\/vbox-dev\/2012-October\/005392.html\">https:\/\/www.virtualbox.org\/pipermail\/vbox-dev\/2012-October\/005392.html<\/a><\/p>\n<p><a href=\"https:\/\/www.virtualbox.org\/pipermail\/vbox-dev\/2012-October\/005395.html\">https:\/\/www.virtualbox.org\/pipermail\/vbox-dev\/2012-October\/005395.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: \/*\u00a0\u00a0 offset in bytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 + size of &hellip; <a href=\"https:\/\/www.struck.de\/blog\/?p=307\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,4],"tags":[89,55,33,3,54],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-driver","category-interface","tag-interface","tag-kernel-3-7-6","tag-linux-driver","tag-linux-sis1100-sis310x-driver-vme-suse-redhat","tag-opensuse"],"_links":{"self":[{"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=307"}],"version-history":[{"count":1,"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions\/308"}],"wp:attachment":[{"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.struck.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}