Bug#917586: nvidia-kernel-dkms: kernel module doesn't build with kernel 4.20 from experimental

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#917586: nvidia-kernel-dkms: kernel module doesn't build with kernel 4.20 from experimental

Jiri Palecek
Package: nvidia-kernel-dkms
Version: 390.87-5
Severity: normal

Dear Maintainer,

the nvidia module doesn't build with the new kernel in experimental. The
error message is

/var/lib/dkms/nvidia-current/390.87/build/nvidia/os-interface.c: At top level:
/var/lib/dkms/nvidia-current/390.87/build/nvidia/os-interface.c:1700:5: error: unknown type name 'ipmi_user_t'
     ipmi_user_t         p_user;     // ptr to ipmi_msghandler user structure
     ^~~~~~~~~~~
/var/lib/dkms/nvidia-current/390.87/build/nvidia/os-interface.c:1709:5: error: unknown type name 'ipmi_user_t'; did you mean 'pci_power_t'?
     ipmi_user_t     user,
     ^~~~~~~~~~~
     pci_power_t
/var/lib/dkms/nvidia-current/390.87/build/nvidia/os-interface.c: In function 'os_ipmi_connect':
/var/lib/dkms/nvidia-current/390.87/build/nvidia/os-interface.c:1781:66: error: passing argument 4 of 'ipmi_create_user' from incompatible pointer type [-Werror=incompatible-pointer-types]
     err_no = ipmi_create_user(devIndex, &nv_ipmi_hndlrs, p_priv, &p_priv->p_user);
                                                                  ^~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia-current/390.87/build/common/inc/nv-linux.h:339,
                 from /var/lib/dkms/nvidia-current/390.87/build/nvidia/os-interface.c:15:
/usr/src/linux-headers-4.20.0-trunk-common/include/linux/ipmi.h:114:32: note: expected 'struct ipmi_user **' but argument is of type 'int *'
        struct ipmi_user      **user);
        ~~~~~~~~~~~~~~~~~~~~~~~~^~~~

and some others, all caused by the absence of ipmi_user_t. This was
introduced by commit
https://github.com/torvalds/linux/commit/4372ea94d40c5676814fc6d815a64caed963cb9f,
ipmi: Finally get rid of ipmi_user_t and ipmi_smi_t. Please have a look
at it.

Regards
    Jiri Palecek


-- Package-specific info:


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 4.19.0-1-686-pae (SMP w/2 CPU cores)
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-kernel-dkms depends on:
ii  dkms                                               2.6.1-1
ii  nvidia-installer-cleanup                           20151021+7
ii  nvidia-kernel-support [nvidia-kernel-support--v1]  390.87-5

Versions of packages nvidia-kernel-dkms recommends:
iu  nvidia-driver  390.87-5

nvidia-kernel-dkms suggests no packages.

Versions of packages nvidia-driver depends on:
ii  nvidia-alternative         390.87-5
ii  nvidia-driver-bin          390.87-5
ii  nvidia-driver-libs         390.87-5
ii  nvidia-installer-cleanup   20151021+7
ii  nvidia-legacy-check        390.87-5
ii  nvidia-support             20151021+7
ii  nvidia-vdpau-driver        390.87-5
ii  xserver-xorg-video-nvidia  390.87-5

Versions of packages nvidia-driver recommends:
ii  nvidia-persistenced  390.25-1
ii  nvidia-settings      390.67-1

nvidia-driver suggests no packages.

Versions of packages nvidia-driver-libs:i386 depends on:
ii  libgl1-nvidia-glvnd-glx  390.87-5
ii  nvidia-egl-icd           390.87-5

Versions of packages nvidia-driver-libs:i386 recommends:
pn  libgles-nvidia1    <none>
pn  libgles-nvidia2    <none>
ii  libglx-nvidia0     390.87-5
ii  libnvidia-cfg1     390.87-5
ii  libopengl0         1.1.0-1
pn  nvidia-vulkan-icd  <none>

Versions of packages nvidia-glx depends on:
ii  dpkg                       1.19.2
pn  libgl1-nvidia-glx          <none>
pn  libxvmcnvidia1             <none>
ii  nvidia-alternative         390.87-5
ii  nvidia-installer-cleanup   20151021+7
ii  nvidia-support             20151021+7
ii  nvidia-vdpau-driver        390.87-5
ii  xserver-xorg-video-nvidia  390.87-5

Versions of packages nvidia-glx recommends:
ii  nvidia-settings  390.67-1

nvidia-glx suggests no packages.

