I updated yesterday and I encounter the same crash. The result is a login loop problem in my main user and a fixed display resolution problem. Can you recommend a temporary fix ?
Last part of nvidia-kernel-source-435.0.crash /nvidia-drm/nvidia-drm-helper.c /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44: error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean ‘DRIVER_PCI_DMA’? .driver_features = DRIVER_GEM | DRIVER_PRIME | DRIVER_RENDER, ^~~~~~~~~~~~ DRIVER_PCI_DMA cc -Wp,-MD,/var/lib/dkms/nvidia/435.21/build/nvidia-drm/.nv-pci-table.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/lib/dkms/nvidia/435.21/build/common/inc -I/var/lib/dkms/nvidia/435.21/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"435.21\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DMODULE -DKBUILD_BASENAME='"nv_pci_table"' -DKBUILD_MODNAME='"nvidia_drm"' -c -o /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nv-pci-table.o /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nv-pci-table.c scripts/Makefile.build:273: recipe for target '/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.o' failed make[2]: *** [/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Makefile:1731: recipe for target '/var/lib/dkms/nvidia/435.21/build' failed make[1]: *** [/var/lib/dkms/nvidia/435.21/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic' Makefile:81: recipe for target 'modules' failed make: *** [modules] Error 2 DKMSKernelVersion: 5.4.0-42-generic Date: Thu Jul 23 22:04:13 2020 DuplicateSignature: dkms:nvidia-kernel-source-435:435.21-0ubuntu0.18.04.2:/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44: error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean ‘DRIVER_PCI_DMA’? Package: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2 PackageVersion: 435.21-0ubuntu0.18.04.2 SourcePackage: nvidia-graphics-drivers-435 Title: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module failed to build -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to nvidia-graphics-drivers-435 in Ubuntu. https://bugs.launchpad.net/bugs/1888617 Title: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module failed to build Status in nvidia-graphics-drivers-435 package in Ubuntu: Confirmed Bug description: After a "usual" upgrade, my system did not give any sign of life on the monitor. I tried to boot an older kernel, it worked. Then I discovered, that the problem that nvidia drivers cannot be built against kernel linux-image-5.4.0-42-generic, which could be the problem. from /var/crash/nvidia-kernel-source-435.0.crash : /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44: error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean ‘DRIVER_PCI_DMA’? .driver_features = DRIVER_GEM | DRIVER_PRIME | DRIVER_RENDER, ^~~~~~~~~~~~ DRIVER_PCI_DMA scripts/Makefile.build:273: recipe for target '/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.o' failed make[2]: *** [/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.o] Error 1 make[2]: *** Waiting for unfinished jobs.... ./tools/objtool/objtool check --module --retpoline --uaccess /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm.o ./tools/objtool/objtool check --module --retpoline --uaccess /var/lib/dkms/nvidia/435.21/build/nvidia-uvm/uvm8_range_group_tree_test.o ./tools/objtool/objtool check --module --retpoline --uaccess /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-utils.o ./tools/objtool/objtool check --module --retpoline --uaccess /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-encoder.o ./tools/objtool/objtool check --module --retpoline --uaccess /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-gem.o ./tools/objtool/objtool check --module --retpoline --uaccess /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-connector.o ./tools/objtool/objtool check --module --retpoline --uaccess /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-crtc.o Makefile:1731: recipe for target '/var/lib/dkms/nvidia/435.21/build' failed make[1]: *** [/var/lib/dkms/nvidia/435.21/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic' Makefile:81: recipe for target 'modules' failed make: *** [modules] Error 2 DKMSKernelVersion: 5.4.0-42-generic Date: Wed Jul 22 08:08:55 2020 DuplicateSignature: dkms:nvidia-kernel-source-435:435.21-0ubuntu0.18.04.2:/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44: error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean ‘DRIVER_PCI_DMA’? Package: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2 PackageVersion: 435.21-0ubuntu0.18.04.2 SourcePackage: nvidia-graphics-drivers-435 Title: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module failed to build ProblemType: Package DistroRelease: Ubuntu 18.04 Package: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2 ProcVersionSignature: Ubuntu 5.3.0-62.56~18.04.1-generic 5.3.18 Uname: Linux 5.3.0-62-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.9-0ubuntu7.15 Architecture: amd64 DKMSKernelVersion: 5.4.0-42-generic Date: Wed Jul 22 08:08:55 2020 Dependencies: DuplicateSignature: dkms:nvidia-kernel-source-435:435.21-0ubuntu0.18.04.2:/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44: error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean ‘DRIVER_PCI_DMA’? InstallationDate: Installed on 2020-01-06 (198 days ago) InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805) PackageVersion: 435.21-0ubuntu0.18.04.2 Python3Details: /usr/bin/python3.6, Python 3.6.9, python3-minimal, 3.6.7-1~18.04 PythonDetails: /usr/bin/python2.7, Python 2.7.17, python-minimal, 2.7.15~rc1-1 RelatedPackageVersions: dpkg 1.19.0.5ubuntu2.3 apt 1.6.12ubuntu0.1 SourcePackage: nvidia-graphics-drivers-435 Title: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module failed to build UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-435/+bug/1888617/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp