linux: add support for driver 595.80 and 610.43.02#1083
Conversation
|
|
|
Testing PR #1083 on Unraid 7.3.1 with NVIDIA driver 610.43.02 and an RTX 2080 Ti. Environment: I tested the PR branch: git clone --branch 610.43.02 --single-branch https://github.com/Gelmo/nvidia-patch.git /tmp/nvidia-patch-pr1083
cd /tmp/nvidia-patch-pr1083
bash ./patch.shThe patch script reported success: However, after applying the patch, NVENC encoding failed immediately using this FFmpeg test: docker run --rm --runtime=nvidia \
-e NVIDIA_VISIBLE_DEVICES=all \
-e NVIDIA_DRIVER_CAPABILITIES=all \
jrottenberg/ffmpeg:6.1-nvidia \
-hide_banner \
-loglevel verbose \
-f lavfi -i testsrc2=size=1920x1080:rate=30 \
-t 30 \
-c:v h264_nvenc \
-preset p4 \
-f null -With the patched library, the test exited almost immediately and showed: I then restored the original backup library: cp -a /opt/nvidia/libnvidia-encode-backup/libnvidia-encode.so.610.43.02 /usr/lib64/libnvidia-encode.so.610.43.02
ldconfigAfter restoring the original library, the same FFmpeg NVENC test worked and So on my setup, the PR patch applies and reports Let me know if you want the SHA1/SHA256 hashes of the patched and original libraries or any additional logs. |
|
@MystifiedSky Thank you for testing! This confirms that the issue is not just on my end. I will look further into this. Looks like the changes are a bit more significant this time around but I should be able to find it pretty easily once I can dedicate more time to it. MAYBE later tonight, but likely not until tomorrow or Saturday. At least NvFBC is working for now; it's just NvENC that needs to be fixed. On the bright side, whatever we find should work for most of 610.x |
Fixes: #1081
Fixes: #1079
Note: I am not running 595.80 so I am unable to test. I did confirm the patched string, so this is expected to work. Someone running this driver should test.
I did test 610.43.02 with NvFBCCUDAAsync, which was successful.
HOWEVER, for some reason gpu-screen-recorder is crashing with a general protection fault when using libnvidia-encode.so.610.43.02. I haven't determined why just yet, and MOST of the nvidia samples run fine. This might be the same issue seen here - #889
I'm submitting this as a draft in hopes that others will test as well, for both drivers included in this PR. If other people are having issues, I will further review to see if there was a more significant change that requires more digging. I'm hoping that nobody else has issues and this is just an issue with gpu-screen-recorder.
Tests from Capture_Linux_v9.0.0:
Possible issue with Pipewire?
Long times with this test:
I'm able to reproduce the GPF with NvFBCToGLEnc:
Since I can reproduce the GPF with that test, I think I need to keep digging a bit.