{"id":1330,"date":"2015-02-23T07:47:20","date_gmt":"2015-02-23T07:47:20","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1330"},"modified":"2015-02-23T07:47:20","modified_gmt":"2015-02-23T07:47:20","slug":"kernel-welcome-to-linux-4-0-vmware-patched-ok-nvidia-fix-available","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1330","title":{"rendered":"Kernel &#8211; Welcome to Linux 4.0?  VMware (Patched) OK, NVIDIA Fix Available.."},"content":{"rendered":"<p>Just tested <strong>Kernel 4.0-rc1<\/strong> &#8211; announced here:\u00a0 <a title=\"http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/1502.2\/04059.html\" href=\"http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/1502.2\/04059.html\" target=\"_blank\">http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/1502.2\/04059.html<\/a><\/p>\n<p>As you will see &#8211; not much actual detail on what has changed, and I have already run into a couple of &#8216;issues&#8217;&#8230;<\/p>\n<p>The Radeon drm driver on my laptop refuses to load, and the boot hangs immediately with<\/p>\n<pre><strong>drm r600_ring_test [radeon] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xFFFFFFFF)<\/strong>\r\n<strong>radeon 0000:01:00.0: disabling GPU acceleration<\/strong><\/pre>\n<p>The workaround is to disable the drm driver, and just use the framebuffer one, for the time being..<\/p>\n<p>VMware <strong>11.1.0<\/strong> &#8211; with the <em>vmnet<\/em> patches &#8211; loads and runs OK..<\/p>\n<p>NVIDIA driver 346.35 fails to compile:<\/p>\n<pre><strong>\/home\/rgadsdon\/NVIDIA-Linux-x86_64-346.35\/kernel\/nv-pat.c: In function \u2018nv_disable_caches\u2019:<\/strong>\r\n<strong>\/home\/rgadsdon\/NVIDIA-Linux-x86_64-346.35\/kernel\/nv-pat.c:38:5: error: implicit declaration of function \u2018read_cr4\u2019 [-Werror=implicit-function-declaration]<\/strong>\r\n<strong> *cr4 = read_cr4();<\/strong>\r\n<strong> ^<\/strong>\r\n<strong>\/home\/rgadsdon\/NVIDIA-Linux-x86_64-346.35\/kernel\/nv-pat.c:39:5: error: implicit declaration of function \u2018write_cr4\u2019 [-Werror=implicit-function-declaration]<\/strong>\r\n<strong> if (*cr4 &amp; 0x80) write_cr4(*cr4 &amp; ~0x80);<\/strong>\r\n<strong> ^<\/strong>\r\n<strong>cc1: some warnings being treated as errors<\/strong><\/pre>\n<p>Thanks to <em><strong>juston_li<\/strong><\/em> at the NVIDIA DevZone forums, there is a simple fix, but the example is &#8211; as is mentioned &#8211; only for 4.0 and later, and needs to have kernel version tests added, to leave the code as-is for pre-4.0 kernels..<\/p>\n<p><a title=\"https:\/\/devtalk.nvidia.com\/default\/topic\/813458\/linux\/linux-4-0-rc1-346-35-build-error-_cr4-functions-fix\/\" href=\"https:\/\/devtalk.nvidia.com\/default\/topic\/813458\/linux\/linux-4-0-rc1-346-35-build-error-_cr4-functions-fix\/\" target=\"_blank\">https:\/\/devtalk.nvidia.com\/default\/topic\/813458\/linux\/linux-4-0-rc1-346-35-build-error-_cr4-functions-fix\/<\/a><\/p>\n<p>More test are needed, but at least it booted OK, after the above &#8216;workarounds&#8217;..<\/p>\n<pre><strong>$ uname -a<\/strong>\r\n<strong>Linux rg6830l 4.0.0-rc1 #1 SMP Sun Feb 22 23:51:39 PST 2015 x86_64 x86_64 x86_64 GNU\/Linux<\/strong><\/pre>\n<p><em>Robert Gadsdon.\u00a0\u00a0 February 22, 2015.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just tested Kernel 4.0-rc1 &#8211; announced here:\u00a0 http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/1502.2\/04059.html As you will see &#8211; not much actual detail on what has changed, and I have already run into a couple of &#8216;issues&#8217;&#8230; The Radeon drm driver on my laptop refuses to load, and the boot hangs immediately with drm r600_ring_test [radeon] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xFFFFFFFF) <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1330\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,6,11,14,15,18,19,20,25],"tags":[944,440,1021,1023,1019,983,1022,517,1020],"class_list":["post-1330","post","type-post","status-publish","format-standard","hentry","category-compilation","category-crash-and-burn","category-hacks","category-kernel","category-linux-2","category-nvidia","category-opinion","category-performance-2","category-vmware","tag-boot-success","tag-compile-fail","tag-fix-available","tag-framebuffer-workaround","tag-kernel-4-0-rc1","tag-nvidia-346-35","tag-radeon-drm-error","tag-vmnet-patch","tag-vmware-11-1-0"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1330"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1330\/revisions"}],"predecessor-version":[{"id":1331,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1330\/revisions\/1331"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}