-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: modpost: "backlight_device_register" [...nvidia-modeset.ko] undefined #135
Comments
Which kernel version are you running? i.e. uname -r |
It's a heavily patched 5.14.21. But I'm afraid this information doesn't help. Question is. Has this code been removed by intention since 510.68.02 or is it just missing from 515.43.04. Obviously it's not useless. But this is a question only nVidia can answer. |
Hello @sndirsch and thank you for the interest. Is one of the patches of your "heavily patched" kernel the removal of The intention behind the removal was simply that the minimal supported kernel version was bumped to 3.10. My understanding is that all kernels >=3.10 (including 5.14.21) have the same interface for |
It's not removed - the same source with different configuration works azure kernel is configured for cloud instances that do not have a backlight so the driver is not needed, and is likely disabled obj-$(CONFIG_BACKLIGHT_CLASS_DEVICE) += backlight.o |
Makes sense, thanks. I believe @aritger is the person that maintains this code and can provide better info and decide how to proceed. |
Indeed backlight support is disabled in our azure config. ---- default |
The patch is needlessly convoluted - the test is not needed when NV_BACKLIGHT_DEVICE_REGISTER_PRESENT is replaced with CONFIG_BACKLIGHT_CLASS_DEVICE, BACKLIGHT_RAW should be present and there is no need to test for it. |
Hi Stefan. Sorry for the regression. It looks the pre-existing conftest for backlight_device_register was mistakenly removed from our code base when we updated the code to no longer perform conftests for pre-3.10 kernels. I've filed NVIDIA-internal bug 3645334 for this, and we'll try to get it fixed ASAP. FWIW, the attached backlight.patch.txt restores the conftest we had in earlier releases. I agree it can be simplified. That conftest did two things: (1) check if the function was available backlight_device_register was updated to take 5 arguments in Linux kernel commit a19a6ee6cad2 (dating back to v2.6.34). Since we now support only 3.10 and later kernels, check (2) is no longer needed, but check (1) is. The mistake was that we removed the conftest, only thinking about (2), and didn't consider (1). |
Hi Andy. Thanks for addressing that issue! :-) |
Is there any reason why CONFIG_BACKLIGHT_CLASS_DEVICE cannot be used to determine if the backlight function is available and a test that replicates this define as NV_BACKLIGHT_DEVICE_REGISTER_PRESENT is added? |
Thanks for the suggestion. Yes, it is simplest to check CONFIG_BACKLIGHT_CLASS_DEVICE in nvidia-modeset-linux.c. We'll include that in a future release. |
FWIW, that's how Takashi resolved the issue by using existing ONFIG_BACKLIGHT_CLASS_DEVICE. |
Hi @sndirsch. This should be fixed in 515.48.07. Please let me know if you continue to have troubles. Marking fixed. |
Hi @aritger I can confirm that 515.48.07 fixes this issue. None of these workarounds is stil needed. :-) |
NVIDIA Driver Version
515.43.04
GPU
Doesn't matter. Build issue.
Describe the bug
Build fails.
[...]
[ 63s] ERROR: modpost: "backlight_device_register" [/home/abuild/rpmbuild/BUILD/nvidia-gfxG06-515.43.04/obj/azure/515.43.04/nvidia-modeset.ko] undefined!
[ 63s] ERROR: modpost: "backlight_device_unregister" [/home/abuild/rpmbuild/BUILD/nvidia-gfxG06-515.43.04/obj/azure/515.43.04/nvidia-modeset.ko] undefined!
To Reproduce
Not so easy. For some reason this only occurs when building against -azure kernel flavor of SUSE Linux Enterprise 15 SP4.
Expected behavior
Build should work without any issues.
I'm attaching a fix which I stole from your 510.68.02 version. Not sure why this is not included in 515.43.04. It's also missing in GLUE sources for proprietary driver of 515.43.04.
backlight.patch.txt
The text was updated successfully, but these errors were encountered: