Bug#1009259: nvidia-legacy-340xx-driver: Crash at start with linux 5.10

Andreas Beckmann anbe at debian.org
Sun Nov 12 20:28:21 GMT 2023


On 11/11/2023 14.51, Mike Mironov wrote:
> Hello!
> 
> Problem solved. Error in conftest drm_device_has_pdev.
> 
> TL;DR; Just replace file in /usr/src/nvidia-legacy-340xx-340.108/patches 
> with included in this mail and rebuild module.
> 
> Orig conftest try include #include <drm/drm_device.h> instead of 
> #include <drm/drm_drv.h> and not include #include <stddef.h>
> 
> So drm_device_has_pdev conf test fail. Modified file included in this 
> mail. I hope maintainers release new version

Thanks for digging into this. The actual problem seems to be 
NV_DRM_DRM_DEVICE_H_PRESENT not being defined despite of the header 
actually existing ... I missed to backport the check for 
drm/drm_device.h which was introduced much earlier than 470.63.01 (where 
I took the drm_device_has_pdev patch from), could have been 390.138, but 
that did not exist in the 340xx series, yet.

Andreas



More information about the pkg-nvidia-devel mailing list