{"id":3053,"date":"2022-08-12T21:23:58","date_gmt":"2022-08-13T04:23:58","guid":{"rendered":"https:\/\/rglinuxtech.com\/?p=3053"},"modified":"2022-08-12T21:23:58","modified_gmt":"2022-08-13T04:23:58","slug":"nvidia-possible-fix-for-6-0","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=3053","title":{"rendered":"NVIDIA &#8211; Possible Fix for 6.0?"},"content":{"rendered":"<p>After more testing, I found a potential fix for the &#8216;Kernel 6.0-rc0&#8217; compile problem..<\/p>\n<p>In <strong><span style=\"font-family: Courier New, Courier, monospace;\">NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-drm\/nvidia-drm-helper.c<\/span>:<\/strong><br \/>\nAround Line 30:<br \/>\nadd:<br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>#include &lt;drm\/drm_framebuffer.h&gt;<\/strong><\/span><\/p>\n<p>And the compile completes successfully:<br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>ld -r -o \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset\/nv-modeset-interface.o \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset\/nvidia-modeset-linux.o \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset\/nv-kthread-q.o<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>MODPOST \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/Module.symvers<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-drm.mod.o<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-drm.ko<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset.mod.o<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset.ko<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-peermem.mod.o<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-peermem.ko<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-uvm.mod.o<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-uvm.ko<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia.mod.o<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia.ko<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[1]: Leaving directory &#8216;\/usr\/src\/linux-6.0-rc0&#8217;<\/strong><\/span><\/p>\n<p>I have tested this with KDE (Fedora 36) and VMware, 4K video playback, etc, and everything <em>seems<\/em> to be working OK..<\/p>\n<p><strong>Warning<\/strong>&#8230;.\u00a0\u00a0 This fix was devised using logic, not driver programming expertise, so may not be completely &#8216;correct&#8217;!\u00a0\u00a0\u00a0 Hopefully someone who has the required knowledge will be able to come up with a valid one..\u00a0\u00a0 Use at your own risk!<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0 August 12th 2022.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After more testing, I found a potential fix for the &#8216;Kernel 6.0-rc0&#8217; compile problem.. In NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-drm\/nvidia-drm-helper.c: Around Line 30: add: #include &lt;drm\/drm_framebuffer.h&gt; And the compile completes successfully: &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. ld -r -o \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset\/nv-modeset-interface.o \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset\/nvidia-modeset-linux.o \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset\/nv-kthread-q.o MODPOST \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/Module.symvers CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-drm.mod.o LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-drm.ko CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset.mod.o LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-modeset.ko CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-peermem.mod.o LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-peermem.ko CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-515.65.01\/kernel\/nvidia-uvm.mod.o <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=3053\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","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,1238,11,14,15,18,19],"tags":[2497,182,277,2498,2153],"class_list":["post-3053","post","type-post","status-publish","format-standard","hentry","category-compilation","category-crash-and-burn","category-fix","category-hacks","category-kernel","category-linux-2","category-nvidia","category-opinion","tag-515-65-01","tag-hack","tag-nvidia-2","tag-possible-fix-for-kernel-6-0-rc","tag-use-at-own-risk"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3053","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3053"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3053\/revisions"}],"predecessor-version":[{"id":3054,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3053\/revisions\/3054"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}