Versions of packages xserver-xorg-video-nvidia depends on:
ii  libc6                                  2.28-3
ii  libnvidia-glcore                       390.87-5
ii  nvidia-alternative                     390.87-5
ii  nvidia-installer-cleanup               20151021+7
ii  nvidia-legacy-check                    390.87-5
ii  nvidia-support                         20151021+7
ii  xserver-xorg-core [xorg-video-abi-24]  2:1.20.3-1

Versions of packages xserver-xorg-video-nvidia recommends:
iu  nvidia-driver        390.87-5
ii  nvidia-settings      390.67-1
ii  nvidia-vdpau-driver  390.87-5

xserver-xorg-video-nvidia suggests no packages.

Versions of packages nvidia-alternative depends on:
ii  dpkg                    1.19.2
ii  glx-alternative-nvidia  0.9.0
ii  nvidia-legacy-check     390.87-5

Versions of packages glx-alternative-nvidia depends on:
ii  dpkg                  1.19.2
ii  glx-alternative-mesa  0.9.0
ii  glx-diversions        0.9.0
ii  update-glx            0.9.0

Versions of packages glx-alternative-nvidia suggests:
iu  nvidia-driver  390.87-5

Versions of packages nvidia-kernel-dkms is related to:
pn  bumblebee                                                  <none>
pn  bumblebee-nvidia                                           <none>
ii  ccache                                                     3.5-1
pn  libcuda1                                                   <none>
pn  libcuda1-any                                               <none>
pn  libdrm-nouveau1                                            <none>
pn  libdrm-nouveau1a                                           <none>
ii  libdrm-nouveau2                                            2.4.95-1
ii  libegl1                                                    1.1.0-1
ii  libgl1                                                     1.1.0-1
ii  libgl1-nvidia-glvnd-glx [libgl1-nvidia-glx-any]            390.87-5
pn  libgles1                                                   <none>
ii  libgles2                                                   1.1.0-1
ii  libglvnd0                                                  1.1.0-1
ii  libglx0                                                    1.1.0-1
pn  libopencl0                                                 <none>
ii  libvulkan1                                                 1.1.73+dfsg-1
ii  linux-headers-4.17.0-rc3-bughunt+ [linux-headers]          1541430652
ii  make                                                       4.2.1-1.2
iu  nvidia-driver [nvidia-glx-any]                             390.87-5
pn  nvidia-glx                                                 <none>
ii  nvidia-kernel-common                                       20151021+8
ih  nvidia-kernel-dkms                                         390.87-5
pn  nvidia-kernel-source                                       <none>
ii  nvidia-kernel-support [nvidia-kernel-support-any]          390.87-5
ii  nvidia-modprobe                                            390.25-1
ii  nvidia-settings                                            390.67-1
ii  nvidia-support                                             20151021+7
pn  nvidia-xconfig                                             <none>
ii  ocl-icd-libopencl1 [libopencl1]                            2.2.12-1
pn  opencl-icd                                                 <none>
pn  vulkan-icd                                                 <none>
ii  xserver-xorg                                               1:7.7+19
ii  xserver-xorg-core                                          2:1.20.3-1
pn  xserver-xorg-legacy                                        <none>
pn  xserver-xorg-video-nouveau                                 <none>
ii  xserver-xorg-video-nvidia [xserver-xorg-video-nvidia-any]  390.87-5

-- no debconf information

attachment0 (96K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#917586: other kernel change affecting nvidia

Jiri Palecek
Hello,

commit
https://github.com/torvalds/linux/commit/ae2b01f37044c10e975d22116755df56252b09d8 
also affects nvidia. vm_insert_pfn is used in
nvidia-drm/nvidia-drm-gem-nvkms-memory.c. It can be easily converted to
vmf_insert_pfn, by removing the following switch (which only converts
the errno to a vm fault, which vmf_... returns directly).

With this and the ipmi_user_t fixed, nvidia module can be compiled again.

Regards

     Jiri Palecek

Reply | Threaded
Open this post in threaded view
|

Bug#917586: other kernel change affecting nvidia

Luca Boccassi-3
Control: tags -1 pending

On Thu, 2019-01-03 at 02:54 +0100, Jiri Palecek wrote:

> Hello,
>
> commit 
> https://github.com/torvalds/linux/commit/ae2b01f37044c10e975d22116755
> df56252b09d8 
> also affects nvidia. vm_insert_pfn is used in 
> nvidia-drm/nvidia-drm-gem-nvkms-memory.c. It can be easily converted
> to 
> vmf_insert_pfn, by removing the following switch (which only
> converts 
> the errno to a vm fault, which vmf_... returns directly).
>
> With this and the ipmi_user_t fixed, nvidia module can be compiled
> again.
>
> Regards
>
>      Jiri Palecek

Yes there's a few more, the fixes are pending upload.

--
Kind regards,
Luca Boccassi

signature.asc (499 bytes) Download Attachment