{"id":2426,"date":"2018-11-04T17:34:27","date_gmt":"2018-11-05T01:34:27","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=2426"},"modified":"2018-11-04T17:34:27","modified_gmt":"2018-11-05T01:34:27","slug":"kernel-4-20-rc1-released-ok-with-vmware-not-with-nvidia-and-possible-fix","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=2426","title":{"rendered":"Kernel &#8211; 4.20-rc1 Released &#8211; OK with VMware, not with NVIDIA, and possible fix?"},"content":{"rendered":"<p>Kernel <strong>4.20-rc1<\/strong> is out, and brief details are here:\u00a0 <a href=\"http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/1811.0\/02531.html\" target=\"_blank\" rel=\"noopener\">http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/1811.0\/02531.html<\/a><\/p>\n<p>VMware <strong>15.0<\/strong> installs OK, but the latest NVIDIA fails.. (<strong>410.73<\/strong> with the <em>pm<\/em> patch, if needed):<\/p>\n<pre><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-410.73-custom\/kernel\/nvidia\/linux_nvswitch.c:1582:5: error: implicit declaration of function \u2018time_to_tm\u2019; did you mean \u2018time64_to_tm\u2019? [-Werror=implicit-function-declaration]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">time_to_tm(time_nsec \/ NVSWITCH_NSEC_PER_SEC, 0, &amp;t);<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">^~~~~~~~~~<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">time64_to_tm<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">.....................<\/span><\/strong><\/pre>\n<p>I made the change to <strong><span style=\"font-family: courier new, courier;\">linux_nvswitch.c<\/span><\/strong>, and then:<\/p>\n<pre><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-410.73-custom\/kernel\/nvidia-drm\/nvidia-drm-gem-nvkms-memory.c:348:11: error: implicit declaration of function \u2018vm_insert_pfn\u2019; did you mean \u2018vmf_insert_pfn\u2019? [-Werror=implicit-function-declaration]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">ret = vm_insert_pfn(vma, address, pfn + page_offset);<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">^~~~~~~~~~~~~<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">vmf_insert_pfn<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">...........................<\/span><\/strong><\/pre>\n<p>Made that change, as well, and then the driver compiled\/loaded OK:<\/p>\n<pre><strong><span style=\"font-family: courier new, courier;\">..................................<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">ld -r -o \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-modeset\/nv-modeset-interface.o \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-modeset\/nvidia-modeset-linux.o<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">Building modules, stage 2.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">MODPOST 4 modules<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">CC \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-drm.mod.o<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">LD [M] \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-drm.ko<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">CC \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-modeset.mod.o<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">LD [M] \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-modeset.ko<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">CC \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-uvm.mod.o<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">LD [M] \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-uvm.ko<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">CC \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia.mod.o<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">LD [M] \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia.ko<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">make[2]: Leaving directory '\/usr\/src\/linux-4.20-rc1'<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">make[1]: Leaving directory '\/usr\/src\/linux-4.20-rc1'<\/span><\/strong><\/pre>\n<p>But&#8230;\u00a0\u00a0 the compilation threw a <span style=\"text-decoration: underline;\">lot<\/span> of repeated &#8216;warnings&#8217;:<\/p>\n<pre><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-410.73-custom\/kernel\/nvidia-uvm\/uvm_linux.h:270:2: warning: #warning \"atomic64_t unavailable, demoting to atomic_t!\" [-Wcpp]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">#warning \"atomic64_t unavailable, demoting to atomic_t!\"<\/span><\/strong>\r\n<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-410.73-custom\/kernel\/nvidia-uvm\/uvm8_kvmalloc_test.o<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">In file included from \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-uvm\/uvm_common.h:48,<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">from \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-uvm\/uvm8_kvmalloc_test.c:24:<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-uvm\/uvm_linux.h:270:2: warning: #warning \"atomic64_t unavailable, demoting to atomic_t!\" [-Wcpp]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">#warning \"atomic64_t unavailable, demoting to atomic_t!\"<\/span><\/strong>\r\n<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-410.73-custom\/kernel\/nvidia-uvm\/uvm8_pmm_test.o<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">In file included from \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-uvm\/uvm_common.h:48,<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">from \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-uvm\/uvm8_pmm_test.c:24:<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">\/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-uvm\/uvm_linux.h:270:2: warning: #warning \"atomic64_t unavailable, demoting to atomic_t!\" [-Wcpp]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">#warning \"atomic64_t unavailable, demoting to atomic_t!\"<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new, courier;\">^~~~~~~<\/span><\/strong>\r\n<span style=\"font-family: courier new, courier;\"><strong>..............\u00a0<\/strong> etc...<\/span><\/pre>\n<p>More testing will be needed!<\/p>\n<p><em>Robert Gadsdon.\u00a0 November 4, 2018.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kernel 4.20-rc1 is out, and brief details are here:\u00a0 http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/1811.0\/02531.html VMware 15.0 installs OK, but the latest NVIDIA fails.. (410.73 with the pm patch, if needed): &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia\/linux_nvswitch.c:1582:5: error: implicit declaration of function \u2018time_to_tm\u2019; did you mean \u2018time64_to_tm\u2019? [-Werror=implicit-function-declaration] time_to_tm(time_nsec \/ NVSWITCH_NSEC_PER_SEC, 0, &amp;t); ^~~~~~~~~~ time64_to_tm &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; I made the change to linux_nvswitch.c, and then: &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. \/home\/rgadsdon\/kernel\/NVIDIA-Linux-x86_64-410.73-custom\/kernel\/nvidia-drm\/nvidia-drm-gem-nvkms-memory.c:348:11: <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=2426\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"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":[14,15,18,19,1533,25],"tags":[1991,1987,1989,1988,1990],"class_list":["post-2426","post","type-post","status-publish","format-standard","hentry","category-kernel","category-linux-2","category-nvidia","category-opinion","category-patches","category-vmware","tag-fix-needs-testing","tag-kernel-4-20-rc1-released","tag-nvidia-410-73-compile-fails","tag-ok-with-vmware-15-0","tag-possible-patches"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2426","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=2426"}],"version-history":[{"count":2,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2426\/revisions"}],"predecessor-version":[{"id":2428,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2426\/revisions\/2428"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}