Skip to content

linux: add support for driver 390.157.#1057

Open
rakino wants to merge 1 commit intokeylase:masterfrom
rakino:390.157
Open

linux: add support for driver 390.157.#1057
rakino wants to merge 1 commit intokeylase:masterfrom
rakino:390.157

Conversation

@rakino
Copy link
Copy Markdown

@rakino rakino commented Mar 25, 2026

  • patch.sh (patch_list): Add 390.157.
  • README.md: Add it.

I don't have hardware to test this change but I checked that it produces the same binary diff as previous working version.

390.157 (this patch):

$ sed 's/\x85\xC0\x89\xC5\x75\x18/\x29\xC0\x89\xC5\x90\x90/g' NVIDIA-Linux-x86_64-390.157/libnvidia-encode.so.390.157 > encode.so
$ diffoscope NVIDIA-Linux-x86_64-390.157/libnvidia-encode.so.390.157 encode.so
--- NVIDIA-Linux-x86_64-390.157/libnvidia-encode.so.390.157
+++ encode.so
├── objdump --line-numbers --disassemble --demangle --reloc --no-show-raw-insn --section=.text {}
│ @@ -18275,17 +18275,18 @@
│   mov    %rax,%rdi
│   call   6880 <usleep@plt+0x1ad0>
│   mov    0x10(%rbx),%rcx
│   mov    0x8(%rbx),%rsi
│   mov    %r14d,%edx
│   mov    %r13,%rdi
│   call   6720 <usleep@plt+0x1970>
│ - test   %eax,%eax
│ + sub    %eax,%eax
│   mov    %eax,%ebp
│ - jne    183eb <NvEncodeAPIGetMaxSupportedVersion@@Base+0x372b>
│ + nop
│ + nop
│   mov    0x8(%rsp),%rbx
│   mov    %r13,(%r12)
│   jmp    1820d <NvEncodeAPIGetMaxSupportedVersion@@Base+0x354d>
│   mov    0x8(%rsp),%rbx
│   jmp    1820d <NvEncodeAPIGetMaxSupportedVersion@@Base+0x354d>
│   mov    %r13,%rdi
│   movq   $0x0,(%r12)

390.147:

$ sed 's/\x85\xC0\x89\xC5\x75\x18/\x29\xC0\x89\xC5\x90\x90/g' NVIDIA-Linux-x86_64-390.147/libnvidia-encode.so.390.147 > encode.so
$ diffoscope NVIDIA-Linux-x86_64-390.147/libnvidia-encode.so.390.147 encode.so
--- NVIDIA-Linux-x86_64-390.147/libnvidia-encode.so.390.147
+++ encode.so
├── objdump --line-numbers --disassemble --demangle --reloc --no-show-raw-insn --section=.text {}
│ @@ -18275,17 +18275,18 @@
│       mov    %rax,%rdi
│       call   6880 <usleep@plt+0x1ad0>
│       mov    0x10(%rbx),%rcx
│       mov    0x8(%rbx),%rsi
│       mov    %r14d,%edx
│       mov    %r13,%rdi
│       call   6720 <usleep@plt+0x1970>
│ -     test   %eax,%eax
│ +     sub    %eax,%eax
│       mov    %eax,%ebp
│ -     jne    183eb <NvEncodeAPIGetMaxSupportedVersion@@Base+0x372b>
│ +     nop
│ +     nop
│       mov    0x8(%rsp),%rbx
│       mov    %r13,(%r12)
│       jmp    1820d <NvEncodeAPIGetMaxSupportedVersion@@Base+0x354d>
│       mov    0x8(%rsp),%rbx
│       jmp    1820d <NvEncodeAPIGetMaxSupportedVersion@@Base+0x354d>
│       mov    %r13,%rdi
│       movq   $0x0,(%r12)

Copy link
Copy Markdown
Collaborator

@jailuthra jailuthra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch looks okay to me, minor comments on README.

Can you also duplicate the NvFBC patch from 390.147 to 390.157?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants