{"id":1907,"date":"2017-01-19T07:20:04","date_gmt":"2017-01-19T07:20:04","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1907"},"modified":"2017-01-19T07:20:04","modified_gmt":"2017-01-19T07:20:04","slug":"nvidia-beta-driver-378-09-still-broken-with-kernel-4-10","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1907","title":{"rendered":"NVIDIA &#8211; Beta Driver 378.09 &#8211; Still Broken with Kernel 4.10"},"content":{"rendered":"<p>New <em>beta<\/em> driver <strong>378.09<\/strong> has been released, and details are here:\u00a0 <a href=\"http:\/\/www.nvidia.com\/download\/driverResults.aspx\/114232\/en-us\" target=\"_blank\">http:\/\/www.nvidia.com\/download\/driverResults.aspx\/114232\/en-us<\/a><\/p>\n<p>The driver compiles OK with Kernel 4.9.4, but fails to compile with <strong>4.10-rc4<\/strong>, with <span style=\"text-decoration: underline;\">different<\/span> errors from 375.26, as some of the code base has changed..<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">......................<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">CC [M] \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-p2p.o<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> CC [M] \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.o<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c: In function \u2018nvidia_cpu_callback\u2019:<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c:213:14: error: \u2018CPU_DOWN_FAILED\u2019 undeclared (first use in this function)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> case CPU_DOWN_FAILED:<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> ^~~~~~~~~~~~~~~<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c:213:14: note: each undeclared identifier is reported only once for each function it appears in<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c:220:14: error: \u2018CPU_DOWN_PREPARE\u2019 undeclared (first use in this function)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> case CPU_DOWN_PREPARE:<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> ^~~~~~~~~~~~~~~~<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">In file included from \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c:15:0:<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c: In function \u2018nv_init_pat_support\u2019:<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/common\/inc\/nv-linux.h:391:34: error: implicit declaration of function \u2018register_cpu_notifier\u2019 [-Werror=implicit-function-declaration]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> #define register_hotcpu_notifier register_cpu_notifier<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> ^<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c:258:17: note: in expansion of macro \u2018register_hotcpu_notifier\u2019<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> if (register_hotcpu_notifier(&amp;nv_hotcpu_nfb) != 0)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> ^~~~~~~~~~~~~~~~~~~~~~~~<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c: In function \u2018nv_teardown_pat_support\u2019:<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/common\/inc\/nv-linux.h:388:36: error: implicit declaration of function \u2018unregister_cpu_notifier\u2019 [-Werror=implicit-function-declaration]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> #define unregister_hotcpu_notifier unregister_cpu_notifier<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> ^<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c:283:9: note: in expansion of macro \u2018unregister_hotcpu_notifier\u2019<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> unregister_hotcpu_notifier(&amp;nv_hotcpu_nfb);<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> ^~~~~~~~~~~~~~~~~~~~~~~~~~<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">cc1: some warnings being treated as errors<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/usr\/src\/linux-4.10-rc4\/scripts\/Makefile.build:293: recipe for target '\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.o' failed<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make[3]: *** [\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.o] Error 1<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">\/usr\/src\/linux-4.10-rc4\/Makefile:1490: recipe for target '_module_\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel' failed<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make[2]: *** [_module_\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel] Error 2<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make[2]: Leaving directory '\/usr\/src\/linux-4.10-rc4'<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Makefile:150: recipe for target 'sub-make' failed<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make[1]: *** [sub-make] Error 2<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make[1]: Leaving directory '\/usr\/src\/linux-4.10-rc4'<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Makefile:81: recipe for target 'modules' failed<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make: *** [modules] Error 2<\/span><\/strong><\/pre>\n<p>And.. as expected, the patch for 375.26 does <span style=\"text-decoration: underline;\">not<\/span> work, as some of the code, headers, etc. are different, or files no longer exist:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">.................<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/kernel\/common\/inc\/nv-mm.h<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #1 FAILED at 83.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">1 out of 1 hunk FAILED -- saving rejects to file a\/kernel\/common\/inc\/nv-mm.h.rej<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">..................<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/kernel\/nvidia-drm\/nvidia-drm-modeset.c<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #1 succeeded at 78 (offset 9 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #2 FAILED at 644.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #3 FAILED at 982.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">2 out of 3 hunks FAILED -- saving rejects to file a\/kernel\/nvidia-drm\/nvidia-drm-modeset.c.rej<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">..........................<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/kernel\/nvidia-uvm\/uvm8.c<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #1 FAILED at 101.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #2 FAILED at 315.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">2 out of 2 hunks FAILED -- saving rejects to file a\/kernel\/nvidia-uvm\/uvm8.c.rej<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/kernel\/nvidia-uvm\/uvm8_test.c<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">can't find file to patch at input line 342<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Perhaps you used the wrong -p or --strip option?<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">The text leading up to this was:<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">--------------------------<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">|diff -ur a\/kernel\/nvidia-uvm\/uvm_lite.c b\/kernel\/nvidia-uvm\/uvm_lite.c<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">...........................<\/span><\/strong><\/pre>\n<p>So, for the time being, stay with 375.26 (patched) on 4.10-rc&#8230;<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0\u00a0 January 18, 2017.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>New beta driver 378.09 has been released, and details are here:\u00a0 http:\/\/www.nvidia.com\/download\/driverResults.aspx\/114232\/en-us The driver compiles OK with Kernel 4.9.4, but fails to compile with 4.10-rc4, with different errors from 375.26, as some of the code base has changed.. &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. CC [M] \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-p2p.o CC [M] \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.o \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c: In function \u2018nvidia_cpu_callback\u2019: \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-378.09\/kernel\/nvidia\/nv-pat.c:213:14: error: \u2018CPU_DOWN_FAILED\u2019 undeclared (first use in this <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1907\"><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,14,15,18,1533],"tags":[440,1537,1531,277,1538],"class_list":["post-1907","post","type-post","status-publish","format-standard","hentry","category-compilation","category-crash-and-burn","category-kernel","category-linux-2","category-nvidia","category-patches","tag-compile-fail","tag-driver-378-09","tag-kernel-4-10-rc4","tag-nvidia-2","tag-previous-patch-fails"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1907","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=1907"}],"version-history":[{"count":2,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1907\/revisions"}],"predecessor-version":[{"id":1909,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1907\/revisions\/1909"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}