Bug#960735: nvidia-legacy-390xx-kernel-dkms: doesn't compile with linux 5.7
Jiri Palecek
jpalecek at web.de
Sat May 16 01:02:43 BST 2020
Package: nvidia-legacy-390xx-kernel-dkms
Version: 390.132-4
Severity: normal
Tags: patch
Dear Maintainer,
I was trying to test nvidia drivers with the new kernel in experimental
5.7.0-rc5-686-pae. In the build log, I noticed it failed due to missing
functions set_memory_array_wb and friends. However, the code seemed to
be prepared for that possibility, so the problem must be the conftest.
I checked the output from the compilation checks and found some are
failing for the wrong reason, which causes some functions to be wrongly
detected as present (!) and some wrongly detected as missing. This would
probably apply to the other branches of nvidia drivers as well. I
prepared a patch for this, some comments:
- asm/page.h and asm/pgtable.h are needed for the pgprop_t type. Some
arches have here, some have it there. Otherwise the compilation
wrongly fails and detects the functions as present
- atomic_long_t is pulled by including linux/atomic.h, not
asm/atomic.h. Otherwise it's detected wrongly as absent
- linux/acpi.h is needed for acpi_status type
I checked that these files were present in the linux kernel since
2.6.39, but haven't tested compilation with such old kernels. It should,
however, work.
Please have a look at this.
Regards
Jiri Palecek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel-5.7.0-set-memory-array
Type: text/x-diff
Size: 2318 bytes
Desc: proposed patch
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20200516/cc8b6043/attachment-0001.diff>
-------------- next part --------------
-- Package-specific info:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20200516/cc8b6043/attachment-0001.ksh>
-------------- next part --------------
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: i386 (i686)
Foreign Architectures: amd64
Kernel: Linux 5.5.0-1-686-pae (SMP w/2 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2), LANGUAGE=cs_CZ (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages nvidia-legacy-390xx-kernel-dkms depends on:
ii dkms 2.8.1-5
ii nvidia-installer-cleanup 20151021+7
ii nvidia-legacy-390xx-kernel-support [nvidia-legacy-390xx-kernel- 390.132-2
Versions of packages nvidia-legacy-390xx-kernel-dkms recommends:
ii libnvidia-legacy-390xx-cuda1 390.132-2
ii nvidia-legacy-390xx-driver 390.132-2
nvidia-legacy-390xx-kernel-dkms suggests no packages.
Versions of packages nvidia-legacy-390xx-driver depends on:
ii nvidia-installer-cleanup 20151021+7
ii nvidia-legacy-390xx-alternative 390.132-2
ii nvidia-legacy-390xx-driver-bin 390.132-2
ii nvidia-legacy-390xx-driver-libs 390.132-2
ii nvidia-legacy-390xx-vdpau-driver 390.132-2
ii nvidia-support 20151021+7
ii xserver-xorg-video-nvidia-legacy-390xx 390.132-2
Versions of packages nvidia-legacy-390xx-driver recommends:
ii libnvidia-legacy-390xx-cfg1 390.132-2
ii nvidia-persistenced 418.56-1
ii nvidia-settings-legacy-390xx 390.116-1
nvidia-legacy-390xx-driver suggests no packages.
Versions of packages nvidia-legacy-390xx-driver-libs:i386 depends on:
ii libgl1-nvidia-legacy-390xx-glvnd-glx 390.132-2
ii nvidia-legacy-390xx-egl-icd 390.132-2
Versions of packages nvidia-legacy-390xx-driver-libs:i386 recommends:
pn libgles-nvidia-legacy-390xx1 <none>
pn libgles-nvidia-legacy-390xx2 <none>
ii libglx-nvidia-legacy-390xx0 390.132-2
ii libnvidia-legacy-390xx-cfg1 390.132-2
ii libopengl0 1.3.1-1
ii nvidia-legacy-390xx-vulkan-icd 390.132-2
Versions of packages xserver-xorg-video-nvidia-legacy-390xx depends on:
ii libc6 2.30-7
ii libnvidia-legacy-390xx-glcore 390.132-2
ii nvidia-installer-cleanup 20151021+7
ii nvidia-legacy-390xx-alternative 390.132-2
ii nvidia-support 20151021+7
ii xserver-xorg-core [xorg-video-abi-24] 2:1.20.8-2
Versions of packages xserver-xorg-video-nvidia-legacy-390xx recommends:
ii nvidia-legacy-390xx-driver 390.132-2
ii nvidia-legacy-390xx-vdpau-driver 390.132-2
ii nvidia-settings-legacy-390xx 390.116-1
xserver-xorg-video-nvidia-legacy-390xx suggests no packages.
Versions of packages nvidia-legacy-390xx-alternative depends on:
ii dpkg 1.20.1~2.gbp7298ec
ii glx-alternative-nvidia 1.1.0
Versions of packages glx-alternative-nvidia depends on:
ii dpkg 1.20.1~2.gbp7298ec
ii glx-alternative-mesa 1.1.0
ii glx-diversions 1.1.0
ii update-glx 1.1.0
Versions of packages glx-alternative-nvidia suggests:
pn nvidia-driver <none>
Versions of packages nvidia-legacy-390xx-kernel-dkms is related to:
pn bumblebee <none>
pn bumblebee-nvidia <none>
ii ccache 3.7.9-1
pn libcuda.so.1 <none>
pn libcuda1 <none>
pn libdrm-nouveau1 <none>
pn libdrm-nouveau1a <none>
ii libdrm-nouveau2 2.4.101-2
ii libegl1 1.3.1-1
ii libgl1 1.3.1-1
ii libgl1-nvidia-legacy-390xx-glvnd-glx [libgl1-nvidia-glx-any] 390.132-2
ii libgles1 1.3.1-1
ii libgles2 1.3.1-1
ii libglvnd0 1.3.1-1
ii libglx0 1.3.1-1
ii libnvidia-legacy-390xx-cfg1 [libnvidia-cfg1-any] 390.132-2
ii libnvidia-legacy-390xx-cuda1 [libcuda1-any] 390.132-2
ii libnvidia-legacy-390xx-ml1 [libnvidia-ml.so.1] 390.132-2
pn libopencl0 <none>
pn libprimus-vk1 <none>
ii libvulkan1 1.2.135.0-3
pn linux-headers <none>
ii make 4.2.1-1.3
pn nvidia-driver-any <none>
pn nvidia-driver-libs-any <none>
pn nvidia-glx-legacy-390xx <none>
ii nvidia-kernel-common 20151021+8
ii nvidia-legacy-390xx-driver [nvidia-glx-any] 390.132-2
ih nvidia-legacy-390xx-kernel-dkms 390.132-4
pn nvidia-legacy-390xx-kernel-source <none>
ii nvidia-legacy-390xx-kernel-support [nvidia-kernel-support-any] 390.132-2
ii nvidia-legacy-390xx-opencl-icd [opencl-icd] 390.132-2
ii nvidia-legacy-390xx-vulkan-icd [vulkan-icd] 390.132-2
ii nvidia-modprobe 410.93-1
pn nvidia-primus-vk-wrapper <none>
pn nvidia-settings <none>
ii nvidia-support 20151021+7
pn nvidia-vulkan-icd-any <none>
pn nvidia-xconfig <none>
ii ocl-icd-libopencl1 [libopencl1] 2.2.12-4
pn primus <none>
pn primus-libs <none>
pn primus-nvidia <none>
pn primus-vk <none>
pn primus-vk-nvidia <none>
ii xserver-xorg 1:7.7+20
ii xserver-xorg-core 2:1.20.8-2
pn xserver-xorg-legacy <none>
pn xserver-xorg-video-nouveau <none>
ii xserver-xorg-video-nvidia-legacy-390xx [xserver-xorg-video-nvi 390.132-2
-- no debconf information
More information about the pkg-nvidia-devel
mailing list