Bug 217348

Summary: Regression nvidia dkms driver installation
Product: Drivers Reporter: Jaime Pérez (19.jaime.91)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: RESOLVED WILL_NOT_FIX    
Severity: normal CC: 19.jaime.91, christian.koenig
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

Description Jaime Pérez 2023-04-17 15:15:49 UTC
Since commit 96a7b60f6ddb2bc966fac800c1dd18876a6e3c3f dumb_destroy func were removed but nvidia dkms seems to look for that


 CC [M]  /var/lib/dkms/nvidia/525.105.17/build/nvidia-drm/nvidia-drm-encoder.o
  CC [M]  /var/lib/dkms/nvidia/525.105.17/build/nvidia-drm/nvidia-drm-connector.o
/var/lib/dkms/nvidia/525.105.17/build/nvidia-drm/nvidia-drm-drv.c: In function ‘nv_drm_update_drm_driver_features’:
/var/lib/dkms/nvidia/525.105.17/build/nvidia-drm/nvidia-drm-drv.c:924:18: error: ‘struct drm_driver’ has no member named ‘dumb_destroy’
  924 |     nv_drm_driver.dumb_destroy     = nv_drm_dumb_destroy;
      |                  ^
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/nvidia/525.105.17/build/nvidia-drm/nvidia-drm-drv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/nvidia/525.105.17/build/nvidia-drm/nvidia-drm-crtc.c: In function ‘__nv_drm_plane_atomic_destroy_state’:
/var/lib/dkms/nvidia/525.105.17/build/nvidia-drm/nvidia-drm-crtc.c:678:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  678 |     struct nv_drm_plane_state *nv_drm_plane_state =
      |     ^~~~~~
make[1]: *** [Makefile:2025: /var/lib/dkms/nvidia/525.105.17/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.3.0-rc6-next-20230414'
make: *** [Makefile:82: modules] Error 2

Should I contact NVIDIA or this will be added again in kernel?
Comment 1 Christian König 2023-04-17 15:18:08 UTC
Yeah, that's a known issue and no this won't be added back because of an out of tree driver.