package/nvidia-driver: bump version to 550.78
PATCH 1/1 package/nvidia-driver: bump version to 550.78
A configuration value was also added to check if the user wants to install GTK integration for the NVIDIA driver.
This has been confirmed to work on kernel 6.14.
--- package/nvidia-driver/Config.in | 4 ++ package/nvidia-driver/nvidia-driver.hash | 8 +-- package/nvidia-driver/nvidia-driver.mk | 72 +++++++++++++----------- 3 files changed, 47 insertions(+), 37 deletions(-)
package/nvidia-driver/Config.in +4 -0
@@ -90,4 +90,8 @@ config BR2_PACKAGE_NVIDIA_DRIVER_MODULE provides Unified Memory access to the GPU and CPU memories for CUDA programs. +config BR2_PACKAGE_NVIDIA_DRIVER_GTK + bool "GTK support" + depends on BR2_PACKAGE_NVIDIA_DRIVER_MODULE + endif # BR2_PACKAGE_NVIDIA_DRIVER
package/nvidia-driver/nvidia-driver.hash +4 -4
@@ -1,4 +1,4 @@ -# Locally computed -sha256 94e399b459659c12b1344e8c8f4f5eee1ed5915ff459fc8bb831c9e1d44677db NVIDIA-Linux-x86-390.151.run -sha256 6e4fd2258465f5d5527fe80abd46de925a30348b4a84658498a6d75caf42c47c NVIDIA-Linux-x86_64-390.151-no-compat32.run -sha256 bd28b0c5aeeb00eb11d3ec6f6f3449d4b3a40100914258332734a53527997526 LICENSE +# Locally computed: +md5 c289987ebda8e9419a73e7e8e3409244 NVIDIA-Linux-x86_64-550.78.run +sha1 4e33f1e9d6274fdef630a3a1b903901c09149e40 NVIDIA-Linux-x86_64-550.78.run +sha256 34070434527ec9d575483e7f11ca078e467e73f6defc54366ecfbdcfe4a3bf73 NVIDIA-Linux-x86_64-550.78.run
package/nvidia-driver/nvidia-driver.mk +39 -33
124 lines not on this page · raw message
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Nick,
Thanks for your patch, a number of comments/questions below.
Quoted 4 lines · On Thu, 9 May 2024 15:00:27 -0400 Nick Whitlock <[email protected]> wrote:
A configuration value was also added to check if the user wants to install GTK integration for the NVIDIA driver.
This has been confirmed to work on kernel 6.14.
Kernel 6.14 ? You're ahead of your time, there's no such thing as Linux 6.14.
We need your patch to have your Signed-off-by line, otherwise we unfortunately cannot apply it.
Quoted 11 lines
--- package/nvidia-driver/Config.in | 4 ++ package/nvidia-driver/nvidia-driver.hash | 8 +-- package/nvidia-driver/nvidia-driver.mk | 72 +++++++++++++----------- 3 files changed, 47 insertions(+), 37 deletions(-)package/nvidia-driver/Config.in +0
-0
package/nvidia-driver/Config.in config BR2_PACKAGE_NVIDIA_DRIVER_MODULE · line 95
Quoted 6 lines
package/nvidia-driver/Config.in +3
-0@@ -90,4 +90,8 @@ config BR2_PACKAGE_NVIDIA_DRIVER_MODULE provides Unified Memory access to the GPU and CPU memories for CUDA programs. +config BR2_PACKAGE_NVIDIA_DRIVER_GTK + bool "GTK support" + depends on BR2_PACKAGE_NVIDIA_DRIVER_MODULE
Why does this have a depends on BR2_PACKAGE_NVIDIA_DRIVER_MODULE ? From what I can see in your patch, this option is merely installing more user-space libraries, so why do you make this depend on the driver module being enabled?
package/nvidia-driver/nvidia-driver.hash line 4
Quoted 13 lines
package/nvidia-driver/nvidia-driver.hash +4
-4@@ -1,4 +1,4 @@ -# Locally computed -sha256 94e399b459659c12b1344e8c8f4f5eee1ed5915ff459fc8bb831c9e1d44677db NVIDIA-Linux-x86-390.151.run -sha256 6e4fd2258465f5d5527fe80abd46de925a30348b4a84658498a6d75caf42c47c NVIDIA-Linux-x86_64-390.151-no-compat32.run -sha256 bd28b0c5aeeb00eb11d3ec6f6f3449d4b3a40100914258332734a53527997526 LICENSE +# Locally computed: +md5 c289987ebda8e9419a73e7e8e3409244 NVIDIA-Linux-x86_64-550.78.run +sha1 4e33f1e9d6274fdef630a3a1b903901c09149e40 NVIDIA-Linux-x86_64-550.78.run +sha256 34070434527ec9d575483e7f11ca078e467e73f6defc54366ecfbdcfe4a3bf73 NVIDIA-Linux-x86_64-550.78.run
A number of things are not correct:
- You should keep the license file hashes
- You should keep the spacing: 2 spaces between each field
- Are these hashes provided by some authoritative source upstream? If so, indicate where. Otherwise, keeping the locally calculated sha256 is sufficient.
package/nvidia-driver/nvidia-driver.hash
Quoted 5 lines
package/nvidia-driver/nvidia-driver.hash +1
-4-NVIDIA_DRIVER_VERSION = 390.151 -NVIDIA_DRIVER_SUFFIX = $(if $(BR2_x86_64),_64) -NVIDIA_DRIVER_SITE = http://download.nvidia.com/XFree86/Linux-x86$(NVIDIA_DRIVER_SUFFIX)/$(NVIDIA_DRIVER_VERSION) -NVIDIA_DRIVER_SOURCE = NVIDIA-Linux-x86$(NVIDIA_DRIVER_SUFFIX)-$(NVIDIA_DRIVER_VERSION)$(if $(BR2_x86_64),-no-compat32).run +# NVIDIA drivers now are bundled 64-bit and 32-bit together in one .run file.
This should be in the commit log, not in a comment here.
Quoted 17 lines
package/nvidia-driver/nvidia-driver.hash +3
-7+NVIDIA_DRIVER_VERSION = 550.78 +NVIDIA_DRIVER_SITE = http://download.nvidia.com/XFree86/Linux-x86_64/$(NVIDIA_DRIVER_VERSION) +NVIDIA_DRIVER_SOURCE = NVIDIA-Linux-x86_64-$(NVIDIA_DRIVER_VERSION).run NVIDIA_DRIVER_LICENSE = NVIDIA Software License NVIDIA_DRIVER_LICENSE_FILES = LICENSE NVIDIA_DRIVER_REDISTRIBUTE = NO@@ -23,30 +23,15 @@ ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_XORG),y) NVIDIA_DRIVER_DEPENDENCIES += mesa3d-headers xlib_libX11 xlib_libXext NVIDIA_DRIVER_PROVIDES += libgl libegl libgles -# libGL.so.$(NVIDIA_DRIVER_VERSION) is the legacy libGL.so library; it -# has been replaced with libGL.so.1.0.0. Installing both is technically -# possible, but great care must be taken to ensure they do not conflict, -# so that EGL still works. The legacy library exposes an NVidia-specific -# API, so it should not be needed, except for legacy, binary-only -# applications (in other words: we don't care). -#
package/nvidia-driver/nvidia-driver.hash ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_XORG),y) · line 42
Quoted 10 lines
package/nvidia-driver/nvidia-driver.hash +0
-10-# libGL.so.1.0.0 is the new vendor-neutral library, aimed at replacing -# the old libGL.so.$(NVIDIA_DRIVER_VERSION) library. The latter contains -# NVidia extensions (which is deemed bad now), while the former follows -# the newly-introduced vendor-neutral "dispatching" API/ABI: -# https://github.com/aritger/linux-opengl-abi-proposal/blob/master/linux-opengl-abi-proposal.txt -# However, this is not very useful to us, as we don't support multiple -# GL providers at the same time on the system, which this proposal is -# aimed at supporting. -# -# So we only install the legacy library for now.
You probably need to explain in the commit log why this is all going away.
package/nvidia-driver/nvidia-driver.hash endef · line 83
Quoted 12 lines
package/nvidia-driver/nvidia-driver.hash +4
-2NVIDIA_DRIVER_LIBS += \ $(NVIDIA_DRIVER_LIBS_GL) \@@ -87,13 +77,26 @@ endef # wants to run a third-party program developed under such an agreement). ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_PRIVATE_LIBS),y) NVIDIA_DRIVER_LIBS += \ - libnvidia-ifr.so.$(NVIDIA_DRIVER_VERSION) \ - libnvidia-fbc.so.$(NVIDIA_DRIVER_VERSION) + libnvidia-fbc.so.$(NVIDIA_DRIVER_VERSION) / + libnvidia-ifr.so.$(NVIDIA_DRIVER_VERSION) / + libnvidia-ngx.so.$(NVIDIA_DRIVER_VERSION) / + libnvidia-opticalflow.so.$(NVIDIA_DRIVER_VERSION) /
These lines end with slashes instead of backslashes, not sure how this can work. Did you test this part?
Could you fix those different issues, and send a v2 of this patch?
Thanks a lot!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas,
Thanks for the feedback. Here are some comments, below:
Quoted 1 line
Kernel 6.14 ? You're ahead of your time, there's no such thing as Linux 6.14.
Apologies, I meant to write "6.1.4" here. I will amend the commit.
--
Quoted 1 line
We need your patch to have your Signed-off-by line, otherwise we unfortunately cannot apply it.
Is this mentioned somewhere in the documentation? I'm not sure how to apply this.
---
Quoted 1 line
Why does this have a depends on
BR2_PACKAGE_NVIDIA_DRIVER_MODULE? From what I can see in your patch, this option is merely installing more user-space libraries, so why do you make this depend on the driver module being enabled?
Those libraries depend on the driver module, from my understanding.
---
Quoted 5 lines
A number of things are not correct:
- You should keep the license file hashes
- You should keep the spacing: 2 spaces between each field
Understood. I will amend the commit.
---
Quoted 1 line
- Are these hashes provided by some authoritative source upstream? If
so, indicate where. Otherwise, keeping the locally calculated sha256 is sufficient.
To my knowledge, I'm not sure. I computed them locally using md5sum, sha1sum and sha256sum and they seemed to take when I built it.
---
Quoted 1 line
This should be in the commit log, not in a comment here.
I will amend the commit.
---
Quoted 1 line
You probably need to explain in the commit log why this is all going away.
Understood. I will amend the commit. This was removed because the "legacy" method was removed and only the "new" method is active.
---
Quoted 1 line
These lines end with slashes instead of backslashes, not sure how this can work. Did you test this part?
I missed this. Thank you.
-----Original Message-----
From: Thomas Petazzoni <[email protected]>
Sent: Thursday, May 9, 2024 3:52 PM
To: ERS Nick Whitlock <[email protected]>
Cc: [email protected]; Yann E. MORIN <[email protected]>
Subject: Re: [Buildroot] [PATCH] package/nvidia-driver: bump version to 550.78
Hello Nick,
Thanks for your patch, a number of comments/questions below.
Quoted 4 lines · On Thu, 9 May 2024 15:00:27 -0400 Nick Whitlock <[email protected]> wrote:
A configuration value was also added to check if the user wants to install GTK integration for the NVIDIA driver.
This has been confirmed to work on kernel 6.14.
Kernel 6.14 ? You're ahead of your time, there's no such thing as Linux 6.14.
We need your patch to have your Signed-off-by line, otherwise we unfortunately cannot apply it.
Quoted 11 lines
--- package/nvidia-driver/Config.in | 4 ++ package/nvidia-driver/nvidia-driver.hash | 8 +-- package/nvidia-driver/nvidia-driver.mk | 72 +++++++++++++----------- 3 files changed, 47 insertions(+), 37 deletions(-)(quoted diff) +0
-0b/package/nvidia-driver/Config.in index
a8617a939b..996f2f6eea100644
package/nvidia-driver/Config.in config BR2_PACKAGE_NVIDIA_DRIVER_MODULE · line 95
Quoted 6 lines
package/nvidia-driver/Config.in +3
-0@@ -90,4 +90,8 @@ config BR2_PACKAGE_NVIDIA_DRIVER_MODULE provides Unified Memory access to the GPU and CPU memories for CUDA programs. +config BR2_PACKAGE_NVIDIA_DRIVER_GTK + bool "GTK support" + depends on BR2_PACKAGE_NVIDIA_DRIVER_MODULE
Why does this have a depends on BR2_PACKAGE_NVIDIA_DRIVER_MODULE ? From what I can see in your patch, this option is merely installing more user-space libraries, so why do you make this depend on the driver module being enabled?
Quoted 16 lines
package/nvidia-driver/nvidia-driver.hash +0
-2@@ -1,4 +1,4 @@ -# Locally computed -sha256
94e399b459659c12b1344e8c8f4f5eee1ed5915ff459fc8bb831c9e1d44677dbNVIDIA-Linux-x86-390.151.run
-sha2566e4fd2258465f5d5527fe80abd46de925a30348b4a84658498a6d75caf42c47cNVIDIA-Linux-x86_64-390.151-no-compat32.run
-sha256bd28b0c5aeeb00eb11d3ec6f6f3449d4b3a40100914258332734a53527997526LICENSE
package/nvidia-driver/nvidia-driver.hash
Quoted 7 lines
package/nvidia-driver/nvidia-driver.hash +7
-0+# Locally computed: +md5 c289987ebda8e9419a73e7e8e3409244 NVIDIA-Linux-x86_64-550.78.run +sha1 4e33f1e9d6274fdef630a3a1b903901c09149e40 +NVIDIA-Linux-x86_64-550.78.run +sha256 +34070434527ec9d575483e7f11ca078e467e73f6defc54366ecfbdcfe4a3bf73 +NVIDIA-Linux-x86_64-550.78.run
A number of things are not correct:
- You should keep the license file hashes
- You should keep the spacing: 2 spaces between each field
- Are these hashes provided by some authoritative source upstream? If so, indicate where. Otherwise, keeping the locally calculated sha256 is sufficient.
Quoted 7 lines
package/nvidia-driver/nvidia-driver.hash +0
-2-NVIDIA_DRIVER_VERSION = 390.151 -NVIDIA_DRIVER_SUFFIX = $(if $(BR2_x86_64),_64) -NVIDIA_DRIVER_SITE =http://download.nvidia.com/XFree86/Linux-x86$(NVIDIA_DRIVER_SUFFIX)/$(
NVIDIA_DRIVER_VERSION) -NVIDIA_DRIVER_SOURCE = NVIDIA-Linux-x86$(NVIDIA_DRIVER_SUFFIX)-$(NVIDIA_DRIVER_VERSION)$(if $(BR2_x86_64),-no-compat32).run
+# NVIDIA drivers now are bundled 64-bit and 32-bit together in one .run file.
This should be in the commit log, not in a comment here.
Quoted 26 lines
package/nvidia-driver/nvidia-driver.hash +5
-0+NVIDIA_DRIVER_VERSION = 550.78 +NVIDIA_DRIVER_SITE = +http://download.nvidia.com/XFree86/Linux-x86_64/$(NVIDIA_DRIVER_VERSI +ON) NVIDIA_DRIVER_SOURCE = +NVIDIA-Linux-x86_64-$(NVIDIA_DRIVER_VERSION).run NVIDIA_DRIVER_LICENSE = NVIDIA Software License
NVIDIA_DRIVER_LICENSE_FILES= LICENSENVIDIA_DRIVER_REDISTRIBUTE= NOpackage/nvidia-driver/nvidia-driver.hash +0
-0@@ -23,30 +23,15 @@ ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_XORG),y) NVIDIA_DRIVER_DEPENDENCIES += mesa3d-headers xlib_libX11 xlib_libXext
NVIDIA_DRIVER_PROVIDES+= libgl libegl libgles-# libGL.so.$(NVIDIA_DRIVER_VERSION) is the legacy libGL.so library; it -# has been replaced with libGL.so.1.0.0. Installing both is technically -# possible, but great care must be taken to ensure they do not conflict, -# so that EGL still works. The legacy library exposes an NVidia-specific -# API, so it should not be needed, except for legacy, binary-only -# applications (in other words: we don't care).
package/nvidia-driver/nvidia-driver.hash +0
-2-# -# libGL.so.1.0.0 is the new vendor-neutral library, aimed atreplacing -# the old libGL.so.$(NVIDIA_DRIVER_VERSION) library. The latter contains -# NVidia extensions (which is deemed bad now), while the former follows -# the newly-introduced vendor-neutral "dispatching" API/ABI:
package/nvidia-driver/nvidia-driver.hash +0
-2-# https://github.com/aritger/linux-opengl-abi-proposal/blob/master/linux-opengl-abi-proposal.txt -# However, this is not very useful to us, as we don't supportmultiple -# GL providers at the same time on the system, which this proposal is -# aimed at supporting.
package/nvidia-driver/nvidia-driver.hash
Quoted 2 lines
package/nvidia-driver/nvidia-driver.hash +0
-2-# -# So we only install the legacy library for now.
You probably need to explain in the commit log why this is all going away.
package/nvidia-driver/nvidia-driver.hash endef · line 83
Quoted 12 lines
NVIDIA_DRIVER_LIBS+= \package/nvidia-driver/nvidia-driver.hash +4
-2$(NVIDIA_DRIVER_LIBS_GL) \@@ -87,13 +77,26 @@ endef # wants to run a third-party program developed under such an agreement). ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_PRIVATE_LIBS),y) NVIDIA_DRIVER_LIBS += \ - libnvidia-ifr.so.$(NVIDIA_DRIVER_VERSION) \ - libnvidia-fbc.so.$(NVIDIA_DRIVER_VERSION) + libnvidia-fbc.so.$(NVIDIA_DRIVER_VERSION) / + libnvidia-ifr.so.$(NVIDIA_DRIVER_VERSION) / + libnvidia-ngx.so.$(NVIDIA_DRIVER_VERSION) / + libnvidia-opticalflow.so.$(NVIDIA_DRIVER_VERSION) /
These lines end with slashes instead of backslashes, not sure how this can work. Did you test this part?
Could you fix those different issues, and send a v2 of this patch?
Thanks a lot!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Nick,
Quoted 3 lines · On Thu, 9 May 2024 21:16:36 +0000 <[email protected]> wrote:
Quoted 1 line
We need your patch to have your Signed-off-by line, otherwise we unfortunately cannot apply it.
Is this mentioned somewhere in the documentation? I'm not sure how to apply this.
See
https://buildroot.org/downloads/manual/manual.html#submitting-patches.
Extract from this:
Finally, the patch should be signed off. This is done by adding
commit message. git commit -s does that for you, if configured properly. The Signed-off-by tag means that you publish the patch under the Buildroot license (i.e. GPL-2.0+, except for package patches, which have the upstream license), and that you are allowed to do so. See the Developer Certificate of Origin for details.
So for once, our documentation does have the relevant details :-)
Quoted 6 lines
Quoted 4 lines
Why does this have a depends on
BR2_PACKAGE_NVIDIA_DRIVER_MODULE? From what I can see in your patch, this option is merely installing more user-space libraries, so why do you make this depend on the driver module being enabled?Those libraries depend on the driver module, from my understanding.
What makes you think this?
Quoted 8 lines
Quoted 2 lines
- Are these hashes provided by some authoritative source upstream? If
so, indicate where. Otherwise, keeping the locally calculated sha256 is sufficient.
To my knowledge, I'm not sure. I computed them locally using
md5sum,sha1sumandsha256sumand they seemed to take when I built it.
Then, only include the sha256, this is enough.
Thanks a lot!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot