{"id":3099,"date":"2023-03-06T12:20:01","date_gmt":"2023-03-06T20:20:01","guid":{"rendered":"https:\/\/rglinuxtech.com\/?p=3099"},"modified":"2023-03-06T12:20:01","modified_gmt":"2023-03-06T20:20:01","slug":"kernel-6-3-rc1-ok-with-latest-vmware-breaks-nvidia-fix-possible","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=3099","title":{"rendered":"Kernel &#8211; 6.3-rc1 &#8211; OK with Latest VMware, Breaks NVIDIA &#8211; Fix Possible.."},"content":{"rendered":"<p>Kernel <strong>6.3-rc1<\/strong> is out, and details are here:\u00a0\u00a0 <a href=\"https:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/2303.0\/04362.html\" target=\"_blank\" rel=\"noopener\">https:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/2303.0\/04362.html<\/a><\/p>\n<p>The latest (patched) VMware <strong>17.0.1<\/strong> is OK, but NVIDIA <strong>530.30.02<\/strong> fails to compile:<\/p>\n<p><strong><span style=\"font-family: Courier New, Courier, monospace;\">&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c: In function \u2018nvidia_mmap_numa\u2019:<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c:461:19: error: assignment of read-only member \u2018vm_flags\u2019<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">461 | vma-&gt;vm_flags |= VM_MIXEDMAP;<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">| ^~<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c: In function \u2018nvidia_mmap_helper\u2019:<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c:606:23: error: assignment of read-only member \u2018vm_flags\u2019<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">606 | vma-&gt;vm_flags |= VM_IO | VM_PFNMAP | VM_DONTEXPAND;<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">| ^~<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c:673:23: error: assignment of read-only member \u2018vm_flags\u2019<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">673 | vma-&gt;vm_flags |= (VM_IO | VM_LOCKED | VM_RESERVED);<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">| ^~<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c:674:23: error: assignment of read-only member \u2018vm_flags\u2019<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">674 | vma-&gt;vm_flags |= (VM_DONTEXPAND | VM_DONTDUMP);<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">| ^~<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c:680:23: error: assignment of read-only member \u2018vm_flags\u2019<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">680 | vma-&gt;vm_flags &amp;= ~VM_WRITE;<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">| ^~<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c:681:23: error: assignment of read-only member \u2018vm_flags\u2019<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">681 | vma-&gt;vm_flags &amp;= ~VM_MAYWRITE;<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">| ^~<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">make[2]: *** [scripts\/Makefile.build:252: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.o] Error 1<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">make[1]: *** [Makefile:2028: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel] Error 2<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">make[1]: Leaving directory &#8216;\/usr\/src\/linux-6.3-rc1&#8217;<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">make: *** [Makefile:82: modules] Error 2<\/span><\/strong><\/p>\n<p>There is a kernel 6.3 patch for an earlier driver version available, and this can be modified for the latest driver version:\u00a0\u00a0<a href=\"https:\/\/gist.github.com\/joanbm\/d10e9cbbbb8e245b6e7e27b2db338faf\" target=\"_blank\" rel=\"noopener\"> https:\/\/gist.github.com\/joanbm\/d10e9cbbbb8e245b6e7e27b2db338faf<\/a><\/p>\n<p>I have done this, and the driver now compiles successfully, and appears to load\/run OK&#8230;.<\/p>\n<p><strong><span style=\"font-family: Courier New, Courier, monospace;\">&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">ld -r -o \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-modeset\/nv-modeset-interface.o \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-modeset\/nvidia-modeset-linux.o \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-modeset\/nv-kthread-q.o<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">MODPOST \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/Module.symvers<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia.mod.o<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia.ko<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-uvm.mod.o<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-uvm.ko<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-modeset.mod.o<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-modeset.ko<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-drm.mod.o<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-drm.ko<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">CC [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-peermem.mod.o<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">LD [M] \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia-peermem.ko<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">make[1]: Leaving directory &#8216;\/usr\/src\/linux-6.3-rc1&#8217;<\/span><\/strong><\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0 March 4th 2023<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kernel 6.3-rc1 is out, and details are here:\u00a0\u00a0 https:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/2303.0\/04362.html The latest (patched) VMware 17.0.1 is OK, but NVIDIA 530.30.02 fails to compile: &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c: In function \u2018nvidia_mmap_numa\u2019: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c:461:19: error: assignment of read-only member \u2018vm_flags\u2019 461 | vma-&gt;vm_flags |= VM_MIXEDMAP; | ^~ \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c: In function \u2018nvidia_mmap_helper\u2019: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-530.30.02\/kernel\/nvidia\/nv-mmap.c:606:23: error: assignment of read-only member \u2018vm_flags\u2019 606 | vma-&gt;vm_flags |= VM_IO <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=3099\"><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":[1238,11,14,15,18,19,25],"tags":[2547,2500,2548,1305],"class_list":["post-3099","post","type-post","status-publish","format-standard","hentry","category-fix","category-hacks","category-kernel","category-linux-2","category-nvidia","category-opinion","category-vmware","tag-kernel-6-3-rc1","tag-latest-vmware-ok","tag-modified-patch-works","tag-nvidia-compile-fails"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3099","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=3099"}],"version-history":[{"count":3,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3099\/revisions"}],"predecessor-version":[{"id":3102,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3099\/revisions\/3102"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}