{"id":1917,"date":"2017-02-15T02:14:14","date_gmt":"2017-02-15T02:14:14","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1917"},"modified":"2017-02-15T04:50:59","modified_gmt":"2017-02-15T04:50:59","slug":"nvidia-new-drivers-still-broken-with-4-10","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1917","title":{"rendered":"NVIDIA &#8211; New Drivers, Still Broken with 4.10 &#8211; And a Patch for 378.13.."},"content":{"rendered":"<p>NVIDIA have released new drivers <strong>375.39<\/strong> (&#8216;long term&#8217;) and <strong>378.13<\/strong> (&#8216;short term&#8217;) and details are here:\u00a0 <a href=\"http:\/\/www.nvidia.com\/download\/driverResults.aspx\/114708\/en-us\" target=\"_blank\">http:\/\/www.nvidia.com\/download\/driverResults.aspx\/114708\/en-us<\/a> and <a href=\"http:\/\/www.nvidia.com\/download\/driverResults.aspx\/115031\/en-us\" target=\"_blank\">http:\/\/www.nvidia.com\/download\/driverResults.aspx\/115031\/en-us<\/a>.<\/p>\n<p>Both still fail to compile with Kernel 4.10 (tested with 4.10-rc8) and I tried the previous 378.09 patch against 379.13, but it failed to apply cleanly, as more code has changed..<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">$ cat nv-37809-410-patch.patch |patch -p0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/kernel\/common\/inc\/nv-linux.h<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/kernel\/nvidia\/nv-p2p.c<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/kernel\/nvidia-drm\/nvidia-drm-fence.c<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #7 succeeded at 136 (offset 4 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #8 succeeded at 146 (offset 4 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #9 succeeded at 155 (offset 4 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #10 succeeded at 170 (offset 4 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #11 succeeded at 285 (offset 4 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #12 succeeded at 301 (offset 4 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #13 succeeded at 320 (offset 4 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #14 succeeded at 513 (offset 4 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #15 FAILED at 666.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">1 out of 15 hunks FAILED -- saving rejects to file a\/kernel\/nvidia-drm\/nvidia-drm-fence.c.rej<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/kernel\/nvidia-drm\/nvidia-drm-gem.c<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #1 FAILED at 510.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">1 out of 1 hunk FAILED -- saving rejects to file a\/kernel\/nvidia-drm\/nvidia-drm-gem.c.rej<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/kernel\/nvidia-drm\/nvidia-drm-gem.h<\/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;\">patching file a\/kernel\/nvidia-drm\/nvidia-drm-priv.h<\/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;\">...................<\/span><\/strong>\r\n\r\n<\/pre>\n<p>The code changes appear to be <em>relatively<\/em> trivial, and in one case include an added &#8216;comment&#8217;, and I am trying to apply the necessary changes manually, and will then test the results..<\/p>\n<p>Soon after I posted the original article, <strong>Tomas Pruzina<\/strong> posted an updated patch, for <strong>378.13<\/strong>, and details are here:\u00a0 <a href=\"https:\/\/devtalk.nvidia.com\/default\/topic\/994087\/linux\/387-13-patch-for-4-10-0-rc8-linus-master-\/\" target=\"_blank\">https:\/\/devtalk.nvidia.com\/default\/topic\/994087\/linux\/387-13-patch-for-4-10-0-rc8-linus-master-\/<\/a><\/p>\n<p>I have applied this to 378.13 on the test system, and it now compiles OK, on Kernel 4.10-rc8.<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0\u00a0 February 14, 2017.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NVIDIA have released new drivers 375.39 (&#8216;long term&#8217;) and 378.13 (&#8216;short term&#8217;) and details are here:\u00a0 http:\/\/www.nvidia.com\/download\/driverResults.aspx\/114708\/en-us and http:\/\/www.nvidia.com\/download\/driverResults.aspx\/115031\/en-us. Both still fail to compile with Kernel 4.10 (tested with 4.10-rc8) and I tried the previous 378.09 patch against 379.13, but it failed to apply cleanly, as more code has changed.. $ cat nv-37809-410-patch.patch |patch -p0 patching file <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1917\"><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,1533,20],"tags":[1545,1546,969,1517,1544,277,1547,362],"class_list":["post-1917","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-patches","category-performance-2","tag-375-39","tag-378-13","tag-compile-fails","tag-kernel-4-10","tag-new-drivers","tag-nvidia-2","tag-patch-needs-mods","tag-testing"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1917","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=1917"}],"version-history":[{"count":4,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1917\/revisions"}],"predecessor-version":[{"id":1921,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1917\/revisions\/1921"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}