Cannot install nvidia driver, In function 'block_cpu_fault_locked': implicit declaration of function 'task_stack_page' error

I am trying to reinstall the Ubuntu driver and NVIDIA on my desktop computer after the computer crashes. But the NVIDIA driver cannot install successfully after a failure. The first problem was that the computer goes into low resolution mode after installing Ubuntu usb asking me to restart the computer. The second problem I ran into is that the screen goes to black screen after switching to text command mode by pressing ctrl-alt-F1. I learned how to solve the black screen text command mode by editing /etc/default/gruband adding 'nomodeset' to a variable GRUB_CMDLINE_LINUX_DEFAULTand restarting the computer.

Then download https://us.download.nvidia.com/XFree86/Linux-x86_64/384.98/NVIDIA-Linux-x86_64-384.98.run and install this NVIDIA driver. But the installation failed due to the following error:

/tmp/selfgz1982/NVIDIA-Linux-x86_64-384.98/krenel/nvidia-uvm/uvm8_va_block.c: In funcion 'block_cpu_fault_locked':
./arch/x86/inlcude/asm/process.h:820:39: implicit error function 'task_stack_page' [-Werror = implicit-function-declaration]
unsigned long __ptr = (unsigned long) task_stack_page (task);

Is the graphic card broken?
Does nvidia benefit from a change in maternal bias or graphics card setup when it fails?
Installing Ubuntu can complete the installation and show a good resolution.

- , , ?

+4
3

@Wang, : https://github.com/NixOS/nixpkgs/issues/33284#issuecomment-354672627

, script nvidia.run, , script , . :

  • sudo ./nvidia.run -x .
  • . [the-extracted-folder]/kernel/nvidia-uvm/uvm8_va_block.c. #include <linux/sched/task_stack.h> .
  • sudo [the-extracted-folder]/nvidia-installer, .

.

+6

issue:

#include <linux/sched/task_stack.h> kernel/nvidia-uvm/uvm8_va_block.c .

+1

sudo sh cuda_9.1.85_387.26_linux.run --extract=$home/Downloads/cuda
0
source

Source: https://habr.com/ru/post/1692080/


All Articles