I upgraded the leap 15.1 to 15.2 and nvidia drivers not working.
Procedure used:
1 copy /etc/zypp/repos.d to repos.d.old
2 remove all repos from yast except main and update repos
3. use the variable $releasever to specify the version
4. use zypper to download only using the options --releasever=15.2
5. logout of desktop and log in to tty (cltr-alt-F1)
6. use zypper to do the distribution upgrade specifying --releasever=15.2 --no-refresh dup
7. the procedure forced the acceptance of the nouveau drivers or the it aborted the update.
8. after the distribution upgrade completed I copied the …old repos file back to /etc/zypp/repos.d to restore all the repos and then I did a Zypper up to update to latest software and there was a compile error in the nvidia drivers – see attached listing. oops it says that I cannot attach a file. Here is an extract:
/usr/src/linux-5.3.18-lp152.63/include/linux/mm_types.h:657:32: note: previou
s declaration of ‘vm_fault_t’ was here
typedef __bitwise unsigned int vm_fault_t;
/usr/src/linux-5.3.18-lp152.63/include/linux/mm_types.h:657:32: note: previou
/usr/src/kernel-modules/nvidia-390.141-default/common/inc/nv-list-helpers.h:95:23: error: redefinition of ‘list_is_first’
static inline int list_is_first(const struct list_head *list,
^~~~~~~~~~~~~
In/usr/src/kernel-modules/nvidia-390.141-default/common/inc/nv-linux.h:1349:38: error: ‘swiotlb_map_sg_attrs’ undeclared (first use in this function); did you mean ‘dma_map_sg_attrs’?
swiotlb_in_use = (ops->map_sg == swiotlb_map_sg_attrs);
^~~~~~~~~~~~~~~~~~~~
make[2]: *** [/usr/src/linux-5.3.18-lp152.63/Makefile:1650: module/usr/src/kernel-modules/nvidia-390.141-default] Error 2
The following command shows that nvidia is failing
x64Cru_150G:~ # inxi -SGxxz
System:
Kernel: 5.3.18-lp152.63-default x86_64 bits: 64 compiler: gcc v: 7.5.0
Console: tty 1 wm: kwin_x11 dm: SDDM Distro: openSUSE Leap 15.2
Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1080] vendor: eVga.com. driver: N/A
bus ID: 01:00.0 chip ID: 10de:1b80
Display: server: X.Org 1.20.3 compositor: kwin_x11 driver: nouveau
FAILED: nvidia unloaded: fbdev,modesetting,vesa alternate: nv
resolution: 1024x768~76Hz s-dpi: 100
OpenGL: renderer: N/A v: N/A direct render: N/A
How do I fix this problem? I do not remember having this problem when upgrading from 15.0 to 15.1
Thanks,
regards,
Bob