{"id":2932,"date":"2021-07-11T18:02:07","date_gmt":"2021-07-12T01:02:07","guid":{"rendered":"https:\/\/rglinuxtech.com\/?p=2932"},"modified":"2021-07-11T18:02:07","modified_gmt":"2021-07-12T01:02:07","slug":"kernel-5-14-rc1-ok-with-patched-vmware-breaks-nvidia","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=2932","title":{"rendered":"Kernel &#8211; 5.14-rc1 &#8211; OK with Patched VMware, Breaks NVIDIA.."},"content":{"rendered":"<p>Kernel <strong>5.14-rc1<\/strong> has been released, and brief details are here:\u00a0\u00a0 <a href=\"http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/2107.1\/02943.html\" target=\"_blank\" rel=\"noopener\">http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/2107.1\/02943.html<\/a><\/p>\n<p>The latest VMware 16.1.2 patch includes a fix for 5.14-rc, and compiles and runs OK (tested with 5.14-rc1).\u00a0\u00a0 Find it at:\u00a0 <a href=\"https:\/\/github.com\/mkubecek\/vmware-host-modules\/tree\/workstation-16.1.2\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/mkubecek\/vmware-host-modules\/tree\/workstation-16.1.2<\/a><\/p>\n<p>NVIDIA 470.42.01 compile failed:<br \/>\n&#8230;&#8230;&#8230;&#8230;.<br \/>\n<code><strong><span style=\"font-family: Consolas, monospace;\"><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-470.42.01\/kernel\/common\/inc\/nv-time.h: In function \u2018nv_sleep_ms\u2019:<\/span><\/span><\/strong><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>\/home\/rgadsdon\/NVIDIA-Linux-x86_64-470.42.01\/kernel\/common\/inc\/nv-time.h:217:18: error: \u2018struct task_struct\u2019 has no member named \u2018state\u2019; did you mean \u2018__state\u2019?<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>217 | current-&gt;state = TASK_INTERRUPTIBLE;<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>| ^~~~~<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>| __state<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[2]: *** [scripts\/Makefile.build:271: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-470.42.01\/kernel\/nvidia\/nv.o] Error 1<\/strong><\/span><\/code><br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<\/p>\n<p>Bodged this by simply changing &#8216;<span style=\"font-family: Consolas, monospace;\"><code><strong>state<\/strong><\/code><\/span>&#8216; to &#8216;<strong><span style=\"font-family: Consolas, monospace;\"><code>__state<\/code><\/span><\/strong>&#8216; in line 217 of <strong><span style=\"font-family: Consolas, monospace;\">NVIDIA-Linux-x86_64-470.42.01\/kernel\/common\/inc\/nv-time.h<\/span><\/strong> (note that other changes may be necessary..), and then the compile failed with:<\/p>\n<p><code><strong><span style=\"font-family: Consolas, monospace;\"><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-470.42.01\/kernel\/nvidia-drm\/nvidia-drm-drv.c:925:14: error: \u2018struct drm_device\u2019 has no member named \u2018pdev\u2019; did you mean \u2018dev\u2019?<\/span><\/span><\/strong><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>925 | dev-&gt;pdev = to_pci_dev(device);<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>| ^~~~<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>| dev<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>make[2]: *** [scripts\/Makefile.build:271: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-470.42.01\/kernel\/nvidia-drm\/nvidia-drm-drv.o] Error 1<\/strong><\/span><\/code><\/p>\n<p>The driver can be compiled\/loaded by usin<span style=\"font-family: Georgia, Times, serif;\">g the <span style=\"font-family: Courier New, Courier, monospace;\"><strong>#<\/strong> <strong>NVIDIA-Linux-x86_64-470.42.01.run &#8211;no-drm<\/strong><\/span> option<\/span>..\u00a0\u00a0\u00a0 More investigation needed&#8230;<\/p>\n<p><em>Robert Gadsdon\u00a0\u00a0\u00a0 July 11th 2021.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kernel 5.14-rc1 has been released, and brief details are here:\u00a0\u00a0 http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/2107.1\/02943.html The latest VMware 16.1.2 patch includes a fix for 5.14-rc, and compiles and runs OK (tested with 5.14-rc1).\u00a0\u00a0 Find it at:\u00a0 https:\/\/github.com\/mkubecek\/vmware-host-modules\/tree\/workstation-16.1.2 NVIDIA 470.42.01 compile failed: &#8230;&#8230;&#8230;&#8230;. \/home\/rgadsdon\/NVIDIA-Linux-x86_64-470.42.01\/kernel\/common\/inc\/nv-time.h: In function \u2018nv_sleep_ms\u2019: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-470.42.01\/kernel\/common\/inc\/nv-time.h:217:18: error: \u2018struct task_struct\u2019 has no member named \u2018state\u2019; did you mean \u2018__state\u2019? 217 | <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=2932\"><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,11,14,15,18,19,25],"tags":[2400,2401,2402,1305,1107],"class_list":["post-2932","post","type-post","status-publish","format-standard","hentry","category-compilation","category-hacks","category-kernel","category-linux-2","category-nvidia","category-opinion","category-vmware","tag-16-1-2","tag-470-42-01","tag-kernel-5-14-rc1-released","tag-nvidia-compile-fails","tag-vmware-patched-ok"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2932","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=2932"}],"version-history":[{"count":2,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2932\/revisions"}],"predecessor-version":[{"id":2934,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2932\/revisions\/2934"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}